1

I have the following keymappings in my vimrc

nmap :Q<CR> :q<CR>
nmap :W<CR> :w<CR>
nmap :WQ<CR> :wq<CR>

However, they do nothing. Vim complains that Q isn't a valid command. Same for W and WQ. I restarted vim and everything. I'm trying to figure this out and I'm also hoping to map Ctrl+W and the arrow keys to just Ctrl+h for changing windows left and etc. How can I go about doing that?

xav
  • 5,452
  • 7
  • 48
  • 57
Hugo
  • 2,186
  • 8
  • 28
  • 44

1 Answers1

0

For your second question:

nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
Amit
  • 19,780
  • 6
  • 46
  • 54