On Mon, Oct 5, 2009 at 6: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. >
Try this if you want the cursor to be in the new window: "<C-W>s100<C-W>-" or this if you want the cursor to remain in the old window: "<C-W>s<C-W>p<C-W>_". Just map either to the key sequence you want. nnoremap <F2> <C-W>s<C-W>p<C-W>_ -- HTH, Hari > -- > . > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
