Luc Hermitte (talk | contribs) (Added to plugin category) |
(Change <tt> to <code>, perhaps also minor tweak.) |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{review}} |
{{review}} |
||
+ | {{TipImported |
||
− | {{Tip |
||
|id=1203 |
|id=1203 |
||
+ | |previous=1202 |
||
− | |title=mapping to set up vtreeexplorer and taglist in left side of window |
||
+ | |next=1204 |
||
− | |created= |
+ | |created=2006 |
|complexity=basic |
|complexity=basic |
||
+ | |author= |
||
− | |author=Quick IDE setup with TagList & VTreeExplorer |
||
|version=5.7 |
|version=5.7 |
||
|rating=13/7 |
|rating=13/7 |
||
+ | |category1=Plugin |
||
− | |text= |
||
+ | |category2= |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | <pre> |
||
− | + | map <F12> <Esc>:Tlist<CR><C-W>h<C-W>s:VTreeExplore<CR>:set nonu<CR><C-W>l |
|
+ | </pre> |
||
⚫ | |||
− | Be sure to enter the ^W's as CTRL-V CTRL-W. |
||
+ | *Opens the TagList (opens left by default). |
||
− | |||
⚫ | |||
⚫ | |||
− | * |
+ | *Opens VTreeExplorer in the split window. |
⚫ | |||
⚫ | |||
− | * |
+ | *Switches back to the window where you started. |
⚫ | |||
− | * Switches back to the window where you started. |
||
− | |||
− | I find this very useful, maybe you will too :) |
||
− | |||
⚫ | |||
− | == |
+ | ==Comments== |
+ | Not sure if Tlist and VTreeExplore can be used with <code>|</code>, but consider (untested): |
||
− | I'm new to vim so maybe i miss something, but I didn't get it working before i wrote |
||
+ | <pre> |
||
− | map <F12> <ESC>:Tlist<CR><C-W>h <C-W>s:VTreeExplore<CR>:set nonu<CR><C-W>l |
||
+ | map <F12> <Esc>:Tlist <Bar> wincmd h <Bar> wincmd s <Bar> VTreeExplore <Bar> set nonu <Bar> wincmd l<CR> |
||
+ | </pre> |
||
+ | {{help|:wincmd}} |
||
− | privat--AT--oystein.nu |
||
− | , September 20, 2006 15:10 |
||
− | ---- |
||
− | <!-- parsed by vimtips.py in 0.451339 seconds--> |
||
+ | Also consider using 'nnoremap' and 'inoremap' and possibly 'vnoremap' rather than just 'map'. |
||
− | [[Category:Plugin]] |
Latest revision as of 06:13, 13 July 2012
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><C-W>h<C-W>s:VTreeExplore<CR>:set nonu<CR><C-W>l
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[]
Not sure if Tlist and VTreeExplore can be used with |
, but consider (untested):
map <F12> <Esc>:Tlist <Bar> wincmd h <Bar> wincmd s <Bar> VTreeExplore <Bar> set nonu <Bar> wincmd l<CR>
Also consider using 'nnoremap' and 'inoremap' and possibly 'vnoremap' rather than just 'map'.