Permalink
Browse files

view fix, few more bundles

  • Loading branch information...
Detegr committed Jan 30, 2013
1 parent a3a9f81 commit a03b08523941facf87e8b72bbf0fda837703890a
Showing with 8 additions and 2 deletions.
  1. +8 −2 .vim/vimrc
View
@@ -13,6 +13,9 @@ Bundle 'https://github.com/yandy/vim-omnicppcomplete.git'
Bundle 'git://github.com/tpope/vim-surround.git'
Bundle 'AutoComplPop'
Bundle 'git://github.com/tpope/vim-fugitive.git'
+Bundle 'git://github.com/Rip-Rip/clang_complete.git'
+Bundle 'git://github.com/scrooloose/syntastic.git'
+Bundle 'git://github.com/powerman/vim-plugin-viewdoc.git'
set ts=4
set hidden
@@ -87,11 +90,14 @@ nnoremap <leader>q <C-w>c
nnoremap <leader>v :vsplit<cr>
inoremap jj <ESC>
-au BufWinLeave *.* mkview
-au BufWinEnter *.* silent loadview
+autocmd BufWinLeave * if expand("%") != "" | mkview | endif
+autocmd BufWinEnter * if expand("%") != "" | loadview | endif
au BufNewFile,BufRead,BufEnter *.java inoremap <C-Space> <C-x><C-u>
au BufNewFile,BufRead,BufEnter *.java inoremap <Nul> <C-x><C-u>
highlight Pmenu ctermbg=grey
highlight PmenuSel ctermfg=black ctermbg=yellow
+
+let g:viewdoc_open="belowright vnew"
+let g:viewdoc_only=1

0 comments on commit a03b085

Please sign in to comment.