Let's say you want to append some code beneath a line. To do this, we had to go to our line, then press "A" and ENTER. Remember that even two key strokes is sometimes too much in Vim. Thankfully, Vim makes this process much easier with the "o" key. Think of "o" as in open. To add a line, use: o - open a line below O - open a line above Let's add some comments to this python function: def sumAndSquare(a, b): #comment here sum = a+b # another comment here return sum ** 2 We can also join lines together. J - join current line with the one below Turn this block of text back into one line! Review Questions: 1) Insert a period at the end of this line 2) Insert a "please" in front of the following sentences: give me a cookie. don't text and drive. Solutions: 1) A. 2) on each line, type "IPlease"
Command Line Kung Fu is packed with dozens of tips and practical real-world examples. You won't find theoretical examples in this book. The examples demonstrate how to solve actual problems. The tactics are easy to find, too. Each chapter covers a specific topic and groups related tips and examples together.$ Check price
Ever feel achy from sitting crunched up on your computer table? Try lying down with these optical glasses that allow you to work on your laptop while lying flat on your back. This is the perfect solution with those with limited mobility or those who wish to prevent neck cramps and back strains.$ Check price