Vim Tips Wiki
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 49: Line 49:
 
If you have other settings you'd like to apply (like ''normal zz'' to centre the cursor or updating ''path'' for '':[[Project_browsing_using_find|find]]'', then you can put them in ''$HOME/vimfiles/visualstudioinvoke.vim'' and add ''+"runtime visualstudioinvoke.vim"'' before ''$(ItemFileName)''. <code>$HOME</code> is either the %HOME% environment variable if one is defined, or Vim determines an appropriate directory which you can see by doing <code>:echo $HOME</code> within Vim.
 
If you have other settings you'd like to apply (like ''normal zz'' to centre the cursor or updating ''path'' for '':[[Project_browsing_using_find|find]]'', then you can put them in ''$HOME/vimfiles/visualstudioinvoke.vim'' and add ''+"runtime visualstudioinvoke.vim"'' before ''$(ItemFileName)''. <code>$HOME</code> is either the %HOME% environment variable if one is defined, or Vim determines an appropriate directory which you can see by doing <code>:echo $HOME</code> within Vim.
   
βˆ’
'''The Shortcut:''' In Visual Studio, Tools -> Options -> Environment -> Keyboard:
+
'''The Shortcut:''' In Visual Studio, Tools -> Options -> Keyboard:
 
*''Command:'' ExternalCommand1 (it's easiest if you move your Vim external tool to be the first, otherwise use the correct index).
 
*''Command:'' ExternalCommand1 (it's easiest if you move your Vim external tool to be the first, otherwise use the correct index).
 
*''Shortcut key:'' F1
 
*''Shortcut key:'' F1
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)