From ba8eff576f6627dfcd5d565af5c95a0292486790 Mon Sep 17 00:00:00 2001 From: Guillaume DOTT Date: Mon, 7 Jul 2014 14:46:40 +0200 Subject: [PATCH] vim: update vundle and clean vimrc --- vim/vimrc | 77 +++++++++++++++++++------------------------------------ 1 file changed, 26 insertions(+), 51 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 6220d2f..8cabf34 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -10,38 +10,28 @@ if filereadable(expand("$HOME/.vim/bundle/vundle/README.md")) " let Vundle manage Vundle " required! - Bundle 'gmarik/vundle' + Plugin 'gmarik/vundle' - Bundle 'xolox/vim-misc' - Bundle 'xolox/vim-session' - Bundle 'vim-ruby/vim-ruby' - Bundle 'tpope/vim-rails' - Bundle 'tpope/vim-haml' - Bundle 'tpope/vim-markdown' + Plugin 'xolox/vim-misc' + Plugin 'xolox/vim-session' + Plugin 'vim-ruby/vim-ruby' + Plugin 'tpope/vim-rails' + Plugin 'tpope/vim-haml' + Plugin 'tpope/vim-markdown' - " snipMate dependencies - Bundle "MarcWeber/vim-addon-mw-utils" - Bundle "tomtom/tlib_vim" - Bundle "honza/vim-snippets" + Plugin 'Sirver/ultisnips' + Plugin 'honza/vim-snippets' - "Bundle "garbas/vim-snipmate" + Plugin 'ton/vim-bufsurf' + Plugin 'AndrewRadev/switch.vim' - Bundle 'goldfeld/vim-seek' - Bundle 'Lokaltog/vim-easymotion' - Bundle 'ton/vim-bufsurf' - Bundle 'Yggdroot/indentLine' - Bundle 'AndrewRadev/switch.vim' + Plugin 'airblade/vim-gitgutter' + Plugin 'tpope/vim-fugitive' + Plugin 'scrooloose/syntastic' - Bundle 'airblade/vim-gitgutter' - Bundle 'tpope/vim-fugitive' - Bundle 'scrooloose/syntastic' - - Bundle 'Gundo' - Bundle 'The-NERD-tree' - Bundle 'The-NERD-Commenter' - Bundle 'closetag.vim' - Bundle 'taglist.vim' - Bundle 'VisIncr' + Plugin 'Gundo' + Plugin 'The-NERD-Commenter' + Plugin 'VisIncr' endif " } @@ -81,8 +71,6 @@ set noincsearch set noshowmatch set colorcolumn=80 -set winwidth=100 - set listchars=nbsp:·,tab:▸\ ,extends:>,precedes:< set list @@ -142,16 +130,13 @@ set foldopen-=undo map imap -map :NERDTreeToggle -map :Tlist map :GundoToggle -nnoremap gy :Switch - map :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q . -" Rot13 map ggg?G +nnoremap gy :Switch + nnoremap ,bp :bprevious nnoremap ,bf :bnext nnoremap ,Bp :BufSurfBack @@ -164,10 +149,11 @@ nnoremap d "_d " PLUGINS " { " gitgutter -let g:gitgutter_on_bufenter = 0 -let g:gitgutter_all_on_focusgained = 0 -" numbertoggle -let g:NumberToggleTrigger = "r" +let g:gitgutter_realtime = 0 +let g:gitgutter_eager = 0 +" UltiSnips +let g:UltiSnipsExpandTrigger="" +let g:UltiSnipsJumpForwardTrigger="" " Session let g:session_autoload = 'no' let g:session_autosave = 'no' @@ -177,19 +163,6 @@ if !filewritable(expand(g:session_directory)) call mkdir(expand(g:session_directory), "p") endif - -" closetag -autocmd FileType html,htmldjango,jinjahtml,eruby,mako let b:closetag_html_style=1 -autocmd FileType html,xhtml,xml,htmldjango,jinjahtml,eruby,mako source ~/.vim/bundle/closetag.vim/plugin/closetag.vim - -" TagList : http://vim-taglist.sourceforge.net/ -" Need ctags -" :help taglist -let Tlist_Ctags_Cmd="ctags" - -" Doxygen -let g:DoxygenToolkit_authorName="Guillaume DOTT" - autocmd FileType ruby let b:switch_custom_definitions = \ [ \ { @@ -245,4 +218,6 @@ highlight clear SignColumn au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\s\+$', -1) " autocmd BufWrite * silent! %s/[\r \t]\+$// +"autocmd WinLeave * :call FocusLost() +"autocmd WinEnter * :call FocusGained() " }