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

double exclamation marks in haskell -

qml - Is it possible to implement SystemTrayIcon functionality in Qt Quick application -

Qt Creator - Searching files with Locator including folder -