Crawlicious

tools for web business

vim log shortcut

| 0 comments

Here is a simple vim shortcut for adding a piece of code that will log a debug message.

iab _log container.libBLExternal.log(“”)<left><left>

now, if you type _log<space or tab> in a file, you will get container.libBLExternal.log(” “) and your cursor will be placed between the quotes, all ready to go ahead with your log entry!  Yay!

Oh, and here is a great vim cheatsheet site.

Eric

Leave a Reply