April 23 2016, 00:00#

Txt2tags files syntax coloring in Vim

This is a little note to remember how to enable syntax highlighting for Txt2tags .t2t files in Vim.

Prerequisite

Download the Vim script txt2tags.vim here.

Installation

$ if [ ! -d "$HOME/.vim/syntax" ] ; then mkdir -p $HOME/.vim/syntax ; fi
$ cp txt2tags.vim $HOME/.vim/syntax/

Activation

Edit your .vimrc file at $HOME/.vimrc and add the following line

au BufNewFile,BufRead *.t2t set ft=txt2tags

Tags : unix software