Vim Tips Wiki
(adding category)
(Change to TipImported template + severe manual clean)
Line 1: Line 1:
  +
{{TipImported
{{Tip
 
 
|id=1301
 
|id=1301
  +
|previous=1300
|title=In Windows, associate files with no extension to vim
 
  +
|next=1302
|created=August 10, 2006 17:36
+
|created=August 10, 2006
 
|complexity=basic
 
|complexity=basic
 
|author=John Little
 
|author=John Little
 
|version=5.7
 
|version=5.7
 
|rating=87/32
 
|rating=87/32
|text=
 
 
}}
 
}}
 
For Windows users that use file associations to [[Launch_files_in_new_tabs_under_Windows|automatically launch files in Vim]], a gem I've found is, in a command prompt window:
   
  +
<pre>
For Windows users that use file associations to [[Launch_files_in_new_tabs_under_Windows|automatically launch files in Vim]], a gem I've found is, in a command window (aka DOS) prompt:
 
 
assoc .=txtfile
  +
</pre>
   
  +
Where txtfile has been defined as a file type that is opened with Vim. See [[VimTip1003]], and try <tt>ftype /?</tt> at the command prompt.
assoc .=txtfile
 
 
(or something else that is opened with vim; see [[VimTip1003]], and be aware of the "ftype" command).
 
   
 
This will cause files with no extension (e.g. "Makefile") to open automatically in Vim.
 
This will cause files with no extension (e.g. "Makefile") to open automatically in Vim.
   
== Comments ==
+
==Comments==
 
   
  +
----
 
[[Category:File Handling]]
 
[[Category:Windows]]
 
[[Category:Windows]]
[[Category:File Handling]]
 

Revision as of 04:38, 28 December 2007

Tip 1301 Printable Monobook Previous Next

created August 10, 2006 · complexity basic · author John Little · version 5.7


For Windows users that use file associations to automatically launch files in Vim, a gem I've found is, in a command prompt window:

assoc .=txtfile

Where txtfile has been defined as a file type that is opened with Vim. See VimTip1003, and try ftype /? at the command prompt.

This will cause files with no extension (e.g. "Makefile") to open automatically in Vim.

Comments