aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-27 22:42:07 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-27 22:42:07 +1200
commit56ae3e66ec552d79ad7e86d664b3b6f4b6a94896 (patch)
treeeeb174831c85799ca48bb8b1bd854f03fda50931 /vim/vimrc
parentRemove backspace mapping (diff)
downloaddotfiles-56ae3e66ec552d79ad7e86d664b3b6f4b6a94896.tar.gz
dotfiles-56ae3e66ec552d79ad7e86d664b3b6f4b6a94896.zip
Try an expanded mapping for <Space>
If at the end of the file, change to the next file in the argument list.
Diffstat (limited to 'vim/vimrc')
-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)