Permalink
Browse files

Keep more context when scrolling off the end of a buffer

  • Loading branch information...
1 parent 83a98ae commit a768c0a5dc558c4c0939c2eea056cb9aee32b734 @sobrinho committed Apr 23, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 vimrc
View
3 vimrc
@@ -36,6 +36,9 @@ set smartcase
" http://www.shallowsky.com/linux/noaltscreen.html
set t_ti= t_te=
+" Keep more context when scrolling off the end of a buffer
+set scrolloff=3
+
" This tip is an improved version of the example given for :help last-position-jump.
" It fixes a problem where the cursor position will not be restored if the file only has a single line.
"

0 comments on commit a768c0a

Please sign in to comment.