:g command is used in following form
:g/[patern]
Example:
:g/JR/normal I //
explanation
Pattern : JR
Cmd : normal I //
"I" is used in VIM to start insert mode at the start of line and "//" is the comment character used in PHP.
Enjoy VIM. Check out the help :g if you have more questions.
No comments:
Post a Comment