aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
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'