aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-31 12:33:31 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-31 12:35:07 +1200
commitd1f74490f0475165a6744d9d01cbbb1862c182f6 (patch)
treeaea7f57ef321cc12367fdf0b676b8855e13d8558 /vim/vimrc
parentDon't set up 'wildignore' in &compatible mode (diff)
downloaddotfiles-d1f74490f0475165a6744d9d01cbbb1862c182f6.tar.gz
dotfiles-d1f74490f0475165a6744d9d01cbbb1862c182f6.zip
Add scroll_next.vim plugin
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 69b88998..a1f9b66f 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -184,8 +184,9 @@ imap <C-K><C-K> <Plug>(DigraphSearch)
" Remap normal space to scroll down a page
nnoremap <Space> <C-F>
-if v:version > 700
- nnoremap <expr> <Space> line('.') == line('$') ? ':<C-U>next<CR>' : '<C-F>'
+" If we have plugins, do a :next after hitting the last line
+if &loadplugins
+ nmap <Space> <Plug>(ScrollNext)
endif
" Map g: as a 'colon operator'