scrolloff config in vim

pull/2/head
Bodaniel Jeanes 2011-11-23 16:55:32 -06:00
parent a9bce59ab1
commit c3dacd5979
1 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,8 @@ syntax on
map <Leader>e :e <C-R>=expand("%:p:h") . "/" <CR>
" Always show cursorline, but only in current window.
set scrolloff=3
set scrolljump=10
set cursorline
autocmd WinEnter * :setlocal cursorline
autocmd WinLeave * :setlocal nocursorline