Tuesday, November 19, 2013

Vim in visual studio tools

Here is what I use to launch vim from the studio:


// ampersand allows me to press 
// Alt-T-1 to run vim
Title: &1 Vim 

// 1. servername allows all files 
//    to be edited inside the same vim instance
// 2. 'g' before the name: not sure 
//    if it's actual now, but at the 
//    time I wrote it, it helped to bring 
//    vim window to front (because it 
//    starts with 'g' as gvim).
// 3. we also set cursor to the same position
// 4. Item path - also allows 
//    editing project/solution files
Arguments: --servername g$(SolutionFileName) --remote-silent  "+call cursor($(CurLine), $(CurCol))" $(ItemPath) 

// start in solution dir allows to 
// open all solution files/dirs in 
// navigation plugin, like NERD tree.
Initial directory: $(SolutionDir)

No comments:

Post a Comment