ctw
ctw

Reputation: 35

Vim visual mode text formatting

I'm wonder if there is a way in vim to format text in visual mode.

Example:

 URxvt.perl-ext-common: default,matcher
 URxvt.url-launcher: /usr/bin/firefox
 URxvt.matcher.button: 1

To:

 URxvt.perl-ext-common :    default,matcher
 URxvt.url-launcher    :    /usr/bin/firefox
 URxvt.matcher.button  :    1

I'm new to using vim and would like to work on making my documents easily readable at the same time.

Thanks in advance.

Upvotes: 1

Views: 199

Answers (1)

toshi
toshi

Reputation: 566

there's "Align" plugin. you can align your text on :

:align :

:help Align

^ once the plugin installed

Upvotes: 3

Related Questions