Cómo hacer NERDTree siempre abierto en el lado derecho?


NERDTreeToggle siempre hace que aparezca en el lado izquierdo. Me gustaría que apareciera a la derecha. Es posible hacer eso?

Author: htanata, 2011-02-25

3 answers

Añade esta línea a tu .vimrc:

let g:NERDTreeWinPos = "right"
 75
Author: htanata,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-02-25 10:57:27

Puedes cambiar la posición de la ventana en tu NERD_Tree.el archivo vim también. Normalmente me gusta mirar a través .archivos vim, aunque sólo sea para ayudar a mantener mi .archivo vimrc borrar.

Aquí está el código a cambiar:

call s:initVariable("g:NERDTreeWinPos", "left") "default
call s:initVariable("g:NERDTreeWinPos", "right")

El código debe estar en la línea número 90, si no, entonces he incluido el predeterminado para que pueda buscarlo.

También, aquí hay un enlace para obtener información sobre el NERD_Tree.archivo vim.

 0
Author: josh-fuggle,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-04-19 10:51:23

Abro NERDTree en la ventana derecha con esto.

$ vim ~/.vimrc
...

let NERDTreeWinPos=1
 0
Author: Chu-Siang Lai,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-09-16 02:42:19