Skip to content
Kenichi Kamiya edited this page Aug 24, 2024 · 20 revisions

You should remember different keybindings and commands from vim

List mandatory here

  • i, a # Insert mode before/after. I and A are the line versions
  • / # Search mode. n and N focus to next and prev match
  • v # Select mode
  • x # Select current line. xx and 2x means same.
  • s # After selected, s matches multiple as find
  • w, e, b # Select and move around current words
  • g d # Goto Definition. Usable since enabling LSP
  • y, p # Copy(Yank) and Paste. Space y Space p will copy to clipboard
  • u # undo, and U means redo vice versa
  • d # Cut(Not only for Delete, override yanked) current selection. c will be insert mode after deletion
  • Ctrl+w # Window mode, v - vsplit, s - hsplit, q - close the window # Not "pane"
  • Ctrl+c # Comment-in/out toggle
  • C # Multiple cursors. Make 1 cursor again with ,
  • 3x Alt-s & # Align table in the selected 3 lines (& is the align, but require Alt-s for multi cursors)

Search

  • Space + f - fzf like filename picker
  • Space + / - ripgrep like global search

Bulk Edit

https://github.com/kachick/dotfiles/commit/c7121ac6526d0a3e7d637fad2628aa3cc98cb91a

Don't

Restrictions

Clone this wiki locally