Neovim: Learning Verb Modifier Objects ver. 2

Last Updated on July 31, 2022 by shibatau

III is added.

I. Verb Modifier Object

You can talk to Vim or Neovim in Verb Modifier Object sentences. Here are some of verbs, modifiers and objects.

Verbs:

v (visual), c (change), d (delete), y (yank/copy)

Modifiers:

i (inside), a (around), t (till..finds a character), f (find..like till except including the char), / (search..find a string/regex)

Objects:
w (word), s (sentence) p (paragraph) b (block/parentheses), t (tag, works for html/xml)

Refer to:

Learn to speak vim — verbs, nouns, and modifiers!

Tips You Wish You Knew While Learning Vim

II. Let’s speak to Vim or Neovim in sentences

delete the current word
diw

delete the current word and enter insert mode after

ciw

change current sentence
cis

change a string inside quotes
ci”

change until next occurrence of ‘foo’
c/foo

change everything from here to the letter X
ctX

visually select this paragraph
vap

III. Add ” ” to multiple words

Let’s add ” ” to multiple words using II and the small delete register (CTRL-r) and ..

To be continued.

About shibatau

I was born and grown up in Kyoto. I studied western philosophy at the University and specialized in analytic philosophy, especially Ludwig Wittgenstein at the postgraduate school. I'm interested in new technology, especially machine learning and have been learning R language for two years and began to learn Python last summer. Listening toParamore, Sia, Amazarashi and MIyuki Nakajima. Favorite movies I've recently seen: "FREEHELD". Favorite actors and actresses: Anthony Hopkins, Denzel Washington, Ellen Page, Meryl Streep, Mia Wasikowska and Robert DeNiro. Favorite books: Fyodor Mikhailovich Dostoyevsky, "The Karamazov Brothers", Shinran, "Lamentations of Divergences". Favorite phrase: Salvation by Faith. Twitter: @shibatau

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.