How does one rewrap text in a column in Vim? -


i have column-oriented text of form:

tr #  date        description                  programmer ----- ----------- ---------------------------  ----------- 12345 01-apr-2014 april fool's      joe sewell                   joke. not! 

now want widen description column , rewrap column only new width. let's say, sake of question, add spaces myself more this:

tr #  date        description                        programmer ----- ----------- ---------------------------------  ----------- 12345 01-apr-2014 april fool's            joe sewell                   joke. not! 

now comes bit need on. want perform visual block selection (ctrl-v or ctrl-q in gvim) on description column , perform ex command or mapping rewrap text selected width, producing:

tr #  date        description                        programmer ----- ----------- ---------------------------------  ----------- 12345 01-apr-2014 april fool's joke.      joe sewell                   not! 

i can deal subsequent lines having trailing spaces, if necessary. want none of rest of text on selected lines affected. (those familiar eve under openvms, equivalent block selecting chunk of text and, edt keypad, typing gold-8.) don't want indentation changed.

my formattowidth plugin provides <leader>gq command can achieve this: enter image description here


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -