From de091c5c380d4217ed263fb6edbf784ce5f0900a Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Wed, 24 Nov 2010 16:43:17 +1000 Subject: [PATCH] Start some custom vim config! --- vim/vimrc.local | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/vim/vimrc.local b/vim/vimrc.local index c5958ab..1863643 100644 --- a/vim/vimrc.local +++ b/vim/vimrc.local @@ -2,3 +2,46 @@ set guioptions=aAce set t_Co=256 colorscheme jellybeans+ set mouse=a + +" Window manipulation +map tt +map | " This and the below are also useful for colemak +map + +" Surrounds shortcuts for visual selections +vmap " s" +vmap ' s' +vmap ( s) +vmap [ s] +vmap { s} +vmap < s> + +" Pressing backspace with selection does something weird +" thanks to above surrounds shortcuts so let's be specific +" here: +vmap xi + +" Colemak +" +" * Switch 'h' and 'n' (so 'up' is on top of 'down'). +" * Use and for and , instead (and disable 'j' +" and 'l' which are where 'y' and 'u' are in in QWERTY) +nmap h +nmap k +nmap j +nmap l + +" Quick save +nmap w :w! + +" Nicer split controls +"map normal :split +"map normal :vsplit + +imap ii | " 'i' for insert mode and 'ii' to get out of it! + +map nn | " This will probably have to be remapped (because nn is a fairly common combo) +imap nn | + +map | +imap |