Skip to content
Browse files

vim: config

  • Loading branch information...
1 parent e9db7d5 commit 14882bfb0056c0ecfae2c6db5b0a26f4dc90ed26 @rlisowski committed
Showing with 15 additions and 1 deletion.
  1. +15 −1 .vimrc
View
16 .vimrc
@@ -30,7 +30,7 @@ let NERDTreeIgnore=['^bin$', '^tmp$', '^log$']
let nerdtree_tabs_open_on_gui_startup = 0
" nmap <C-p> :NERDTreeToggle<CR>
nmap <C-p> :NERDTreeMirrorToggle<CR>
-nmap :sit :NERDTreeFind
+nmap <C-s> :NERDTreeFind<CR>
" }}
" snippets
@@ -105,6 +105,18 @@ nmap <silent> <leader>wo :ZoomWin<CR>
Bundle 'http://github.com/sjl/gundo.vim.git'
" {{
nnoremap <F5> :GundoToggle<CR>
+if exists("+undofile")
+ " undofile - This allows you to use undos after exiting and restarting
+ " This, like swap and backups, uses .vim-undo first, then ~/.vim/undo
+ " :help undo-persistence
+ " This is only present in 7.3+
+ if isdirectory($HOME . '/.vim/undo') == 0
+ :silent !mkdir -p ~/.vim/undo > /dev/null 2>&1
+ endif
+ set undodir=./.vim-undo//
+ set undodir+=~/.vim/undo//
+ set undofile
+endif
" }}
Bundle 'http://github.com/vim-scripts/L9.git'
@@ -171,6 +183,8 @@ set directory=~/.vim/tmp
" UI
" ---------------
set ruler " show the cursor position all the time
+set cursorline " Only have cursorline in current window
+
if has("balloon_eval") && has("unix")
set ballooneval
endif

0 comments on commit 14882bf

Please sign in to comment.
Something went wrong with that request. Please try again.