VIM : easy insert HTML tags
Add this cryptic string to your .vimrc
imap <C-t> <></><Esc>5hdiwp3lpT>i
If you are in insert mode, keyboard shortcut Ctrl+t create pair tag from word before cursor.
Usage:
- write tag name. ex.: strong
- press Ctrl+t
- pair tag is created, insert content
Written by Petr
Related protips
2 Responses

I complemented with `map <C-t> bea<C-t>'
over 1 year ago
·

You could try zencoding (https://github.com/mattn/zencoding-vim) and take that to a whole new level. ;-)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#