# HG changeset patch # User Steve Losh # Date 1302201153 14400 # Node ID f182e04d95c5f6c345a509d0288c74011e603251 # Parent 06d9d1351890f0588f97d37f2c290dd68b27f157 vim: add emacs bindings in insert mode diff -r 06d9d1351890 -r f182e04d95c5 vim/.vimrc --- a/vim/.vimrc Thu Apr 07 14:25:53 2011 -0400 +++ b/vim/.vimrc Thu Apr 07 14:32:33 2011 -0400 @@ -130,6 +130,10 @@ " L is easier to type, and I never use the default behavior. noremap L $ +" Heresy +inoremap I +inoremap A + " Open a Quickfix window for the last search nnoremap / :execute 'vimgrep /'.@/.'/g %':copen @@ -269,8 +273,8 @@ "

" | "

-au BufNewFile,BufRead *.html imap -au BufNewFile,BufRead *.html imap . +au BufNewFile,BufRead *.html imap +au BufNewFile,BufRead *.html imap . " Django tags au FileType jinja,htmldjango inoremap {%%} @@ -523,6 +527,13 @@ vnoremap F :call EasyMotionF(1, 1) " }}} +" Sparkup {{{ + +let g:sparkupExecuteMapping = '' +let g:sparkupNextMapping = '' + +"}}} + " }}} " Synstack -------------------------------------------------------------------- {{{ @@ -537,7 +548,7 @@ echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")') endfunc " }}} -nmap :call SynStack() +nmap :call SynStack() " }}} " Text objects ---------------------------------------------------------------- {{{ @@ -677,10 +688,6 @@ map PeepOpen end - " Only map Sparkup to ⌘+e when running in MacVim. - let g:sparkupExecuteMapping = '' - let g:sparkupNextMapping = '' - highlight SpellBad term=underline gui=undercurl guisp=Orange " Use a line-drawing char for pretty vertical splits.