Nerdtree textwidth in new windows

I am using macvim with a janus plugin that includes nerdtree.

The problem I am facing is that whenever I open the file using 'o' from the browser of the nerdtree file, for some reason it flushes the text width to 79 in the new buffer into which the file is opened.

I can override this back to 0 in a new buffer, and vim will behave correctly, but whenever I switch files, the text width is set to 79.

I have a text width equal to 0 in my .vimrc file and this is correctly displayed by other files opened in vim, the file browser tab in nerdtree and even the initial empty buffer that opens when I do "mvim dir". It is simple when I use 'o' to open the file that this vim variable gets reset.

Does anyone know how to solve this? I see the same behavior in gvim with the janus plugin.

+4
source share
1 answer

Maybe you open Python files?

Janus forces PEP8 to ft=python https://github.com/carlhuda/janus/blob/f09d7d383282074ea5477ce7f4f4e2141887a4a7/janus/vim/core/before/plugin/filetypes.vim#L38

Janus should use setlocal instead of set

+1
source

All Articles