Skip to content

Instantly share code, notes, and snippets.

@DogLooksGood
Created December 5, 2021 21:04
Show Gist options
  • Save DogLooksGood/559e796b8fd913771e083d969b620e70 to your computer and use it in GitHub Desktop.
Save DogLooksGood/559e796b8fd913771e083d969b620e70 to your computer and use it in GitHub Desktop.
from-vim-to-meow.org

From Vim Keybindings

A lot beginners asked about the equivalents to the common operations in Vim keybinding. Following is a list of comparison.

(Recommended qwerty keybinding is used here for simplify tables, every keybindings are customizable. We also use short name for commands.)

toggle insert state

operationcount VimVimMeowcount MeowMeow commands
insert before char1ii1insert
append after char1ali/a2right insert/append
open above2OI2open-above
open below1oA2open-below
change1cc1change

lines

operationcount VimVimMeowcount MeowMeow commands
select current line2Vx1line
cut current line2ddxs2line kill
copy current line2yyxy2line save
cut 5 line below3d5jx4s3line expand-4 kill
cut 5 line above3d5k-5xs4-5 line kill
go to line beginning10x;2line reverse
go to line end2$x1line
insert at line beginning2Ixi2line insert
insert at line end2Axa2line append

words

operationcount VimVimMeowcount MeowMeow commands
go to next word end1ee1next-word
go to current word start1bb1back-word
go to next word begin1web2next-word back-word
cut to word end2dees2next-word kill
cut current word3diwms2mark-word kill
insert at word begin2bimi2mark-word insert
insert at word end2eama2mark-word append
next same word2*mn2mark-word search
previous same word2#m;n3mark-word reverse search

parentheses pairs

operationcount VimVimMeowcount MeowMeow commands
jump over matched pair2%o1block
backward jump over matched pair2%-o2- block
select next matched pair3v%o1block
cut inner of round pair3dib~,r~2inner r(for round)
cut whole round pair3dab.r2bounds r(for round)
@krdzo
Copy link

krdzo commented Dec 6, 2021

Hi. If you using the qwerty keybinding then the commands m* (mark-word *) are incorrect because meow-mark-word is bound to w in qwerty and not to m. Also I would link to KEYBINDING_QWERTY.org somewhere in this file.

For vim I command the equivalent in meow is meow-join meow-append because vims I command goes to back-to-indentation where meow-line meow-insert goes to the beginning-of-line.

@DogLooksGood
Copy link
Author

@krdzo I got it, I will correct before post it. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment