Skip to content

Commit

Permalink
vim: set faster default viewport scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
necolas committed Jul 14, 2012
1 parent dc27826 commit ac44bff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,19 @@ if exists("&undodir")
set undodir=~/.vim/undo
endif

" Load local machine directives only if they exist
if filereadable(glob("~/.vimrc.local"))
" Load local machine settings if they exist
if filereadable("~/.vimrc-local")
source ~/.vimrc.local
endif

" Explicitly strip trailing whitespace (,$)
noremap <leader>$ :call StripTrailingWhitespace()<CR>
" Faster viewport scrolling (3 lines at a time)
nnoremap <C-e> 3<C-e>
nnoremap <C-y> 3<C-y>
vnoremap <C-e> 3<C-e>
vnoremap <C-y> 3<C-y>
" Automatically strip trailing whitespace on file save
autocmd BufWritePre *.css,*.html,*.js,*.py,*.scss :call StripTrailingWhitespace()

0 comments on commit ac44bff

Please sign in to comment.