Subj : Re: 2wk vim challenge To : NerdTower From : Nelgin Date : Fri Aug 18 2023 13:42:45 Re: Re: 2wk vim challenge By: NerdTower to Nelgin on Fri Aug 18 2023 11:27:04 > YES! I would love to see more stuff! OK, let me think of a few more I use r will overwrite one character R will overwrite until you escape. In normal mode (not insert) ~ will change case from upper to lower or vice versa of the character under the cursor. Of course, 15~ will change the next 15 characters. :set number :set nonumber will turn line numbers on and off (they're not saved to a file if turned on saved) ZZ is a quick way to save a file, rather than having to do :w! :r filename will read in a file and add it to the file you're editing :! command Will run a shell command. Combine the two :r !ls Will add the output of ls into your file. yy will yank a line and p or P will paste it. 15yy will, of course, yank 15 lines. Last one for now, let's record a macro. q a list of commands to stop recording. For example qaiThis is a testq This will record a macro on key a and insert the text. Now execute the macro with @a then use @@ to repeat it. So any time you want to insert This is a test into your file, just use @a Your macro should be saved automatically. .