AtulT 17-Dec-04 TODO <text follows here>
Typing this tens of times is !@#$ing boring. You can abbreviate it as:
ab coM AtulT 17-Dec-04
ab TODO AtulT 17-Dec-04 TODO
ab FIXME AtulT 17-Dec-04 FIXME
But that's no GOOD!!! Why??? Hell, I have to change ab settings every day! Thats not how a programmer codes! I knew that HAS to be a better way, esp. when I have VIM! And yes, I discovered my own very very sexy way of doing that. I would love to share my own 2 cent tip with you.
Add this to your .vimrc file:
" TODO FIXME and comments
" date "+%d-%b-%y"
ab coM AtulT ^O:r! date +\%d-\%b-\%y
^O and ^[ are special control characters, the way to enter them is, in insert mode, press Ctrl-Q followed by Ctrl-O and Ctrl-Q Ctrl-Esc resp. You know you have entered them right if you navigate over ^O and ^[ and cursor passes through both at once, as a single character. Use Ctrl-V if Ctrl-Q doesn't work for you.