Tuesday, August 18, 2009

Re: weird plug in problem

Hi nicolas

The nerd commenter uses the &commentstring setting to determine which
delimiters are used for python. &cms was being set in $VIMRUNTIME/
ftplugin/python.vim, but since python_editing.vim does a "let
did_ftplugin=1", python.vim bails without setting &cms.

Since python_editing.vim is really overriding the default folding
settings, id put it in ~/.vim/after/ftplugin and change the variable
name from did_ftplugin to loaded_python_editing (or anything unique).
That way both scripts get loaded, but python_editing.vim gets loaded
last so its settings override the standard python ftplugin settings.

hth :)

marty

On Aug 19, 8:06 am, Nicolas Aggelidis <n.aggeli...@gmail.com> wrote:
> hi vimmers,
>
> i have nerd commenter plug in installed. Today i tried installing
> Efficient python folding. After installing the folding plugin nerd
> stopped functioning correctly.
>
> Instead of commenting with
>
> #.....
>
> it did
>
> /* ... */
>
> any other python programmers with the same problem? anyway to solve this?
>
> here are the links
>
> The NERD Commenter : A plugin that allows for easy commenting of code
> for many filetypes.http://www.vim.org/scripts/script.php?script_id=1218
>
> Efficient python folding : Fold python code nicely and toggle with one
> keystrokehttp://www.vim.org/scripts/script.php?script_id=1494
>
> thanks for your help,
> nicolas
>
> PS: i cc the plugin authors..
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments: