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
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/60390/20096c359879f04a7a9cbc4aaa6cfdbb.png)
I complemented with `map <C-t> bea<C-t>'
over 1 year ago
·
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/52376/2aaae7041aca85da930bcaf14d6768d2.jpeg)
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#