2012-02-27 19 views
12

Ho scaricato e installato manualmente NERDTree da http://www.vim.org/scripts/script.php?script_id=1658Vim - helptags non funziona per NERDtree

@hits ➜ .vim rvm:(-ruby-1.9.2) ls -laR 
.: 
total 28 
drwxr-xr-x 6 hitsu hitsu 4096 2012-02-16 15:21 . 
drwxr-xr-x 49 hitsu hitsu 4096 2012-02-27 17:43 .. 
drwxrwxr-x 2 hitsu hitsu 4096 2011-12-28 14:18 doc 
drwxrwxr-x 2 hitsu hitsu 4096 2011-12-28 14:17 nerdtree_plugin 
-rw-rw-r-- 1 hitsu hitsu 283 2012-02-07 11:05 .netrwhist 
drwxrwxr-x 2 hitsu hitsu 4096 2011-12-28 14:17 plugin 
drwxrwxr-x 2 hitsu hitsu 4096 2011-12-28 14:17 syntax 

./doc: 
total 60 
drwxrwxr-x 2 hitsu hitsu 4096 2011-12-28 14:18 . 
drwxr-xr-x 6 hitsu hitsu 4096 2012-02-16 15:21 .. 
-rw-rw-r-- 1 hitsu hitsu 52744 2011-12-28 14:17 NERD_tree.txt 

./nerdtree_plugin: 
total 20 
drwxrwxr-x 2 hitsu hitsu 4096 2011-12-28 14:17 . 
drwxr-xr-x 6 hitsu hitsu 4096 2012-02-16 15:21 .. 
-rw-rw-r-- 1 hitsu hitsu 1614 2011-12-28 14:17 exec_menuitem.vim 
-rw-rw-r-- 1 hitsu hitsu 8124 2011-12-28 14:17 fs_menu.vim 

./plugin: 
total 132 
drwxrwxr-x 2 hitsu hitsu 4096 2011-12-28 14:17 . 
drwxr-xr-x 6 hitsu hitsu 4096 2012-02-16 15:21 .. 
-rw-rw-r-- 1 hitsu hitsu 126233 2011-12-28 14:17 NERD_tree.vim 

./syntax: 
total 12 
drwxrwxr-x 2 hitsu hitsu 4096 2011-12-28 14:17 . 
drwxr-xr-x 6 hitsu hitsu 4096 2012-02-16 15:21 .. 
-rw-rw-r-- 1 hitsu hitsu 3741 2011-12-28 14:17 nerdtree.vim 

ho cercato di aprire il file di aiuto per NERDtree in vim. Tuttavia quando ho digitato :helptags ho ottenuto l'errore E471: Arugment required

Dopo che ho scritto :help NERD_tree.txt ma ho ottenuto l'errore E149: Sorry, can't find help for NERD_tree.txt

istruzioni della guida sono tratte da: http://www.vim.org/scripts/script.php?script_id=1658

So che posso NERD_tree appena aperto .txt in qualsiasi editor manualmente (ad esempio vim o Emacs), ma sto solo chiedendo per curiosità.

PS Sono un ragazzo noob. : P

risposta

18

È necessario fornire :helptags la directory in cui si trova il file della guida (che si desidera analizzare). Per esempio:

:helptags ~/.vim/doc 
+1

+1 Sei stato più veloce di me;) – lucapette

+0

@jcollado mi piacerebbe l'undelete, la punta su Vundle è preziosa ;-) – sidyll

1

Ho avuto lo stesso problema, e specificando la directory per :helptags non ha risolto il problema. Non ha restituito un errore, ma non ha funzionato anche su :help NERD_tree.txt. La soluzione che ha funzionato per me è stata l'installazione di pathogen.vim, che è raccomandata nello NERD Tree installation directions. Dopo averlo fatto, :help NERD_tree.txt ha funzionato.

+0

Vundle aiuterà anche. –

4

Ho avuto lo stesso problema e risolto con punte da another SO thread:

A quanto pare è necessario :Helptags piuttosto che :helptags

+1

Non so perché questa soluzione abbia -2 (-1 ora) perché ha risolto il problema per me ... –

+0

'Fornito con pathogen.vim è un: comando Helptags che esegue questo in ogni directory nel tuo 'runtimepath' . Se vuoi davvero diventare pazzo, potresti persino invocare Helptags nel tuo vimrc. Non mi piace impazzire. Pathogen, Github –

+0

Ho provato a correre: Helptags ma dice E492: Non un comando editor: Helptags. – ijt