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 &quot;first line of something&quot; with 
> &#39;w&#39; and &#39;b&#39;, press &#39;D&#39; and then &#39;x&#39;... but 
> the latter part is not working as I expect (i.e. bringing &#39;up&#39; 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 &#39;correct&#39;) 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

Reply via email to