aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-20 22:42:07 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-20 22:42:07 +1200
commit753f0533711ca148992b5cc9e843510614822058 (patch)
tree4ce9d89495917ef3987a8b353b3ee4f2043d4b3e
parentRemove 'autoread' and 'autowrite' .vimrc settings (diff)
downloaddotfiles-753f0533711ca148992b5cc9e843510614822058.tar.gz
dotfiles-753f0533711ca148992b5cc9e843510614822058.zip
Remove 'scrolloff' and 'sidescrolloff' .vimrc set
'scrolloff' defaults to 0 anyway, and I don't often run into 'sidescrolloff' at all.
-rw-r--r--vim/vimrc8
1 files changed, 1 insertions, 7 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 449fbab1..aab44c87 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -154,7 +154,7 @@ endif
" \f shows the current formatoptions at a glance
nnoremap <Leader>f :<C-U>setlocal formatoptions?<CR>
-" Match all forms of brackets in pairs (including angle brackets)
+" Add angle brackets to pairs of characters to match
set matchpairs+=<:>
" Change and delete with C and D both cut off the remainder of the line from
@@ -162,12 +162,6 @@ set matchpairs+=<:>
" done with yy anyway); this fixes it so it only yanks the rest of the line
nnoremap Y y$
-" 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
-
" Rebind <Space> in normal mode as a lazy scroll
nnoremap <Space> <C-F>