Consider I work on a file like this:'90008000','90008005'How can I insert the following text after '90008000', in Vim:'90008001','90008002','90008003','90008004',I have read this post, but I do not know how to insert these numbers in the same line.
Insert a string of sequential numbers in one line
command line
You could use a macro. Starting with the cursor on the first character of the line, type qqyf,P<C-a>F'q3@q:qq      start the macro recording to register `q`yf,     yank the part you are looking to duplicate,P       paste it *before* the cursor.<C-a>   increment the next number by oneF'      move backwards until 'q       stop recording the macro,3@q     execute previously recorded macro 3 times.In practice, it is often easier to do this kind of things linewise and join the lines afterward. :join! can be used to avoid spaces while joining the lines.