Vim Plugin Issue

Discussion in 'Ruby' started by Ryan C., Apr 5, 2011.

  1. Ryan C.

    Ryan C. Guest

    Anyone here use Vim? I'm trying to get my first plugin, NERD_tree to
    work and can't seem to figure it out or find the solution anywhere
    online.

    I unzipped the .zip from Vim.org into ~/.vim and it created the doc,
    nerdtree_plugin, and plugin directories.

    Then I went into Vim and tried a ton of different commands to no avail.
    I get one of the two following examples:

    :NERD_tree
    E464: Ambiguous use of user-defined command

    :nerdtree (or any command other than the above)
    E492: Not an editor command: nerdtree

    I'm new to Vim and am not sure what steps to take to get past this. Any
    help is hugely appreciated.

    Thanks,
    Ryan

    --
    Posted via http://www.ruby-forum.com/.
    Ryan C., Apr 5, 2011
    #1
    1. Advertising

  2. On Tue, Apr 5, 2011 at 7:31 AM, Ryan C. <> wrote:
    > Anyone here use Vim? =A0I'm trying to get my first plugin, NERD_tree to
    > work and can't seem to figure it out or find the solution anywhere
    > online.


    I don't remember where I found this hint, I was advised to put the
    following line into my .vimrc:

    nmap <silent> <c-n> :NERDTreeToggle<CR>

    Control+N now opens a buffer of tree navigation goodness (replace c-n
    with what makes sense for you, obviously). Otherwise, you'll have to
    peruse the NERDtree documentation via

    :help NERD_tree.txt

    --=20
    Phillip Gawlowski

    Though the folk I have met,
    (Ah, how soon!) they forget
    When I've moved on to some other place,
    There may be one or two,
    When I've played and passed through,
    Who'll remember my song or my face.
    Phillip Gawlowski, Apr 5, 2011
    #2
    1. Advertising

  3. Ryan C.

    Marc Weber Guest

    Hi Ryan,

    <c-d> means ctrl-d

    1) there is a dedicated Vim mailinglist (-> vim.sf.net -> commmunity)

    2) most plugins ship with a doc/*.txt file which contains all
    information about its usage.
    In this case you want to read section 2.1 "Global Commands"

    3) learn how to use completion. Eg try Nerd<tab> or Nerd<c-d>
    The command you tried does not exist. The error message you got is
    confusing though.

    4) If you want to give many plugins a try use vim-addon-manager.
    Installing a plugin such as nerdtree can be done easily:

    :ActivateAddons The_NERD_tree
    Probably you'd like to use InstallAddon, review code, put name into
    your .vimrc.

    github.com/MarcWeber/vim-addon-manager. (last lines of doc/*.txt
    contains a script you can copy paste into your shell to install it)

    5) Start using tags. Look them up using :h tag<c-d> (in particular
    :tjump command)
    This is way faster than nerdtree for most cases.

    HTH
    Marc Weber
    Marc Weber, Apr 5, 2011
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tocer
    Replies:
    0
    Views:
    465
    tocer
    Aug 28, 2004
  2. Daniel Folkes

    New to Vim and Vim-Python

    Daniel Folkes, Oct 24, 2007, in forum: Python
    Replies:
    3
    Views:
    539
    projecktzero
    Oct 25, 2007
  3. Guoliang Cao

    vim 6.2 + vim-ruby don't work

    Guoliang Cao, Oct 16, 2003, in forum: Ruby
    Replies:
    1
    Views:
    156
    Brett H. Williams
    Oct 16, 2003
  4. Vincent Foley
    Replies:
    6
    Views:
    137
    Gavin Sinclair
    Apr 10, 2006
  5. lolveley
    Replies:
    3
    Views:
    207
Loading...

Share This Page