Suppressing function already exist warnings ?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Suppressing function already exist warnings ?

Aaron Lewis
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
        I've defined couples of functions inside ~/.vimrc , everytime i modify
it , and command source ~/.vimrc will complains about duplicate functions.
       
        How could i suppress such kind of warnings , and i need to replace
functions that already exists.

        Many Thanks !

- --
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx3f2YACgkQvf41sEptMqDndQCeKFf6SjRSCsJ86E308Xz/WkYf
S0sAoIRbaotDtrmJhQQiIf6Qc3mN2ETX
=v3L3
-----END PGP SIGNATURE-----

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: Suppressing function already exist warnings ?

Nikolay Aleksandrovich Pavlov
Ответ на сообщение «Suppressing function already exist warnings ?»,
присланное в 13:03:34 27 августа 2010, Пятница,
отправитель Aaron Lewis:

You could add bang (`!') just after ``function'' command, so the functions will
get redefined if they already exist, see ``:h E122''.

Текст сообщения:
> Hi,
> I've defined couples of functions inside ~/.vimrc , everytime i modify
> it , and command source ~/.vimrc will complains about duplicate functions.
>
> How could i suppress such kind of warnings , and i need to replace
> functions that already exists.
>
> Many Thanks !

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

[SOLVE] Re: Suppressing function already exist warnings ?

Aaron Lewis
On 2010年8月27日 星期五 17:49:54,ZyX Wrote:
> Ответ на сообщение «Suppressing function already exist warnings ?»,
> присланное в 13:03:34 27 августа 2010, Пятница,
> отправитель Aaron Lewis:
>
> You could add bang (`!') just after ``function'' command, so the functions
> will get redefined if they already exist, see ``:h E122''.
>

Works fine , thanks  Ответ !

--
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode

signature.asc (205 bytes) Download Attachment