The problem with the default Vim macros is that they’re not persistent. Every time you fire up them. Those old macros you were using yesterday are no longer there. In fact.. macros are confined to the buffer by default. So being able to save persistent macros, which can be used in daily operations, and from buffer the buffer is a bit of a game changer.
Persistant buffers
Quick generation of html tags with these persistant Macros and the surround plugin.
Prerequisites
fire off the below commands by stiking @
and proceeding charater
1
| let @l = 'VS<li>\<Esc>'
|
1
| let @1 = 'VS<H1>\<Esc>'
|
1
| let @h = 'VS<H2>\<Esc>'
|
1
| let @3 = 'VS<H3>\<Esc>'
|
1
| let @4 = 'VS<H4>\<Esc>'
|
1
| let @s = 'VS<span>\<Esc>'
|
1
| let @d = 'VS<div>\<Esc>'
|
1
| let @u = 'VS<ul>\<Esc>'
|
1
| let @o = 'VS<ol>\<Esc>'
|