9e7096459f94

vim: fix CCM and add esc-autocomplete
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 13 Dec 2010 11:42:34 -0500
parents f0d5c7c0f700
children 35f595330c7b
branches/tags (none)
files vim/.vimrc

Changes

--- a/vim/.vimrc	Fri Dec 10 09:55:26 2010 -0500
+++ b/vim/.vimrc	Mon Dec 13 11:42:34 2010 -0500
@@ -190,9 +190,12 @@
 inoremap <C-_> <Space><BS><Esc>:call InsertCloseTag()<cr>a
 
 " Faster Esc
-inoremap <Esc> <nop>
 inoremap jj <ESC>
 
+" TextMate-Style Autocomplete
+inoremap <ESC> <C-P>
+inoremap <S-ESC> <C-N>
+
 " Scratch
 nmap <leader><tab> :Sscratch<cr><C-W>x<C-j>:resize 15<cr>
 
@@ -355,11 +358,11 @@
 endfunction
 
 " Camel Case Motion
-map <silent> \w <Plug>CamelCaseMotion_w
-map <silent> \b <Plug>CamelCaseMotion_b
+map <silent> āˆ‘ <Plug>CamelCaseMotion_w
+map <silent> āˆ« <Plug>CamelCaseMotion_b
 map <silent> \e <Plug>CamelCaseMotion_e
-omap <silent> i\w <Plug>CamelCaseMotion_iw
-xmap <silent> i\w <Plug>CamelCaseMotion_iw
+omap <silent> iāˆ‘ <Plug>CamelCaseMotion_iw
+xmap <silent> iāˆ‘ <Plug>CamelCaseMotion_iw
 
 if has('gui_running')
     set guifont=Menlo:h12