Open utterances-bot opened 1 year ago
Nice blog post.
Vim actually already has a built-in word count feature with g ctrl-g
. It even works for a visual selection.
You could also jq
instead of the python tool if you have it installed: :%!jq
Deleting empty lines can be done with
:%v/./d
Today at work i learned about the join
command. For example :%join
removes all newlines in the file.
That's really cool
Deleting empty lines can be done with
:%v/./g
I think this is :%v/./d
Deleting empty lines can be done with
:%v/./g
I think this is
:%v/./d
You are right, I had edited my comment.
My Favorite Vim Oneliners For Text Manipulation | Muhammad
A list of simple vim oneliners which helps you edit your text faster
https://muhammadraza.me/2023/vim-onliners/