X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/ddc0c5e4f11dae859a6fe1b146ca2e72f2271b7c..148295024c93e47f90ac850bf068e592b16b1c7c:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index e41093c..bb4f941 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -52,7 +52,8 @@ Plugin 'ompugao/ctrlp-ros' " find an alternative Plugin 'http://git.code.sf.net/p/vim-latex/vim-latex' -Plugin 'lokaltog/vim-easymotion' +" Plugin 'lokaltog/vim-easymotion' +Plugin 'justinmk/vim-sneak' Plugin 'chrisbra/checkattach' Plugin 'nathanaelkane/vim-indent-guides' @@ -267,9 +268,6 @@ nnoremap / :silent nohl nnoremap [ :tabprev nnoremap ] :tabnext -" Wrap -nnoremap W :set wrap! - " paste from selection nnoremap p* :silent! set paste"*p:set nopaste " paste from clipboard @@ -288,9 +286,6 @@ noremap ' ` " Select (charwise) the contents of the current line, excluding indentation. nnoremap vv ^vg_ -" Toggle [i]nvisible characters -nnoremap i :set list! - " Unfuck my screen nnoremap U :syntax sync fromstart:AirlineRefresh:redraw! @@ -377,8 +372,7 @@ noremap O :set pastem`O``:set nopaste " Don't use Ex mode, use Q for formatting map Q gq -" allow undoing in insert-mode -inoremap u +" break undo sequence before removing word inoremap u nmap b :set expandtab tabstop=4 shiftwidth=4 softtabstop=4 @@ -397,6 +391,9 @@ autocmd BufWinEnter *.* silent loadview " save with sudo cnoremap w!! w !sudo tee % > /dev/null +" uppercase previous word +inoremap gUiwgi + " plugins options {{{1 " ag {{{2 let g:AgSmartCase = 1 @@ -410,6 +407,7 @@ let g:airline_powerline_fonts = 1 " checkattach {{{2 let g:checkattach_filebrowser = 'ranger' +let g:checkattach_once = 'y' " delimitmate {{{2 let delimitMate_expand_cr = 2 @@ -543,6 +541,24 @@ let g:tex_flavor='latex' let g:Tex_DefaultTargetFormat='pdf' let g:Tex_MultipleCompileFormats='pdf' +" vim-sneak {{{2 +let g:sneak#streak = 1 +let g:sneak#target_labels = "aoeuisnthdpylrcgfqjkxzmwvz" " dvorak +let g:sneak#use_ic_scs = 1 " follow 'ignorecase' and 'smartcase' + +" sneaky f and t +nmap f Sneak_f +nmap F Sneak_F +xmap f Sneak_f +xmap F Sneak_F +omap f Sneak_f +omap F Sneak_F +nmap t Sneak_t +nmap T Sneak_T +xmap t Sneak_t +xmap T Sneak_T +omap t Sneak_t +omap T Sneak_T " functions {{{1