summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@anevia.com>2016-02-16 11:11:28 +0100
committerHugues Hiegel <hugues.hiegel@anevia.com>2016-02-16 11:11:28 +0100
commit4ac618d602c63ae0039ab83de1a0c367bc857502 (patch)
treece3d5c1c8018f4c8ea5553b2cc2003dfc51ff4e7
parentfc113debd3789e97980b9d446c71bb7a34b4b145 (diff)
[keys] swaped j/k with gj/gk
I rather like moving through visual lines instead real ones (this is effective only if “wrap” is set, on long lines split across multiple ones)
-rw-r--r--vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 1c9071c..914cb76 100644
--- a/vimrc
+++ b/vimrc
@@ -116,6 +116,10 @@ noremap <C-j> <C-e>
set nowrap
noremap <C-l> z2l
noremap <C-h> z2h
+noremap j gj
+noremap k gk
+noremap gj j
+noremap gk k
"Macros
nmap <F2> :set invet<CR>