Allign the words to the specified column in vim using commands
How I can move or shift the words in the entire file to the specified column? For example like below: Before : 123 ABC 112 XYZS 15925 asdf 1111 25asd 1 qwer After : 123 ABC 112 XYZS 15925 asdf 1111 25asd 1 qwer How it can be done using command mode? Here the thing is we need to shift the 2nd word to the specified column Here the specified column is 8 Approach with built-in commands First :substitute the whitespace with a Tab character, and then :retab to a tab stop to column 8, expanding to spaces (for your given example): :.,.+4substitute/\s\+/\t/ | set tabstop=7 expandtab | '[,']retab (I'm