For example if I have some code like:
foo = bar(\"abc\", \"def\", true, callback);
Is there a nice command to move true to the 1st or 2nd posit
I don't know the answer for vi, but in Emacs, transpose-sexps (C-M-t) will swap two arguments either side of the cursor. Actually transpose-words (M-t) was my first guess, but that leaves the quotes behind.
transpose-sexps
transpose-words