Line 32: | Line 32: | ||
map <F12> <ESC>:Tlist<CR><C-W>h <C-W>s:VTreeExplore<CR>:set nonu<CR><C-W>l |
map <F12> <ESC>:Tlist<CR><C-W>h <C-W>s:VTreeExplore<CR>:set nonu<CR><C-W>l |
||
</pre> |
</pre> |
||
− | |||
− | ---- |
||
− | I was just able to copy-paste into my vimrc and it worked |
Revision as of 07:28, 5 May 2008
Tip 1203 Printable Monobook Previous Next
created April 16, 2006 · complexity basic · author Anon · version 5.7
A simple mapping to quickly set up a couple of VTreeExplorer and TagList in the left side of your Vim window. Add the following to your vimrc:
map <F12> <ESC>:Tlist<CR>^Wh^Ws:VTreeExplore<CR>:set nonu<CR>^Wl
Be sure to enter the ^W's as CTRL-V CTRL-W.
The mapping does the following:
- Opens the TagList (opens left by default).
- Switches to the TagList window and splits it.
- Opens VTreeExplorer in the split window.
- Turns of line numbering in the VTreeExplorer.
- Switches back to the window where you started.
Comments
I'm new to Vim so maybe I missed something, but I didn't get it working before I wrote:
map <F12> <ESC>:Tlist<CR><C-W>h <C-W>s:VTreeExplore<CR>:set nonu<CR><C-W>l