Thursday, August 4, 2011

Re: Python, folding, ftplugin directories

Hi Gary,

Thanks for the reply... not sure about the `foldmethod' question, but
I don't think my script is being picked up:

:scriptnames

1: /etc/vimrc
2: /home/pettis/.vimrc
3: /usr/share/vim/vim64/syntax/syntax.vim
4: /usr/share/vim/vim64/syntax/synload.vim
5: /usr/share/vim/vim64/syntax/syncolor.vim
6: /usr/share/vim/vim64/filetype.vim
7: /usr/share/vim/vim64/plugin/explorer.vim
8: /usr/share/vim/vim64/plugin/gzip.vim
9: /usr/share/vim/vim64/plugin/netrw.vim
10: /usr/share/vim/vim64/plugin/rrhelper.vim
11: /usr/share/vim/vim64/plugin/tohtml.vim
12: /usr/share/vim/vim64/syntax/python.vim

Not sure why script isn't being picked up, as .vim/ is in the runtimepath...

On Thu, Aug 4, 2011 at 11:00 AM, Gary Johnson <garyjohn@spocom.com> wrote:
> On 2011-08-03, Matthew Pettis wrote:
>> Hi,
>>
>> Basic Vim user here trying to expand my skill and local functionality...
>>
>> I'm editing python files, and want to enable folding.  Found the
>> script here to help me with that:
>> http://www.vim.org/scripts/script.php?script_id=1494
>>
>> I put this file at:
>> ~/.vim/ftplugin/python_editing.vim
>>
>> But I can't seem to use the functionality to make folding work (I
>> tried folding definitions with the 'F' key in normal mode, nothing
>> happened).
>>
>> Here is a dump of issuing the command:
>> :verbose set runtimepath?
>>
>> result is:
>> runtimepath=~/.vim,/usr/share/vim/current/vimfiles,/usr/share/vim/current,/usr/share/vim/current/vimfiles/after,~/.vim/after
>>
>> I think this is telling me it should be in a path that should pick up
>> the script, but it isn't... but I must not be right.  Any help
>> troubleshooting this would be appreciated.
>
> You can see if the script is being read by executing
>
>    :scriptnames
>
> Does 'foldmethod' have to be set to a particular value for the
> plugin to work?
>
> Regards,
> Gary
>
> --
> 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
>

--
Do not seek to follow in the footsteps of the wise men of old. Seek
what they sought.

- Matsuo Munefusa ("Basho")

--
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

No comments: