Wednesday, December 9, 2015

Re: test wrapping for coders

On Thu, Dec 10, 2015 at 1:13 AM, <gaston.it.85@gmail.com> 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.
>
:scriptnames, like any word that, when preceded by a colon, has a
meaning to Vim, is an ex-command, see ":help cmdline.txt". And yes,
:help is itself an ex-command, see ":help :help".

The :scriptnames ex-command makes Vim display all scripts which have
been sourced in the present Vim session, in the order in which they
were sourced. If you have a vimrc (which is the general case) it will
be mentioned near the top of the list. If you have a "system vimrc"
which may have been added without your knowledge by a system
administrator or a Linux distribution, it will appear even before your
own vimrc. See ":help :scriptnames" for details.

What I suggest? Have a look inside that surround.vim plugin ( with
:view ~/.vim/bundle/vim-surround/plugin/surround.vim ) and check if it
defines any mappings (by means of one or more of the ex-commands
listed in the first two sections of ":help :map-commands"). This might
tell you which keys to press to get you effect you desire. If they
don't work, use ":scriptnames" to see if Vim found and sourced your
sourround.vim script, and if it did, use both ":map" and ":map!" with
no arguments, to see if the mappings were actually defined.


Best regards,
Tony.

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