Comments (3)
Any ideas how to persuade vim to do this? Is vimscript expressive enough? As you can probably tell from the interactive bits of vim mode, my knowledge of vimscript is very limited.
On 29 Dec 2014, at 15:50, Melvar Chen [email protected] wrote:
idris-vim makes use of vim’s concept of a word when determining identifiers to send to idris. This does not by default include ', so, for example, when one has something like
foldl' : (b -> a -> b) -> b -> List' a -> b
and uses \d, this jumps to the beginning of the line, searches for the :, then goes back with b. This places the cursor on the ' of foldl', as for purposes of movement the non-blank non-wordchar sequence ' counts as a word. Then, a word is taken with expand(""). Since the cursor is not on a word character, this takes the next following word, namely b, which is then used in the idris client command.
The desired behavior is for it to use the identifier foldl' instead.
—
Reply to this email directly or view it on GitHub.
from idris-vim.
I noticed this breaking on foo' : Nat
, where \d
added Nat = ?Nat_rhs
with the Nat
indented to align with the Nat
in the line above.
v:beval_text reports the word as foo
when I point at it with my mouse in gvim.
from idris-vim.
This should work now.
from idris-vim.
Related Issues (20)
- Expose functions as commands instead of only leader keybindings
- Doc comments are not formatted correctly HOT 1
- syntax "idrisIdentifier" is never matched outside "idrisTypeDecl"
- String literal not processed correctly
- Retrieving type of holes is broken HOT 1
- strip ? from hole name before passing it to idris? HOT 2
- Wrong highlighting
- Redundant parentheses in case split
- What about lifting/extracting holes? HOT 1
- Unable to connect to a running Idris repl HOT 2
- Unable to connect to a running idris repl HOT 4
- Syntastic is not enabled HOT 2
- Undo not working with idris response window HOT 1
- Is there any way to evaluate an expression? HOT 1
- Mention default localleader in README
- TypeCheck Failure Printout is unexpected
- Documentation issue with <LeaderKey> instead of "\" HOT 1
- Toward Idris2 support on Vim, could use advice and help HOT 1
- Module needs reloading on any command HOT 1
- Unable to connect to a running Idris repl HOT 2
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 idris-vim.