Coder Social home page Coder Social logo

Comments (7)

Ron89 avatar Ron89 commented on June 3, 2024

Currently recognizing the word is using expand(<cword>), and to replace the word under cursor, I am using normal wbcw.[user chosen candidate]. It works fine in my configuration. Could you share with me how it messed up with your configuration? Also, do you have a better solution for word replacing?

from thesaurus_query.vim.

unphased avatar unphased commented on June 3, 2024

Thanks for responding!!

Incidentally I just took a quick dive in the source and yes the offending code is the normal wbcw part.

My b is bound to page up (i use it in conjunction with the spacebar). Replacing with normal! does the job to make it work properly.

from thesaurus_query.vim.

unphased avatar unphased commented on June 3, 2024

Would you like a pull request?

from thesaurus_query.vim.

Ron89 avatar Ron89 commented on June 3, 2024

Do you think ciw is a better idea? Yes, that'll be nice.

from thesaurus_query.vim.

unphased avatar unphased commented on June 3, 2024

i use ciw a lot when I use vim. and naturally I don't use b (I have mapped it to <BS>, haha) but either way it's pretty obvious what it's doing... I think making the change be a single character (adding !) is the way to go here

from thesaurus_query.vim.

Ron89 avatar Ron89 commented on June 3, 2024

Oh, I see, or I can use ! to bypass the mappings. Sorry for the inconvenience caused.

from thesaurus_query.vim.

unphased avatar unphased commented on June 3, 2024

Yes I would say either of normal! wbcw or normal! ciw would be great but anyways ive made the PR

from thesaurus_query.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.