Tag Archives: vim

Turn on puppet syntax highlight in vim

On Debian/Ubuntu:

sudo apt-get install vim-puppet
ln -s /usr/share/vim/addons/syntax/puppet.vim ~/.vim/plugin/

Tagged ,

VIM backspace delete problem

In insert mode, backpace doesn’t delete characters as intended. To fix it add this to .vimrc:

set backspace=indent,eol,start

Ref: http://vim.wikia.com/wiki/Backspace_and_delete_problems

Tagged ,

Vim Tip: Insert Time-Stamp

To insert time-stamp in a file, you can exit from edit mode and type:

:r! date

Tagged ,

Get every new post delivered to your Inbox.