Thanks Gary, Output of
:filetype filetype detection:ON plugin:OFF indent:OFF And, after touching the files, here is the output of :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: /home/pettis/.vim/plugin/dummy.vim 8: /usr/share/vim/vim64/plugin/explorer.vim 9: /usr/share/vim/vim64/plugin/gzip.vim 10: /usr/share/vim/vim64/plugin/netrw.vim 11: /usr/share/vim/vim64/plugin/rrhelper.vim 12: /usr/share/vim/vim64/plugin/tohtml.vim So one of the new locations showed up... Thanks again for your help, Matt On Thu, Aug 4, 2011 at 12:27 PM, Gary Johnson <[email protected]> wrote: > On 2011-08-04, Matthew Pettis wrote: > >> On Thu, Aug 4, 2011 at 11:00 AM, Gary Johnson 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? > >> Hi Gary, >> >> Thanks for the reply... not sure about the `foldmethod' question, but >> I don't think my script is being picked up: > > I looked at the script. It is already setting 'foldmethod', so you > don't need to worry about that. > >> :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... > > I'm not sure either. I see that syntax highlighting is enabled, but > do you have filetype plugins enabled? What is the result of this > command? > > :filetype > > It should look like this > > filetype detection:ON plugin:ON > > or this > > filetype detection:ON plugin:ON indent:ON > > As an experiment, you could create three empty files, > > touch /home/pettis/.vim/syntax/python.vim > touch /home/pettis/.vim/ftplugin/python.vim > touch /home/pettis/.vim/plugin/dummy.vim > > and verify that they all appear in the output of :scriptnames after > you open a Python file. > > 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
