I can't offer anything else immediately (I have a load of mappings and functions but they are all pretty tailored to my needs!), but I was interested why you would want to split a line in two like that. Can you give us an example?
I'm not criticising, I'm just nosy :) Max FWIW: the most recent addition to my .vimrc is this, for after 14 hours of coding when my eyesight starts to fail me. Simple, but it has saved my eyes! :let g:maxd_FontSize=10 :let g:maxd_FontOpts="b" :let g:maxd_Font="consolas" :map <C-S-kPlus> :call ChangeFontSize("up")<CR> :map <C-S-kMinus> :call ChangeFontSize("down")<CR> :map <C-S-kMultiply> :call ChangeFontSize("")<CR> function! ChangeFontSize(updown) if (a:updown=="up") let g:maxd_FontSize= g:maxd_FontSize + 1 elseif (a:updown=="down") let g:maxd_FontSize= g:maxd_FontSize - 1 endif exec "set guifont=".g:maxd_Font.":h".g:maxd_FontSize.":".g:maxd_FontOpts endfunction > -----Original Message----- > From: Meino Christian Cramer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 13, 2006 8:23 PM > To: vim@vim.org > Subject: Re: Two """problems""" > > From: Peter Hodge <[EMAIL PROTECTED]> > Subject: Re: Two """problems""" > Date: Thu, 14 Sep 2006 13:10:43 +1000 (EST) > > > Hello, > > > > --- Meino Christian Cramer <[EMAIL PROTECTED]> wrote: > > > > > > 1.) Splitting line into two from normal mode. > > > My current "concept" (hu...great word...;) to split a line into > > > two is (starting and ending in normal mode, which is wanted): > > > > > > i Ctrl-j <esc> > > > > > > Are there any shorter ways to split a line, may be without the > > > detour around insert mode ? > > > > > > I found the following mapping helpful: > > > > nmap <TAB> i#<ESC>r > > > > Basically that lets you hit <TAB> in normal mode and insert a single > character. > > With that mapping in place, you could use <TAB><ENTER> to insert a > linebreak > > quickly. > > > > regards, > > Peter > > > > Oh, real nice! Very handy! It solves another """problem""" on-the-fly > even before I can post it. Do you have more of these multi-solver tips > for me, Peter ??? :))) > > Thanks a lot! :O) > mcc > >