diff options
-rw-r--r-- | vim/config/scroll.vim | 5 | ||||
-rw-r--r-- | vim/vimrc | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/vim/config/scroll.vim b/vim/config/scroll.vim new file mode 100644 index 00000000..62bc4ee8 --- /dev/null +++ b/vim/config/scroll.vim @@ -0,0 +1,5 @@ +" Allow the cursor to get to the top or bottom of the screen before scrolling +" vertically, but set a reasonably wide gutter for scrolling horizontally; no +" particular reason, just suits me better +set scrolloff=0 +set sidescrolloff=16 @@ -56,12 +56,6 @@ set nomodeline " zero-padded decimal, so increment and decrement with ^A and ^X on that basis set nrformats-=octal -" Allow the cursor to get to the top or bottom of the screen before scrolling -" vertically, but set a reasonably wide gutter for scrolling horizontally; no -" particular reason, just suits me better -set scrolloff=0 -set sidescrolloff=16 - " Preserve the flags for a pattern when repeating a substitution with &; I don't " really understand why this isn't a default, but there it is nnoremap & :&&<CR> |