We see an information line when we open Vim, a similar line can be seen by holding down control and pressing lower case "g".
We then look at pasting text into a vim document and how people with older versions of vim may have to type ":set paste" to get the text to line up properly.
We use the ":w" command to create a backup of a document and show how the file-name does not change after making a backup.
When then make two new files newLine.txt and joinMe.txt that we will use later in the video.
We see how to use ":view" to open a file in Vim in "read-only" mode. With the shortcut :vie then we edit a file opening with ":edit" :e for short
We use ":r" to read in the files we created earlier in the video.
We see how to join 2 lines with upper case "J" and joining 3 or more lines by typing that number before the "J".
We then look as how to sort lines by typing in the line numbers (separated by a comma) sort to sort ascending order or to sort in descending order, place an exclamation point (!) at the end of the sort line. Sort the entire file by replacing the starting and ending line numbers with %
The last thing we look at is ":set list" which will show the end of line character for every line in the file.
See the complete Vim playlist at:
https://www.youtube.com/watch?v=1lzXr-MztOU
See the complete Vim playlist in a single video at:
https://www.youtube.com/watch?v=3G6kAEvbv2A
Website link:
https://thefrugalcomputerguy.com/linux/seriespg.php?ser=10002
14 Comments