Wikia

Vim Tips Wiki

Changes: Script:2135

Edit

Back to page

(adjust Template:ScriptComments to remove id as no longer needed; minor tweaks)
(Change <tt> to <code>, perhaps also minor tweak.)
 
Line 2: Line 2:
   
 
==Comments==
 
==Comments==
If you add the following line to file <tt>.vim/filtetype.vim</tt>
+
If you add the following line to file <code>.vim/filtetype.vim</code>
 
<pre>
 
<pre>
 
au BufNewFile,BufRead *.tt setf tt
 
au BufNewFile,BufRead *.tt setf tt
 
</pre>
 
</pre>
   
then you don't need to enter <tt>:set syntax=tt</tt> everytime you open the .tt-file, it will automatically be loaded.
+
then you don't need to enter <code>:set syntax=tt</code> everytime you open the .tt-file, it will automatically be loaded.

Latest revision as of 09:44, July 14, 2012

Use this page to discuss script 2135 tt: syntax highlighting for tintin/tt++

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

CommentsEdit

If you add the following line to file .vim/filtetype.vim

au BufNewFile,BufRead *.tt setf tt

then you don't need to enter :set syntax=tt everytime you open the .tt-file, it will automatically be loaded.

Around Wikia's network

Random Wiki