Code Monkey home page Code Monkey logo

Comments (11)

scrooloose avatar scrooloose commented on May 22, 2024

hmm, i havent been able to reproduce this. Which version of vim are you running? and do you have any extra plugins etc for fortran?

from nerdtree.

evert avatar evert commented on May 22, 2024

Getting the exact same problem with PHP files

from nerdtree.

DeMarko avatar DeMarko commented on May 22, 2024

I've run into the same error when editing PHP files, I haven't been able to reproduce it reliably but it does happen often.

from nerdtree.

cj avatar cj commented on May 22, 2024

I get the same issues when opening a php file for the first time on load

from nerdtree.

cj avatar cj commented on May 22, 2024

I also get that the first file I open (php) it's also setting "setlocal nowrap" but then I open another file and it doesn't use that; It uses the "set wrap" I have in my .vimrc

from nerdtree.

sbucek avatar sbucek commented on May 22, 2024

same problem with php...

from nerdtree.

unculture avatar unculture commented on May 22, 2024

I was having the same problem with .py files (when a python file opened, NERDTree would lose its color) so I had a wade through my .vimrc.

I had this line:
autocmd BufRead,BufNewFile *.py syntax on

(I picked it up from someone elses config.) I commented it and it fixed the issue.

from nerdtree.

scrooloose avatar scrooloose commented on May 22, 2024

Nice unculture, that makes sense. According to :help syntax-on, :syntax on sources $VIMRUNTIME/syntax/syntax.vim which removes all syntax rules (including that of nerdtree/taglist/bufexplorer/etc) and then sets up the rules again.

To see what i mean, try :syntax in a nerdtree buffer, then go :syntax on, then look at :syntax again.

The syntax rules for explorer plugins like nerdtree are usually set up in a function in the plugin script itself which vim doesnt know anything about - so it re-setup the rules when :syntax on is called.

from nerdtree.

PhilRunninger avatar PhilRunninger commented on May 22, 2024

@scrooloose , your instructions on Feb 7, 2011 don't show any change in the syntax. Has vim behavior changed, or is there something now in NERDTree to reestablish its syntax highlighting? I think we can close this one.

from nerdtree.

scrooloose avatar scrooloose commented on May 22, 2024

Yes good point. We can reopen this if it is reported again.

from nerdtree.

mishaszu avatar mishaszu commented on May 22, 2024

I have the same issue with JavaScript files on MacOS (10.12.6), vim version 8.0.666, no problem on Ubuntu. Syntax coloring works just fine when I open files via vim, but files are completely white if I open them with NERDTree. :set syntax=js doesn't work on files opened with NERDTree.

from nerdtree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.