Giter Site home page Giter Site logo

Comments (3)

edwinb avatar edwinb commented on July 26, 2024

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.

LeifW avatar LeifW commented on July 26, 2024

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.

raichoo avatar raichoo commented on July 26, 2024

This should work now.

from idris-vim.

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.