X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/b5b01a4314f2ada0eb56a25a7c6e193f1d7a8bf9..1c84fc84d23dc600fc1540ffd01ea80bc3d5f803:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index e5a69e6..160aba8 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -16,22 +16,27 @@ Plugin 'gmarik/vundle' Plugin 'airblade/vim-gitgutter' Plugin 'bling/vim-airline' +Plugin 'derekwyatt/vim-fswitch' Plugin 'elzr/vim-json' -Plugin 'http://git.code.sf.net/p/vim-latex/vim-latex' +Plugin 'firef0x/pkgbuild.vim' Plugin 'junegunn/vim-easy-align' Plugin 'kien/ctrlp.vim' +Plugin 'klen/python-mode' Plugin 'kshenoy/vim-signature' Plugin 'majutsushi/tagbar' +Plugin 'raimondi/delimitmate' Plugin 'rking/ag.vim' Plugin 'scrooloose/nerdtree' Plugin 'scrooloose/syntastic' Plugin 'sjl/gundo.vim' Plugin 'tomtom/tcomment_vim' +Plugin 'tpope/vim-endwise' Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-repeat' Plugin 'tpope/vim-surround' Plugin 'tpope/vim-unimpaired' Plugin 'valloric/youcompleteme' +Plugin 'vim-scripts/yankring.vim' " snippets Plugin 'sirver/ultisnips' @@ -41,20 +46,16 @@ Plugin 'honza/vim-snippets' Plugin 'ompugao/ros.vim' Plugin 'ompugao/ctrlp-ros' -Plugin 'firef0x/pkgbuild.vim' -Plugin 'derekwyatt/vim-fswitch' " seems to have problems right now... may be add later? " Plugin 'jalcine/cmake.vim' " Plugin 'powerman/vim-plugin-viewdoc' -" endwise needs to be after delimitmate -Plugin 'raimondi/delimitmate' -Plugin 'tpope/vim-endwise' -Plugin 'lokaltog/vim-easymotion' +" find an alternative +Plugin 'http://git.code.sf.net/p/vim-latex/vim-latex' +" Plugin 'lokaltog/vim-easymotion' +Plugin 'justinmk/vim-sneak' Plugin 'chrisbra/checkattach' -Plugin 'klen/python-mode' Plugin 'nathanaelkane/vim-indent-guides' -Plugin 'vim-scripts/yankring.vim' " remove entries first set runtimepath -=$HOME/.vim @@ -257,6 +258,7 @@ augroup END map " make +nnoremap r :make nnoremap :make " unhighlight search @@ -294,8 +296,8 @@ nnoremap i :set list! nnoremap U :syntax sync fromstart:AirlineRefresh:redraw! " Ranger -nnoremap r :silent !ranger %:h:redraw! -nnoremap R :silent !ranger:redraw! +" nnoremap r :silent !ranger %:h:redraw! +" nnoremap R :silent !ranger:redraw! " Use sane regexes. nnoremap / /\v @@ -409,6 +411,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 @@ -542,6 +545,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 @@ -579,7 +600,6 @@ function! SwitchSpell() echo "setlocal spelllang=" g:myLangList[b:myLang] endfunction -nnoremap s :call ToggleSpell() -nnoremap S :call SwitchSpell() +nnoremap coS :call SwitchSpell() " fix spelling with first choice nnoremap f 1z=