On 2015-12-13, Christian Brabandt wrote:
> Hi gaston.it.85!
>
> On So, 13 Dez 2015, gaston wrote:
>
> > On Wednesday, December 9, 2015 at 6:53:30 PM UTC-6, Gary Johnson wrote:
> > > On 2015-12-09, gaston wrote:
> > > > I don't know what you mean by ':scriptnames'. I'm assuming that
> > > > would be a command run from within vim because it's comes right
> > > > after ':'. I pasted my ~/.vim file tree and it looks just like
> > > > what you said it should look like, the file
> > > > ~/.vim/bundle/vim-surround/plugin/surround.vim is there. What I
> > > > did was to google the use of surround.vim and after finding what
> > > > keys I needed to press while in regular mode I did so but nothing
> > > > happened, the word I was hovering over did not get surrounded with
> > > > double or single quotes. I don't remember the keys I pressed or
> > > > the site I got them from atm. What would you suggest I try? And
> > > > thanks.
> > >
> > > The problem seems to be that you have installed the surround.vim
> > > plugin, but Vim is not seeing it.
> > >
> > > The :scriptnames command will show you a list of the plugins that
> > > have actually been sourced by Vim since startup. You execute it as
> > > you would any other Vim ex command, that is, type the following:
> > >
> > > :scriptnames
> > >
> > > and press Enter. If Vim is actually sourcing that plugin, the list
> > > will include
> > >
> > > ~/.vim/bundle/vim-surround/plugin/surround.vim
> > >
> > > If that plugin _is_ in that list, then we will have to figure out
> > > why it doesn't respond you your keystrokes. However, I suspect that
> > > the plugin is _not_ in the list. If it is not, then execute this
> > > command,
> > >
> > > :verbose set rtp?
> > >
> > > and post the results here. That will show you the value of the
> > > 'rtp' or 'runtimepath' option. That is is the list of places that
> > > Vim searches for plugins. For Vim to find that plugin where you
> > > have installed it, 'rtp' must include the directory
> > >
> > > ~/.vim/bundle/vim-surround
> > >
> > > If it does not, then you have not installed or configured the Bundle
> > > or Vundle or whatever plugin manager correctly.
> > >
> > >
> > > We will get this figured out. The more information you can provide,
> > > the fewer guesses we will have to make and the faster we can get
> > > this working.
> > >
> > > Regards,
> > > Gary
> >
> > 1: /usr/share/vim/vimrc
> > 2: /usr/share/vim/vim74/debian.vim
> > 3: /usr/share/vim/vim74/syntax/syntax.vim
> > 4: /usr/share/vim/vim74/syntax/synload.vim
> > 5: /usr/share/vim/vim74/syntax/syncolor.vim
> > 6: /usr/share/vim/vim74/filetype.vim
> > 7: /usr/share/vim/vim74/ftplugin.vim
> > 8: /usr/share/vim/vim74/indent.vim
> > 9: ~/.vimrc
> > 10: /usr/share/vim/vim74/syntax/nosyntax.vim
> > 11: /usr/share/vim/vim74/plugin/getscriptPlugin.vim
> > 12: /usr/share/vim/vim74/plugin/gzip.vim
> > 13: /usr/share/vim/vim74/plugin/matchparen.vim
> > 14: /usr/share/vim/vim74/plugin/netrwPlugin.vim
> > 15: /usr/share/vim/vim74/plugin/rrhelper.vim
> > 16: /usr/share/vim/vim74/plugin/spellfile.vim
> > 17: /usr/share/vim/vim74/plugin/tarPlugin.vim
> > 18: /usr/share/vim/vim74/plugin/tohtml.vim
> > 19: /usr/share/vim/vim74/plugin/vimballPlugin.vim
> > 20: /usr/share/vim/vim74/plugin/zipPlugin.vim
> > Press ENTER or type command to continue
> >
> > And then
> > runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim74,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after
> > Last set from /usr/share/vim/vim74/debian.vim
> >
> > I see ~/.vim but not ~/.vim/bundle/ it bundle automatically
> > included becasse it's a sub directory of ~/.vim/ ?
>
> I guess you need a plugin manager like vundle, neobundle or plug or
> runtime path manager like pathogen for managing your runtime path.
Right. It looks like the reason that you (Gaston) installed the
surround plugin in ~/.vim/bundle is that you were following the
installation instructions on the plugin's github page. Those
instructions recommend using pathogen.vim.
~/.vim/bundle is not automatically included in 'runtimepath' and Vim
does not automatically search it because it is a subdirectory of
~/.vim. Vim automatically searches some subdirectories of ~/.vim,
but not ~/.vim/bundle. Vim searches ~/.vim/bundle only because the
pathogen plugin tells it to. You will need to install and configure
the pathogen plugin for Vim to find any plugin installed under
~/.vim/bundle.
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment