From b111f871d104bc36b9a46bfef06025b6c051769d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 6 Jun 2018 15:38:27 +1200 Subject: Abbreviate and invert j/gj,k/gk mappings --- vim/vimrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index db6e7f47..01614231 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -442,12 +442,12 @@ set display=lastline " start and end of the line set listchars+=precedes:<,extends:> -" When wrapping, j and k should move by screen row, and not to the same -" column number in the previous logical line, which feels very clumsy and is -" seldom particularly helpful; you can use n| to jump to the nth column in a -" line anyway if you need to +" Swap the j/gj and k/gk command pairs so that we move by screen row, not +" buffer line, with j/k nnoremap j gj nnoremap k gk +nnoremap gj j +nnoremap gk k " Line break settings and mappings if has('linebreak') -- cgit v1.2.3