Easier window navigation, disable insert-mode F-keys except F4

Sat, 05 Jul 2014 01:51:14 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 05 Jul 2014 01:51:14 -0400
changeset 111
99cc7b567195
parent 109
14b6da5839f0
child 113
6fb9403f0c80
child 114
599b1b279478

Easier window navigation, disable insert-mode F-keys except F4

.vimrc file | annotate | diff | comparison | revisions
--- a/.vimrc
+++ b/.vimrc
@@ -108,19 +108,26 @@ else
 endif
 
 " F-n keys call out to normal mode from insert mode
-imap <F1> <C-O><F1>
-imap <F2> <C-O><F2>
+" only :noh seems smart to do.
+"imap <F1> <C-O><F1>
+"imap <F2> <C-O><F2>
 "imap <F3> <C-O><F3>
 imap <F4> <C-O><F4>
-imap <F5> <C-O><F5>
+"imap <F5> <C-O><F5>
 "imap <F6> <C-O><F6>
 "imap <F7> <C-O><F7>
-imap <F8> <C-O><F8>
+"imap <F8> <C-O><F8>
 
 " chdir to the directory of the open buffer
 map <leader>cd :cd %:p:h<cr>:pwd<cr>
 
 map <leader>pp :setlocal paste!<cr>
+
+" faster window nav
+nmap <C-h> <C-w>h
+nmap <C-j> <C-w>j
+nmap <C-k> <C-w>k
+nmap <C-l> <C-w>l
 "}}}
 
 

mercurial