vi: how can I jump to end of file with a new line appended?
-------------------------------------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Puzzle2
--
Chapters
00:00 Question
00:36 Accepted answer (Score 61)
00:49 Answer 2 (Score 4)
01:07 Answer 3 (Score 1)
01:36 Thank you
--
Full question
https://superuser.com/questions/303317/v...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#vi
#avk47
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Puzzle2
--
Chapters
00:00 Question
00:36 Accepted answer (Score 61)
00:49 Answer 2 (Score 4)
01:07 Answer 3 (Score 1)
01:36 Thank you
--
Full question
https://superuser.com/questions/303317/v...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#vi
#avk47
ACCEPTED ANSWER
Score 61
What about Go, successively? ;-)
ANSWER 2
Score 4
An alternative with command line:
:$put _
If you want to understand that, you can also read this answer on registers
ANSWER 3
Score 1
One way to do this is to create a macro and place it in your .vimrc file.
map , GA<enter>
This will map the comma key. When pressed, vi will go to the end of the file, go to the end of that line and create a new blank line. This will also leave you in insert / edit mode.