2011-04-27 10 views
7

Estoy usando gvim en windows. Por defecto, nerdtree carga C: \ drive como predeterminado.Me gusta cambiarlo a E: \ unidad.¿Cómo lograr esto?NERDTree Cargar directorio particular automáticamente

Siempre que intento iniciar NERDTree usando: comando NERDTree, me sale este error E492: Not an editor command: NERDTree

Respuesta

14

tengo el siguiente código en mi archivo vimrc

cd ~/documents 
map <F2> :NERDTreeToggle<CR> 
" open Nerd Tree in folder of file in active buffer 
map <Leader>nt :NERDTree %:p:h<CR> 

El comando cd no es NerdTree específica. Simplemente cambia el directorio de trabajo cuando Vim comienza a algo que para mí es sensato.

3

Desde el archivo de ayuda NERDTree: :NERDTree [<start-directory> | <bookmark>] *:NERDTree* Opens a fresh NERD tree. The root of the tree depends on the argument given. There are 3 cases: If no argument is given, the current directory will be used. If a directory is given, that will be used. If a bookmark name is given, the corresponding directory will be used. For example: > :NERDTree /home/marty/vim7/src :NERDTree foo (foo is the name of a bookmark)

Cuestiones relacionadas