Giter Club home page Giter Club logo

Comments (7)

Mishkun avatar Mishkun commented on May 29, 2024 1

@jwav Using nmap instead of nnoremap work for me just fine
full syntax is:

nmap <a-s> <Plug>(sneak-s)

from ideavim-sneak.

Mishkun avatar Mishkun commented on May 29, 2024

@jwav Hi! Thanks for raising this question. The correct way to remap is to use <Plug>(sneak-s) try it!

from ideavim-sneak.

jwav avatar jwav commented on May 29, 2024

Hi, thank you for answering ; what would the exact nnoremap syntax be ?

I've tried nnoremap <a-s> <Plug>(sneak-s) but as expected it just executes < + P + l...

I've also tried prefacing it with : : nnoremap <a-s> :<Plug>(sneak-s) , nnoremap <a-s> :<Plug>(sneak-s)<CR>, many variations to no avail. PyCharm displays the following error in the lower bar: VIM - Not an editor command: <Plug | <Plug>(sneak-s)

I use PyCharm Community 2020.3.2 on Windows 10, with IdeaVim 0.64 and IdeaVim-Sneak 1.1.1

from ideavim-sneak.

jwav avatar jwav commented on May 29, 2024

Holy mackerel, it worked 😄
I have no idea why it doesn't work with nnoremap, though.
Thanks a lot, Mishkun

from ideavim-sneak.

Mishkun avatar Mishkun commented on May 29, 2024

You are welcome!

from ideavim-sneak.

DamonBaker avatar DamonBaker commented on May 29, 2024

How did you manage to restore the s to its original behaviour? Normally I would just add unmap s to .ideavimrc. This works when I run :unmap s manually but I guess since the plugin is loaded after the defaults are set it ends up gets remapped.

from ideavim-sneak.

jwav avatar jwav commented on May 29, 2024

To restore 's' to its original VIM behaviour : :nmap s s

from ideavim-sneak.

Related Issues (19)

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.