From c8a178e3b2aa2d0b531a2b2d4df0764f41996519 Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Tue, 21 Dec 2010 23:36:30 +1000 Subject: [PATCH] Added Command-T shortcut and shortcut for NERDCommenter --- vim/gvimrc | 7 +++++-- vim/vimrc | 13 ++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/vim/gvimrc b/vim/gvimrc index ad12ee6..fb39112 100644 --- a/vim/gvimrc +++ b/vim/gvimrc @@ -9,12 +9,15 @@ if has("gui_macvim") " Fullscreen takes up entire screen set fuoptions=maxhorz,maxvert - " Mac OS X style command line editing + "Mac OS X style command line editing cnoremap cnoremap " Command-/ to toggle comments - map NERDCommenterToggle + map NERDCommenterToggle + " Command-T (a la Textmate) + macmenu &File.New\ Tab key= + map :CommandT endif diff --git a/vim/vimrc b/vim/vimrc index ddf2399..745544e 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -14,7 +14,6 @@ syntax on filetype plugin indent on match ErrorMsg '\%>80v.\+' - " UI set number set ruler @@ -206,10 +205,10 @@ set backspace=indent,eol,start " Window manipulation "map tt -map :wincmd h | " This and the below are also useful for colemak -map :wincmd l -map :wincmd H -map :wincmd L +map :wincmd h +map :wincmd l +map :wincmd H +map :wincmd L " Opens an edit command with the path of the currently edited file filled in " Normal mode: e @@ -224,8 +223,8 @@ nmap h nmap k " Nicer split controls -"map normal :split -"map normal :vsplit +map :split +map :vsplit " Emacs-like keys for the command line cnoremap