Last active
December 21, 2015 03:28
-
-
Save house9/6242331 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# given a file with a number on each line | |
# 1) add a comma to the end of each | |
q a # record and store in 'a' | |
A,<esc>j # Go to end of line in insert mode, type , go to next line | |
q # stop recording | |
50@a # run the recording 50 times | |
# 2) put all on a single line | |
:1,50j |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment