Last active
February 28, 2016 19:44
-
-
Save pstjean/82f737647535f9f1406a to your computer and use it in GitHub Desktop.
Format song lyrics with Vim
This file contains 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
# Trim punctuation and whitespace from EOL | |
let @a='%s/[.|,|;|:][ \t]*$//g' | |
# Uppercase first letter of each line | |
let @b='%s/^\([a-z]\)/\U\1/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment