Comments (11)
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.
Getting the exact same problem with PHP files
from nerdtree.
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.
I get the same issues when opening a php file for the first time on load
from nerdtree.
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.
same problem with php...
from nerdtree.
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.
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.
@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.
Yes good point. We can reopen this if it is reported again.
from nerdtree.
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)
- Command to Find current file in tree with VCS root HOT 8
- Can't find how to actually select the dropped-down result
- `(m)ove the current node` shortcut doesn't treat filepaths as case sensitive HOT 10
- Unable to open file on newly opened tree after the default tree is closed HOT 4
- Adding change logs for few last merged PRs and create tags for them HOT 10
- How to set the padding width between arrow and the icon HOT 4
- Issue #1368 remote authentication required…. HOT 2
- What's the remap api for nerdtree menu? HOT 2
- Change license to something more standard HOT 3
- Customize key to open quick help menu HOT 3
- Error when loading a vim session: BufLeave NERD_tree_* autocommand: Variable b:NERDTree does not exist HOT 3
- E1208: -complete used without allowing arguments HOT 2
- BUG: NERDTree Hijacked Movement Keys HOT 6
- Installing NERDTree with Vim 9 on Windows 10 HOT 4
- Error detected while processing WinEnter Autocommands for "*"..function <SNR>38_HandleOnlyWindow[13]..<SNR>38_CloseWindow: HOT 1
- Add user choice to follow symlinks or keep them HOT 4
- Installation??? HOT 4
- highlight the current filename in the tree window after following a tag HOT 1
- NERDTree.TreeNotOpen thrown when opening Neovim into NERDTree HOT 4
- Error detected while processing BufEnter Autocommands for "*" with the "Close the tab if NERDTree is the only window remaining in it." config HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nerdtree.