glts / vim-textobj-comment

Vim text objects for comments
http://www.vim.org/scripts/script.php?script_id=4570
131 stars 8 forks source link

Include python docstring support #8

Closed paulosmolski closed 3 years ago

paulosmolski commented 3 years ago

Hi, I'd like to say that I really like your plugin. However I've noticed that it doesn't have a proper python support - it doesn't detect python docstrings as comments. Could you please add this functionality?

glts commented 3 years ago

This plugin uses Vim’s comments and commentstring settings to recognise comments. In Python, only # is supported as a comment character.

:set commentstring?
  commentstring=# %s

I don’t want to add additional code for recognising strings, and so – unfortunately for you – have to close this issue.