Vim

" Insert text in the end of each line
" s/ - substitute.
" $ - the end of the line.
" / - change it to.
" , - a comma.
:%s/$/,
" Lowercase line
Vu
" Find char backwards
F<char>
" Delete backwards until char
dT<char>
" Visually select until char
v/<char><return>
" Delete all lines in file
:%d
" Yank two inner words
" Yanks first and second words (with the trailing space) in the unnamed register
y2aw
" Delete until start of line
d0

Last updated

Was this helpful?