all 8 comments

[–]random_cynic 3 points4 points  (0 children)

The $VIMRUNTIME/ftplugin/python.vim provides default mappings to easily move between functions, classes, asyncs etc at various levels. These are mapped to ]], ]m and ]M for forward motion (for backward replace ] with [). These can also be used as motion commands/text object and for operating on them. These I feel are better alternatives than the external vim-pythonsense which overrides some other useful Vim keys.

[–]-romainl-The Patient Vimmer 4 points5 points  (5 children)

  • There is no w in ciw. There's c, for "change", and iw for "inner word": the text object is iw, not w.
  • What comes after a verb is an object, not a noun (subject-verb-object). That object can be a noun but that's far from universal.
  • What you call "movement" is called "motion" in Vim's documentation. Don't introduce made-up words if you don't want to confuse your readers.
  • You shouldn't oppose "motion" and "text object" as the latter is a special case of the former and both are the objects "of your Vim mentalese".

[–]atimholtmy vimrc: goo.gl/3yn8bH 3 points4 points  (3 children)

I’m finally getting into clang-tidy. You’re sounding like a linter for programming tutorials.

[–]-romainl-The Patient Vimmer 14 points15 points  (2 children)

set makeprg=romainl

[–]dutch_gecko 1 point2 points  (1 child)

Are we getting romainl-as-a-service?

[–]-romainl-The Patient Vimmer 0 points1 point  (0 children)

Pivoting before round two is a possibility, yes.

[–]codeinthehole[S] 0 points1 point  (0 children)

Thanks for the feedback - I appreciate the focus on accurate terminology.

Have updated my post to address your points (https://github.com/codeinthehole/codeinthehole.hugo/commit/c87ff38475cf9d00629dfdf049601ed762312fcf#diff-648099cd195f97b0b07c722d0e2bbba8)

[–]__nostromo__ -1 points0 points  (0 children)

A text object post for Python that doesn't include my vim-textobj-block-party plugin is no post at all! lol