From 83889aa7fc78ba7216e6019d7f0ed6cc13499bb7 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 18 Jul 2017 16:13:19 -0400 Subject: 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. --- home/.config/nvim/init.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'home/.config/nvim/init.vim') 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 n j nmap e k +nmap N J +nmap E K -- cgit 1.4.1