Skip to main content
9 events
when toggle format what by license comment
Aug 18, 2023 at 13:07 comment added jabellcu Just like any other command on a range, it also works on visually selected lines :'<,'>w filename
Feb 28, 2023 at 15:10 comment added raindog308 @felwithe - yes, for example :.,$ w file.txt That is "." for current line and "$" for "end of file". You can swap out line numbers for either "." or "$" as needed.
Feb 17, 2023 at 16:32 comment added felwithe Is there a notation that means "this line until the end of the file"? Or even: "the cursor's present position to the end of the file"?
Feb 12, 2019 at 9:35 review Suggested edits
Feb 12, 2019 at 10:17
Mar 24, 2018 at 19:20 comment added Ravi Sevta Hi @Bernhard, what if i want to cut lines from current file.
Jul 19, 2012 at 17:09 vote accept Michael Durrant
Jul 19, 2012 at 15:46 comment added user732 Inclusive. Also inclusive if you use patterns: :/^something/,/^else/ w filename, or marks: 'a,'b w filename includes the lines marked 'a' and 'b'.
Jul 19, 2012 at 15:34 comment added Marcin Are the addresses inclusive or exclusive?
Jul 19, 2012 at 13:21 history answered Bernhard CC BY-SA 3.0