aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2014-04-25 22:29:58 -0400
committerTeddy Wing2014-04-25 22:29:58 -0400
commit0a8b39634bc8588b9be53528a286d1b1088f5480 (patch)
treefeabf48aa5a477af26f71847e2d4777e9150052c /vimrc
parent2a4a0b3e6e0e6b2f8faaf9f9b1a1748b7639d8aa (diff)
downloaddotvim-0a8b39634bc8588b9be53528a286d1b1088f5480.tar.bz2
vimrc: map gj to j and gk to k
Gives us access to skip wrapped lines since we mapped the inverse direction before and as such there was no way to do this. Consider this a power user version of up and down. I think this mapping is more intuitive.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 362b08b..35aaf17 100644
--- a/vimrc
+++ b/vimrc
@@ -81,6 +81,7 @@
"
" 2014.04.25:
" * Map <leader>/ to clear search highlighting
+" * Map gj -> j and gk -> k so we can still skip wrapped lines if we want
"
@@ -282,6 +283,8 @@ vnoremap <leader>] >gv
" Allow easy moving to wrapped lines
nnoremap j gj
nnoremap k gk
+nnoremap gj j
+nnoremap gk k
" Easier buffer switching
nnoremap <leader>bl :ls<cr>