How to implement to add a #FEATURE(V1) #ENDFEATURE(V1) when changing a line in vim? -
i need function vim:
in vim, when changing 1 line, vim can automatically add 2 lines #del-line/#end-del-line embrace line, , add new 1 #add-line/#end-add-line) record edit steps.
edit: example, text file opened vim, , there line like:
a = b;
when changing line (move cursor @ line , type "c" or "i" or "d" "x" or edit line), vim add line 1, 3, 4, 5, 6, 7 (line 2 original line)
1, #del-line 2, = b; 3, #end-del-line 4, 5, #add-line 6, 7, #end-add-line
(and line numbers ont left reference, not in file)
and cursor put on line 6, wating input changing.
if add 1 line, be:
#add-line b = c; #end-add-line
if there existing plugin or configuration file this? or idea implement this?
thanks!
Comments
Post a Comment