On Oct 5, 8:30 am, Paul <[email protected]> wrote:
> Is it possible, in a :split window (horizontal or vertical), to tell vim,
> "move
> the join line to the cursor position"? For example, split a buffer
> horizontally, put the cursor somewhere in the middle of the top buffer, and
> have the split point move up to the cursor, so the upper window is smaller and
> the lower larger. Like dragging the join line to the cursor with the mouse,
> but
> instantly and in a command.
If I've understood correctly what you're trying to do, it could be
accomplished with something like this...
nnoremap <F8> :exe "resize " . (line('.') - line('w0') + 1)<CR>\|zb
Brett Stahlman
>
> --
> .
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---