Vim Tips Wiki
Register
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 8: Line 8:
 
|version=6.0
 
|version=6.0
 
|rating=42/23
 
|rating=42/23
βˆ’
|category1=File Handling
+
|category1=Windows
βˆ’
|category2=Windows
+
|category2=File Handling
 
}}
 
}}
 
Although the Vim installer gives you options to create right-click "edit with Vim" options, it is convenient to be able to simply double-click on a file to have it open in Vim. This "double-click to open" is commonly referred to as a "file association" and is fairly easy to set up in Microsoft Windows. You can use the "Open With..." menu in Windows to set up a basic association, but that will not allow you to specify any command-line arguments to Vim, such as <code>--remote-silent</code> to open with an existing Vim instance. In order to fully specify the action to take when double-clicking a file, Windows provides the <code>ftype</code> and <code>assoc</code> command-line tools. '''These tools affect all users. You need to use the registry if you want to create [[#User-specific file associations]].'''
 
Although the Vim installer gives you options to create right-click "edit with Vim" options, it is convenient to be able to simply double-click on a file to have it open in Vim. This "double-click to open" is commonly referred to as a "file association" and is fairly easy to set up in Microsoft Windows. You can use the "Open With..." menu in Windows to set up a basic association, but that will not allow you to specify any command-line arguments to Vim, such as <code>--remote-silent</code> to open with an existing Vim instance. In order to fully specify the action to take when double-clicking a file, Windows provides the <code>ftype</code> and <code>assoc</code> command-line tools. '''These tools affect all users. You need to use the registry if you want to create [[#User-specific file associations]].'''
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)