kdelibs coding style

Matthias Kretz kretz at kde.org
Mon Jul 24 10:37:48 BST 2006

On Monday 24 July 2006 09:52, Hasso Tepper wrote:
> The best solution I have found so far for vim is to use something like
> this in ~/.vimrc:
> if getcwd() =~ '/path/to/kdelibs/sources/'
>     set softtabstop=4
>     set shiftwidth=4
>     set expandtab
> endif

Hmm, if you then do a :split ../kdepim/foo/bar.cpp you'll get kdelibs indent 
applied to kdepim, right? (since the cwd didn't change).

I used expand( '%:p:h' ) =~ 'kdelibs' for SetCodingStyle in kde-devel-vim.vim.

Matthias Kretz (Germany)                            <><
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060724/336edf0e/attachment.sig>

More information about the kde-core-devel mailing list