My favorite Vim oneliners for text manipulation

In this blog post, I will be sharing my favorite vim one-liners that have greatly improved my vim workflow. These one-liners have impressed me with their ability to efficiently complete tasks, saving me valuable time. One of these handy commands allows you to count the words in a file, while another allows you to format JSON documents using the python json library. You can also remove all blank lines from a file and open multiple files at once in split mode. Additionally, you can calculate the sum of all numbers in a file and extract IP addresses. I hope you found this post informative and if you have any vim tips or one-liners, please share them in the comments.

https://muhammadraza.me/2023/vim-onliners/

To top