From: Max Dyckhoff <[EMAIL PROTECTED]>
Subject: RE: Two """problems"""
Date: Wed, 13 Sep 2006 20:30:15 -0700
Hi Max,
thanks a lot for your help ! :)
(sorry for the late reply...)
I am maintaining a source code from someone else
(which left the company) and some of the
lines of code are looooooooooooooooooooong.
While reviewing the code I find myself often doing
i<C-j><Esc> and was curious whether someone of the
vim-profeesionels would do this shorter and more
elegant.
Thanks a lot again!
mcc
> 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