Comments (3)
However, I was curious if ex_filetype still sources that file on purpose for backwards compatibility (in case the user has a filetype.vim file in her runtime path).
Yes, precisely.
And note that this help file is part of the Vim manual, which we only edit for factual, objective inaccuracies. This means that most of these improvements apply to Vim as well and should be made there first.
from neovim.
For Vim, really the only thing that's missing is a reference to the sourcing of ftdetect/* vimscript files. I'll consider making a proposal to them to include it. It could go into detail about how the scripts.vim uses shebang lines and other file contents to determine the filetype but it's not factually incorrect.
For NeoVim however, the logic for using the shebang line and other contents of the file to detect filetype is all built into filetype.lua rather than a scripts.vim file. It's a much cleaner design.
In Neovim, the scripts.vim and filetype.vim files are really only sourced for backwards compatibility. I'll write up some text that makes this more clear. I'll understand if you really want the manual to stay as close to the Vim reference manual as possible.
from neovim.
I'll understand if you really want the manual to stay as close to the Vim reference manual as possible.
That is the general idea, yes. (There are many, many, places in the manual that could be rewritten for Neovim, and we have refrained from doing so until now in order to be able to more easily include documentation improvements from Vim.)
from neovim.
Related Issues (20)
- inconsistent TSNode:range().end_row inclusiveness HOT 2
- LSP RPC fails to parse multiple header fields
- The results of virtcol2col in Nvim 0.10 and Nvim 0.9.5 are inconsistent HOT 7
- OSC 52 is enabled in tmux+nvim but does not work HOT 1
- Add LSP client flag to pull diagnostics on save HOT 1
- HTML treesitter make neovim crash. HOT 1
- cursorline, cursorcolumn, colorcolumn broken in new 0.10 colorscheme in Apple Terminal HOT 4
- nvim_buf_get_mark returns incorrect value of `'` mark HOT 3
- Angular template filetype detection HOT 2
- cursor not set properly when applying text edits from mapping
- CTRL-W waits for confirmation if remapped to a custom action. HOT 2
- File change history breaks when using neovim with rust-analyzer HOT 2
- Bug in `vim.api.keyset.hl_info` type definition
- Due to LuaJIT, Plugins aren't compatible with Lua 5.1 even if they don't require LuaJIT HOT 21
- [Treesitter] Detecting injected languages in headless Neovim instance fails HOT 2
- `'` mark gets restored automatically after nvim_buf_del_mark HOT 3
- "starts at certain column" alignment for virtual text
- nvim_buf_get_extmarks has wrong return value annotation HOT 3
- Autocommand `FileType` called twice for Treesitter query files HOT 1
- Syntax highlighting for plant uml HOT 1
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 neovim.