summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>