[prev in list] [next in list] [prev in thread] [next in thread]
List: vim
Subject: Re: Expanding statement
From: Luc Hermitte <hermitte () free ! fr>
Date: 2004-07-30 12:59:51
Message-ID: 20040730125951.GA816 () Orlyn
[Download RAW message or body]
Hello,
* On Fri, Jul 30, 2004 at 04:15:09PM +0700, Akbar <melinda_sayang@hotpop.com> wrote:
> Yeah, I am try to work with your plugin. But I got problem:
> [...] I type public, I expected this:
> class BlaBla : public BlaBlaBla
> {
> public:
> BlaBla() { }
> }
>
> But your plugin make it like this:
> class BlaBla : public BlaBlaBla
> {
> public:
>
> }
>
> Any workaround?
This is tuned with the 'cinoptions' option.
:h 'cinoptions'
:h cinoptions-values
If you don't want to make the change into my ftplugins (which I think is
preferable), define a C++ ftplugin that will look like
:::$HOME/.vim/ftplugin/cpp/cpp_mysettings.vim:::
if exists('b:loaded_my_cpp_settings')
finish
endif
let b:loaded_my_cpp_settings = 1
setlocal cinoptions=...
HTH,
--
Luc Hermitte
http://hermitte.free.fr/vim/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic