Paul wrote:
> On Mon, 5 Oct 2009, Brett Stahlman wrote:
> 
>> nnoremap <F8> :exe "resize " . (line('.') - line('w0') + 1)<CR>\|zb
> 
> Yes, you have the idea. That works for horizontal split. Now, how about for 
> vertical split? I don't see a column() function...

If the start of the line is not visible before the map is executed, do 
you want the resized width be determined by the cursor column position, 
or by the distance between the first *visible* column and the cursor 
position?

Thanks,
Brett S.

> 
> Thanks!
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to