aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-03-01 19:27:17 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-03-01 19:43:52 +0100
commit515b61861b8ecda63ba2bb9149d7118b4a5ea250 (patch)
treed1c93a8691d9a0c61088b43ff03b3882bb9b9cc2 /%HOME%
parentvim: fix a comment (diff)
downloadlinux-home-515b61861b8ecda63ba2bb9149d7118b4a5ea250.tar.gz
linux-home-515b61861b8ecda63ba2bb9149d7118b4a5ea250.zip
vim: set scrolloff
Also done for platforms without vimrc_example.vim.
Diffstat (limited to '%HOME%')
-rw-r--r--%HOME%/.vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/%HOME%/.vimrc b/%HOME%/.vimrc
index 0c92553..8dff23b 100644
--- a/%HOME%/.vimrc
+++ b/%HOME%/.vimrc
@@ -41,6 +41,8 @@ set ruler
set number
" Add a vertical ruler.
set colorcolumn=80
+" Show a few lines of context around the cursor.
+set scrolloff=5
" -----------------------------------------------------------------------------
" Key bindings