Remove the -servername VimStudio part if you want it to open a new instance of Vim each time. The browser will start at the directory of that file, so ':e. This will allow you to use your key combination to open the current file at the current line and cursor in a new vim browser. Command: ExternalCommand1 (it's easiest if you move your Vim external tool to be the first, otherwise use the correct index).The Shortcut: In Visual Studio, Tools -> Options -> Environment -> Keyboard: $HOME is either the %HOME% environment variable if one is defined, or Vim determines an appropriate directory which you can see by doing :echo $HOME within Vim. If you have other settings you'd like to apply (like normal zz to centre the cursor or updating path for : find, then you can put them in $HOME/vimfiles/visualstudioinvoke.vim and add +"runtime visualstudioinvoke.vim" before $(ItemFileName). Note that, if you are using tabs for indenting, this will only place the cursor on the correct column if you have tabs set to display as the same width in both Vim and Visual Studio. servername gVimStudio -remote-silent +"execute 'normal! $(CurLine)G$(CurCol)|'" "$(ItemPath)" servername gVimStudio -remote-silent +"execute 'normal! $(CurLine)G$(CurCol)|'" "$(ItemFileName)$(ItemExt)" NOTE: for visual Studio 2017 I needed to use: The Tool: In Visual Studio, Tools > External Tools > Add: This will let you use a single keystroke to open the current VS file in vim with the cursor at the same line and even at the same column. NET for debugging and want a lightweight way to open the file you're currently debugging in VS in Vim, you can add Vim as an external tool. If you like Vim and use MS Visual Studio. It is only available for all editions of Visual Studio 2010, 2012, 20 excluding Express Edition, and as with viemu does not use Vim. VsVim is an open source Vim emulator (code at ).
#VISUAL STUDIO VIM LINES ADD ON SOFTWARE#
ViEmu for Visual Studio is commercial software that emulates Vim editing commands within Visual Studio (Vim is not used). Making Visual Studio's editor work like Vim IF YOU GET ERRORS, especially E887, you may need to copy some pywin32 files around to allow your system to find them. Load results from Visual Studio into the Vim quickfix file.Build the current project (C/C++/C#) within Vim.
Compile the current file (C/C++) within Vim.Load the current Vim file into Visual Studio.Load the current Visual Studio file into Vim.Script visual_studio.vim includes features: Integration of Vim with Visual Studio 2003 and later Control Visual Studio from Vim 3 Integration of Vim with pre-2003 versions of Visual Studio.2 Use Vim instead of Visual Studio's editor.