sponsor Vim development Vim logo Vim Book Ad

Transpose : Swap lines with columns in matrices of text, delimited text, etc.

 script karma  Rating 13/6, Downloaded by 1470  Comments, bugs, improvements  Vim wiki

created by
Benoit Mortgat
script type
This plugin performs transposition (in the sense of matrix transposition) on your input.


Transpose the above array and get


Provided commands can transpose:

* Arrays of individual characters
* Arrays of tabulation-separated fields
* Arrays with a delimiter (CSV, default delimiter being a semicolon)
* Arrays of words (whitespace-separated fields)
* Arrays with delimiters of your choice with a provided vim search pattern

Screenshots and development available at https://github.com/salsifis/vim-transpose

Run :help transpose-tutorial after installing and generating help tags.
install details

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
Transpose.7z 1.0 2015-07-16 7.0 Benoit Mortgat CSV: Allow override of default separator
Update '< and '> marks when transposing
Allow some commands to be chained
Transpose.tar.gz 0.3 2012-05-11 7.0 Benoit Mortgat Fixed additional line appearing when transposing whole buffer
transpose.tar.gz 0.2 2012-05-09 7.0 Benoit Mortgat Fixed invalid tokenization of empty lines.
transpose.tar.gz 0.1 2012-05-08 7.0 Benoit Mortgat Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
Vim at Github