aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index db2d0714..e80b2207 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -184,6 +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>'
+else
" Map g: as a 'colon operator'
nmap g: <Plug>(ColonOperator)