From a5a86a2a7d04b9e2f4d7d1a8cd80ee31e62c72a3 Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Tue, 2 Oct 2012 21:57:29 -0700 Subject: [PATCH] When opening nerdtree wtih C-\ ensure consistent sizing --- vim/plugin/settings/yadr-keymap.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim/plugin/settings/yadr-keymap.vim b/vim/plugin/settings/yadr-keymap.vim index 5a1002f..7f493b0 100644 --- a/vim/plugin/settings/yadr-keymap.vim +++ b/vim/plugin/settings/yadr-keymap.vim @@ -97,6 +97,8 @@ imap wa " ==== NERD tree " Cmd-Shift-N for nerd tree nmap :NERDTreeToggle +" Open the project tree and expose current file in the nerdtree with Ctrl-\ +nnoremap :NERDTreeFind:vertical res 30 " ,q to toggle quickfix window (where you have stuff like GitGrep) " ,oq to open it back up (rare) @@ -112,8 +114,6 @@ autocmd FileType ruby map [m autocmd FileType rspec map } autocmd FileType rspec map { -" Open the project tree and expose current file in the nerdtree with Ctrl-\ -nnoremap :NERDTreeFind " Command-/ to toggle comments map :TComment