Comments (4)
Thanks for reporting, but I believe this is working as intended. Coqtail uses Vim's autoload
and ftplugin
features to avoid registering commands, mappings, functions, etc. for non-Coq files. Whether a buffer is considered to be a Coq file is determined by its filetype
. This is set automatically for paths that end in .v
, but nameless buffers have an empty filetype
by default.
You can set the filetype
manually with :setfiletype coq
. Or, if you want to treat nameless buffers as Coq by default, I think putting setfiletype FALLBACK coq
in your .vimrc
would work, although I haven't really tested that.
from coqtail.
Thank you for the answer. Okay, that makes sense. If I made a pull request which added a sentence about this behaviour to README.md
, do you think it would be merged? I would insert something like the following immediately under the section header "Usage":
Once Coqtail has been installed, its commands are available whenever you edit a Coq file (with the
.v
extension). Alternatively, you can run:setfiletype coq
when editing any buffer to tell Vim that you are writing Coq code, which will then make Coqtail's commands available.
from coqtail.
Sure, improvements to the documentation are appreciated. I might just edit the wording slightly before merging.
from coqtail.
Closed by #365.
from coqtail.
Related Issues (20)
- Set Firstorder Solver idtac. HOT 1
- Feature Request: option to omit proofs when scripting (auto-admit) HOT 1
- Breaking with after/syntax directory HOT 5
- [Syntax] Is there a lack of support for math symbol shortcuts? HOT 2
- Detach panels from neovim instance HOT 3
- Unexpected error when debugging Unicoq HOT 2
- Coqtail doesn't recognize the option `-arg "-w all"`
- Coqtail does not officially support your version of Coq (8.19.0) HOT 7
- Feature: better support for dune HOT 4
- :Coq Set Printing Width not persistent HOT 1
- Comments inside of strings are not highlighted correctly
- Error on some large operations HOT 4
- Wrong syntax highlight for `Structure` HOT 2
- :CoqJumpToEnd hangs neovim if Coqtail hasn't been fired yet. HOT 2
- `:CoqGotoDef` Broken for Local Definitions with No `.vo`
- race between coqtail#start and CoqToLine HOT 2
- feature: automatic CoqJumpToEnd after stepping? HOT 1
- After 8aadf87 ("Better dune support"), vim falls into a weird state after querying an identifier that ends with single quote
- Feature Request: Conceal Common Coq Symbols 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 coqtail.