On Wednesday, March 28, 2012 5:16:01 AM UTC-5, (unknown) wrote: > <span style="font-family:Verdana"><span style="font-size:12px">I often find > myself with this kind of problem. I would like to go from this > > > > main :: IO () > > main = first line of something -- cursors is somewhere here > > second line of something > > > > to this > > > > main :: IO () > > main = second line of something > > > > Generally speaking, i move through "first line of something" with > 'w' and 'b', press 'D' and then 'x'... but > the latter part is not working as I expect (i.e. bringing 'up' the > second line). > > > > I looked in the manual on how to modify x behaviour, but I wondered if there > is another (more simple or more 'correct') solution > > > > Thanks in advance > > > > -F > > </span></span>
You probably want the "join" command. Just press J after deleting what you don't want. gJ will do the same thing but won't remove any whitespace. From command-line mode, :join and :join! are the equivalents. -- 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
