6dc2660b748a

More.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 11 Aug 2011 17:06:23 -0400
parents a03a734110c3
children 6762e87e9ee0
branches/tags (none)
files vim/.vimrc

Changes

--- a/vim/.vimrc	Thu Aug 11 15:43:04 2011 -0400
+++ b/vim/.vimrc	Thu Aug 11 17:06:23 2011 -0400
@@ -161,6 +161,7 @@
 nnoremap <silent> <leader>/ :execute 'vimgrep /'.@/.'/g %'<CR>:copen<CR>
 
 " Fix linewise visual selection of various text objects
+nnoremap VV V
 nnoremap Vit vitVkoj
 nnoremap Vat vatV
 nnoremap Vab vabV
@@ -233,7 +234,7 @@
 
 " Fuck you, help key.
 set fuoptions=maxvert,maxhorz
-noremap <F1> :set invfullscreen<CR>
+noremap  <F1> :set invfullscreen<CR>
 inoremap <F1> <ESC>:set invfullscreen<CR>a
 
 " Fuck you too, manual key.
@@ -887,10 +888,12 @@
     set go-=r
     set go-=R
 
-    " PeepOpen
+    " PeepOpen on OS X, Command-T elsewhere.
     if has("gui_macvim")
         macmenu &File.New\ Tab key=<nop>
         map <leader><leader> <Plug>PeepOpen
+    else
+        map <leader><leader> :CommandT<cr>
     end
 
     highlight SpellBad term=underline gui=undercurl guisp=Orange
@@ -925,6 +928,9 @@
 
     imap <M-BS>         <C-w>
     inoremap <D-BS>     <esc>my0c`y
+else
+    " Command-T if we don't have a GUI.
+    map <leader><leader> :CommandT<cr>
 endif
 
 " }}}