summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2019-10-26 14:39:57 +0200
committerHarald Eilertsen <haraldei@anduin.net>2019-10-26 14:39:57 +0200
commit162b459c492c6e2524c0ce61558b02ed7986d0b0 (patch)
treeac3db55769d990045f47cc3da222d40c775d21b2
parentc3cbe2ecd90b69fa4222bd87bb234259e6e71015 (diff)
downloadvimrc-162b459c492c6e2524c0ce61558b02ed7986d0b0.tar.gz
vimrc-162b459c492c6e2524c0ce61558b02ed7986d0b0.tar.bz2
vimrc-162b459c492c6e2524c0ce61558b02ed7986d0b0.zip
Make arrows move up/down by visual line.
-rw-r--r--vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index f669094..8a91e6e 100644
--- a/vimrc
+++ b/vimrc
@@ -28,5 +28,9 @@ autocmd BufWritePre * :%s/\s\+$//e
" press esc to cancel search
noremap <silent> <Esc> :nohlsearch<Bar>:echo<CR>
+" Arrow keys move visually up/down.
+noremap <up> gk
+noremap <down> gj
+
" toggle nerdtree with ctrl-o
map <C-o> :NERDTreeToggle<CR>