summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vimrc10
1 files changed, 10 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 89fb572..9c06c44 100644
--- a/.vimrc
+++ b/.vimrc
@@ -43,6 +43,16 @@ set cursorline " Highlight the cursor line and column
"set statusline+=[%{strlen(&fenc)?&fenc:'none'}, " file encoding
"set statusline+=%{&ff}] " file format
+" Always show at least one line above/below the cursor.
+" See https://github.com/tpope/vim-sensible
+if !&scrolloff
+ set scrolloff=1
+endif
+if !&sidescrolloff
+ set sidescrolloff=5
+endif
+set display+=lastline
+
" maximum number of tabs to open
set tabpagemax=20