VIM: swap two columns separated by space -


i have 2 columns:

cats dog   dog cats 

i want swap 2 columns:

dog cats cats dog  

using vim how this?

my first idea, substitution, ended looking birei's went awk (that don't know much) used filter:

:%!awk '{print $2, $1}' 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -