From 4863d6a5a673a14e540970e17926cc37e98cdfb9 Mon Sep 17 00:00:00 2001 From: Guillaume DOTT Date: Mon, 9 Sep 2013 17:58:37 +0200 Subject: [PATCH] vim: add switch.vim and syntastic plugins --- vim/vimrc | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index e888bcf..f5926ff 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -18,20 +18,23 @@ if filereadable(expand("$HOME/.vim/bundle/vundle/README.md")) Bundle 'tpope/vim-haml' Bundle 'tpope/vim-markdown' - Bundle "garbas/vim-snipmate" " snipMate dependencies Bundle "MarcWeber/vim-addon-mw-utils" Bundle "tomtom/tlib_vim" - Bundle "honza/snipmate-snippets" + Bundle "honza/vim-snippets" + + "Bundle "garbas/vim-snipmate" Bundle 'goldfeld/vim-seek' Bundle 'Lokaltog/vim-easymotion' Bundle 'ton/vim-bufsurf' Bundle 'jeffkreeftmeijer/vim-numbertoggle' Bundle 'Yggdroot/indentLine' + Bundle 'AndrewRadev/switch.vim' Bundle 'airblade/vim-gitgutter' Bundle 'tpope/vim-fugitive' + Bundle 'scrooloose/syntastic' Bundle 'Gundo' Bundle 'The-NERD-tree' @@ -133,15 +136,15 @@ set foldopen-=undo map imap -noremap gy :call ToggleYesNo() - map :NERDTreeToggle map :Tlist map :GundoToggle +nnoremap gy :Switch + map :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q . " Rot13 -map ggVGg? +map ggg?G nnoremap ,bp :bprevious nnoremap ,bf :bnext @@ -218,27 +221,6 @@ au BufWritePost * call ModeChange() " FUNCTIONS " { -function! ToggleYesNo() - let w=expand("") - if w=="yes" | let w="no" - elseif w=="no" | let w="yes" - elseif w=="on" | let w="off" - elseif w=="off" | let w="on" - elseif w=="True" | let w="False" - elseif w=="False" | let w="True" - elseif w=="true" | let w="false" - elseif w=="false" | let w="true" - elseif w=="manual" | let w="auto" - elseif w=="auto" | let w="manual" - elseif w=="public" | let w="private" - elseif w=="private" | let w="protected" - elseif w=="protected" | let w="public" - else | let w="" - endif - if w!="" - exec "normal! \"_ciw\=w\\b" - endif -endfunc " } " MISC