Added Command-T shortcut and shortcut for NERDCommenter

pull/2/head
Bodaniel Jeanes 2010-12-21 23:36:30 +10:00
parent 98272f92f3
commit c8a178e3b2
2 changed files with 11 additions and 9 deletions

View File

@ -14,7 +14,10 @@ if has("gui_macvim")
cnoremap <D-Backspace> <C-U> cnoremap <D-Backspace> <C-U>
" Command-/ to toggle comments " Command-/ to toggle comments
map <D-/> <plug>NERDCommenterToggle<CR> map <D-/> <plug>NERDCommenterToggle
" Command-T (a la Textmate)
macmenu &File.New\ Tab key=<nop>
map <D-t> :CommandT<CR>
endif endif

View File

@ -14,7 +14,6 @@ syntax on
filetype plugin indent on filetype plugin indent on
match ErrorMsg '\%>80v.\+' match ErrorMsg '\%>80v.\+'
" UI " UI
set number set number
set ruler set ruler
@ -206,10 +205,10 @@ set backspace=indent,eol,start
" Window manipulation " Window manipulation
"map tt <C-w> "map tt <C-w>
map <C-w><Backspace> <Esc>:wincmd h<CR> | " This and the below are also useful for colemak map <C-w><Backspace> <Esc>:wincmd h
map <C-w><Space> <Esc>:wincmd l<CR> map <C-w><Space> <Esc>:wincmd l
map <C-w><S-Backspace> <Esc>:wincmd H<CR> map <C-w><S-Backspace> <Esc>:wincmd H
map <C-w><S-Space> <Esc>:wincmd L<CR> map <C-w><S-Space> <Esc>:wincmd L
" Opens an edit command with the path of the currently edited file filled in " Opens an edit command with the path of the currently edited file filled in
" Normal mode: <Leader>e " Normal mode: <Leader>e
@ -224,8 +223,8 @@ nmap h <Up>
nmap k <Down> nmap k <Down>
" Nicer split controls " Nicer split controls
"map <C-_> normal :split<CR> map <C-_> :split<CR>
"map <C-\|> normal :vsplit<CR> map <C-\> :vsplit<CR>
" Emacs-like keys for the command line " Emacs-like keys for the command line
cnoremap <C-A> <Home> cnoremap <C-A> <Home>