The argument is a search pattern as you are used to use with the searchĮngine. No range is specified, then the global command will use % by default. This parameter defines the lines which will be treated by the global command. Represents the last selection, and 1,5 represents the lines 1 to 5 of the It here, I'll simply remind that % represents the whole file, ' The syntax is the following: : g / pattern / commandįor more details on the parameter please see :h :range. Matching a pattern, once again that's a good way to apply the same change onĭifferent place without needing multiple cursors. The global command is a tool which allows to apply an ex mode command on lines In Sublime Text I would normally put the first cursor, then go to the next position with the arrows keys and put the second one.įollowing a comment, my interest in doing so appeared when trying to write Sed do eiusmod tempor incididunt ut labore et dolore magna For example ( are the cursor positions): Lorem ipsum dolor sit amet, consectetur adipiscing elit, I would like to put cursors exactly where I want.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |