On 11/10/2016 06:57 p.m., Jair Lopez wrote:
 > On 10/11/2016 12:27 PM, andalou wrote:
 >> I've tried to use the B command of the vis.vim plugin, as in:
 >> '<,'>B sort n
 >>
 >> but it doesn't work.
 >
 > This issue has already been addressed here
 > 
http://vi.stackexchange.com/questions/9869/sorting-a-column-without-altering-other-columns
 >
 >
 > Have you tried this?
 >
 > 1- In normal mode, put your cursor on the number 4 in the first line
 >
 > 2- Press `CTRL-v` (without backquotes) to take you to block-wise
 > visual mode
 >
 > 3- Press `7j` to move the cursor to the number 8 on line 8
 >
 > 4- Press `$` to select the entire column (see `:help v_$` for details)
 >
 > 5- Press `:B sort` as usual.
 >
Thanks Jair, it works. I didn't know about the step 4 and I always used
'set ve=all' to select visually the whole column.
-- 
Cesar
-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment