Is there a single shortcut to start inserting in the new line at end of the file?
I'm aware of G + o combo.
Move cursor to end of file in vim In short press the Esc key and then press Shift + G to move cursor to end of file in vi or vim text editor under Linux and Unix-like systems.
In visual block mode, you can press I to insert text at the same position in multiple lines, and you can press A to append text to each line in a block.
To go into INSERT mode from COMMAND mode, you type i . To go back to COMMAND mode, you type the esc key. vim starts out in COMMAND mode. Over time, you will likely spend more time in COMMAND mode than INSERT mode.
Type A to add text to the end of a line. To see how this command works, position the cursor anywhere on a text line and type A . The cursor moves to the end of the line, where you can type your additions. Press Esc when you are finished.
There's also the command line option "+":
vim + myfile.txt
Will open myfile.txt and do an automatic G for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With