heavenshell / vim-pydocstring

Generate Python docstring to your Python source code.
BSD 3-Clause "New" or "Revised" License
337 stars 53 forks source link

Pydocstring overrides C-L shortcut #135

Closed data-stepper closed 3 years ago

data-stepper commented 3 years ago

In my vimrc, I use the shortcut(s) C-[hjkl] to move between splits.

When I now started using pydocstring, it overrode the shortcut for switching to the right split (C-L). I know from the docs that I can change the default keymapping for pydocstring, but I can't make it unmap C-L.

I've tried using VimEnter to get around this without any luck so far :(

Maybe there is an easy solution to this, regards and thanks in advance for any help

heavenshell commented 3 years ago

@data-stepper Hi, Thank you for using my plugin.

Did you set following like below?

let g:pydocstring_enable_mapping = 0
data-stepper commented 3 years ago

Thanks it fixed my issue.

I didn't find this in the README, maybe an idea to add it as I think it's quite useful?

heavenshell commented 3 years ago

It's mentioned at doc.

https://github.com/heavenshell/vim-pydocstring/blob/master/doc/pydocstring.txt#L197-L205