Vim Tips Wiki
Advertisement

Previous TipNext Tip

Tip: #934 - Vim-sessions under Windows

Created: May 23, 2005 2:15 Complexity: basic Author: Ivan Tishchenko Version: 5.7 Karma: 7/7 Imported from: Tip#934

If you use vim-sessions, and if you run Vim under Windows, try this tip. Place following lines in <somefile>.reg and execute it. This adds files associations for extensions .vimsession and .vim, so that clicking on <bla-bla>.vimsession Windows will run "gvim -S <bla-bla>.vimsession", and something appropriate will be done when clicking on <bla-bla>.vim (read it yourself below). Of course, you will need to change full path to your GVim installed.


REGEDIT4


[HKEY_CLASSES_ROOT\.vimsession]

@="vimsession_auto_file"


[HKEY_CLASSES_ROOT\vimsession_auto_file]

@="GVim saved session"


[HKEY_CLASSES_ROOT\vimsession_auto_file\shell]


[HKEY_CLASSES_ROOT\vimsession_auto_file\shell\edit]


[HKEY_CLASSES_ROOT\vimsession_auto_file\shell\edit\command]

@="D:\\prgfiles\\vim\\vim63\\gvim.exe -S \"%1\""


[HKEY_CLASSES_ROOT\.vim]

@="vim_auto_file"


[HKEY_CLASSES_ROOT\vim_auto_file]

@="GVim script"


[HKEY_CLASSES_ROOT\vim_auto_file\shell]


[HKEY_CLASSES_ROOT\vim_auto_file\shell\edit]


[HKEY_CLASSES_ROOT\vim_auto_file\shell\edit\command]

@="D:\\prgfiles\\vim\\vim63\\gvim.exe -c \"try

Comments

Advertisement