summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-07-18 16:13:19 -0400
committerJune McEnroe <june@causal.agency>2017-07-18 16:13:19 -0400
commit83889aa7fc78ba7216e6019d7f0ed6cc13499bb7 (patch)
tree6626f5e24e263487edb1908ecf2f7037b7f9f85f /home
parentRemove color from xx, group ASCII (diff)
downloadsrc-83889aa7fc78ba7216e6019d7f0ed6cc13499bb7.tar.gz
src-83889aa7fc78ba7216e6019d7f0ed6cc13499bb7.zip
Map C-w {N,E} in nvim
Also I forgot that using command! with the exclamation mark is so that
the file can be sourced again without conflict.
Diffstat (limited to '')
-rw-r--r--home/.config/nvim/init.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim
index 99808cce..f09485de 100644
--- a/home/.config/nvim/init.vim
+++ b/home/.config/nvim/init.vim
@@ -3,7 +3,7 @@ set undofile
 set shortmess=atI
 set wildmode=list:longest
 set splitbelow splitright
-command W w
+command! W w
 autocmd BufNewFile,BufRead *.asm,*.mac setfiletype nasm
 
 set tabstop=8 expandtab shiftwidth=4 shiftround smartindent
@@ -32,3 +32,5 @@ noremap K N
 noremap J E
 nmap <C-w>n <C-w>j
 nmap <C-w>e <C-w>k
+nmap <C-w>N <C-w>J
+nmap <C-w>E <C-w>K