Remove Enter mapping for Vim & other Vim settings
- increase timeoutlen - fix F10 paste for Neovim - escape url mapping (for LaTeX) Also added pdftojpg function.
This commit is contained in:
@@ -87,6 +87,7 @@ alias tm="ni $usnp_dir/texmath.snippets"
|
|||||||
# }}} config files #
|
# }}} config files #
|
||||||
|
|
||||||
# applications {{{ #
|
# applications {{{ #
|
||||||
|
alias rg="ranger"
|
||||||
function ok() { okular $1 ; }
|
function ok() { okular $1 ; }
|
||||||
function chr() { google-chrome $1 ; }
|
function chr() { google-chrome $1 ; }
|
||||||
function ni() { nvim $1 ; }
|
function ni() { nvim $1 ; }
|
||||||
@@ -172,6 +173,18 @@ if [ "$(hostname)" = "NZXT" ]; then
|
|||||||
alias cvf="f ~/Documents/resume/examples/cv"
|
alias cvf="f ~/Documents/resume/examples/cv"
|
||||||
alias vcv="ni ~/Documents/resume/examples/cv.tex"
|
alias vcv="ni ~/Documents/resume/examples/cv.tex"
|
||||||
alias okcv="ok ~/Documents/resume/examples/cv.pdf"
|
alias okcv="ok ~/Documents/resume/examples/cv.pdf"
|
||||||
|
# https://stackoverflow.com/a/6605085/8811872
|
||||||
|
function pdftojpg() {
|
||||||
|
convert \
|
||||||
|
-verbose \
|
||||||
|
-density 150 \
|
||||||
|
-trim \
|
||||||
|
$1.pdf \
|
||||||
|
-quality 100 \
|
||||||
|
-flatten \
|
||||||
|
-sharpen 0x1.0 \
|
||||||
|
$1.jpg
|
||||||
|
}
|
||||||
# }}} resume #
|
# }}} resume #
|
||||||
|
|
||||||
# }}} various coding projs #
|
# }}} various coding projs #
|
||||||
|
|||||||
@@ -134,7 +134,6 @@ bindsym $mod+F3 workspace $ws3; exec google-chrome
|
|||||||
|
|
||||||
set $ws4 "4 "
|
set $ws4 "4 "
|
||||||
workspace $ws4 output $samsung
|
workspace $ws4 output $samsung
|
||||||
assign [class="Okular"] $ws4
|
|
||||||
|
|
||||||
set $ws5 "5 "
|
set $ws5 "5 "
|
||||||
workspace $ws5 output $benq
|
workspace $ws5 output $benq
|
||||||
|
|||||||
@@ -347,6 +347,7 @@ map <DOWN> move down=1
|
|||||||
map <LEFT> move left=1
|
map <LEFT> move left=1
|
||||||
map <RIGHT> move right=1
|
map <RIGHT> move right=1
|
||||||
map <HOME> move to=0
|
map <HOME> move to=0
|
||||||
|
|
||||||
map <END> move to=-1
|
map <END> move to=-1
|
||||||
map <PAGEDOWN> move down=1 pages=True
|
map <PAGEDOWN> move down=1 pages=True
|
||||||
map <PAGEUP> move up=1 pages=True
|
map <PAGEUP> move up=1 pages=True
|
||||||
|
|||||||
@@ -60,7 +60,8 @@ handle_extension() {
|
|||||||
# PDF
|
# PDF
|
||||||
pdf)
|
pdf)
|
||||||
# Preview as text conversion
|
# Preview as text conversion
|
||||||
pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - && exit 5
|
pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - && exit 5
|
||||||
|
# pdftoppm -jpeg -singlefile "$path" "${cached//.jpg}" && exit 6 || exit 1;;
|
||||||
exiftool "${FILE_PATH}" && exit 5
|
exiftool "${FILE_PATH}" && exit 5
|
||||||
exit 1;;
|
exit 1;;
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ set linespace=5
|
|||||||
" set list
|
" set list
|
||||||
" set cursorcolumn
|
" set cursorcolumn
|
||||||
" set cursorline
|
" set cursorline
|
||||||
set timeoutlen=300
|
set timeoutlen=500
|
||||||
set hlsearch
|
set hlsearch
|
||||||
" }}} set x=y "
|
" }}} set x=y "
|
||||||
|
|
||||||
@@ -104,6 +104,9 @@ Plug 'dkarter/bullets.vim'
|
|||||||
" coordinate Vim color scheme with terminal color scheme
|
" coordinate Vim color scheme with terminal color scheme
|
||||||
Plug 'dylanaraps/wal.vim'
|
Plug 'dylanaraps/wal.vim'
|
||||||
|
|
||||||
|
" repeat plugin commands
|
||||||
|
Plug 'tpope/vim-repeat'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" colorscheme gotham256
|
" colorscheme gotham256
|
||||||
@@ -117,12 +120,12 @@ colorscheme wal
|
|||||||
map <F3> :wa<CR>
|
map <F3> :wa<CR>
|
||||||
map <F4> :wqa<CR>
|
map <F4> :wqa<CR>
|
||||||
map <F5> :qa!<CR>
|
map <F5> :qa!<CR>
|
||||||
|
map <F6> :make -C ~/Documents/resume cv<CR>
|
||||||
map <F7> :AutoSaveToggle<CR>
|
map <F7> :AutoSaveToggle<CR>
|
||||||
map <F9> :LLPStartPreview<CR>
|
map <F9> :LLPStartPreview<CR>
|
||||||
nnoremap <F10> :set paste<CR>p:set nopaste<CR>
|
nnoremap <F10> :set paste<CR>"+p:set nopaste<CR>
|
||||||
" }}} function keys "
|
" }}} function keys "
|
||||||
|
|
||||||
map <Enter> o<ESC>
|
|
||||||
map <S-Enter> O<ESC>
|
map <S-Enter> O<ESC>
|
||||||
|
|
||||||
" splits {{{ "
|
" splits {{{ "
|
||||||
@@ -168,6 +171,8 @@ nnoremap <leader>rv :source $MYVIMRC<CR>
|
|||||||
nnoremap <leader>R q:i%s///g<ESC>2F/i
|
nnoremap <leader>R q:i%s///g<ESC>2F/i
|
||||||
" set syntax to shell (for dotfiles)
|
" set syntax to shell (for dotfiles)
|
||||||
nnoremap <leader>s :set syn=sh<CR>
|
nnoremap <leader>s :set syn=sh<CR>
|
||||||
|
" replace bars/underscores in URL
|
||||||
|
nnoremap <leader>url :.s/\([-_]\)/\\\1/g<CR>
|
||||||
" format current line
|
" format current line
|
||||||
nnoremap <leader>w Vgq
|
nnoremap <leader>w Vgq
|
||||||
" format this and next line
|
" format this and next line
|
||||||
|
|||||||
Reference in New Issue
Block a user