Vi

From CodeMonkeyWiki

Jump to: navigation, search

FTL template syntax highlighting

wget http://freemarker.org/download/editor/ftl.vim
dos2unix ftl.vim
mv ftl.vim /usr/share/vim/vim71/syntax

edit /usr/share/vim/vim71/filetype.vim add the lines

" FTL template
au BufNewFile,BufRead *.ftl                     setf ftl

turn on pastetoggle

edit ~/.vimrc and add the line

set pastetoggle=<F12>

literally press the F12 key for that input. can then press F12 when in edit mode to disable comment cascading

Turn on line numbers by default

edit ~/.vimrc and add the line

set number

Can type :set nonumber to disable line numbers when using vi (e.g. for copying)

Personal tools