Damien Gonot
Home Blog Notes About

Vim

Homepage / Notes / Computer Science / Tools / Text editors / Vim

My #1 text editor for now. Using Emacs way more these days.

Text movements

Basics

hjkl left/down/up/right

Horizontal

f [char] move to char t [char] move to character before char

F [char] move to char (backwards) T [char] move to character before char (backwards)

w next word b previous word e end of word

0 beginning of line $ end of line

Vertical

gg first line G last line

Insert mode

i enter insert mode where cursor is placed a enter insert mode after the next character

I enter insert mode at the beginning of the line A enter insert mode at the end of the line

o enter insert on a new line below current line O enter insert on a new line above current line

ESC exit insert mode

Changes

Copy

y yank (copy) p paste

Deletion

x delete a single char

d [verb] delete [verb] d w delete word

Undo/redo

u undo a change Ctrl + r redo a change

Visual

Visual mode

v [verb] select [verb]

Visual line mode

Shift + V select entire line

Visual block mode

Ctrl + V to start a column selection

Use I or A to add text at the beginning or the end of the line

Commands

:w save :q quit :q! quit without saving :wq quit and save

Plugins

Conjure

https://github.com/Olical/conjure Interactive evaluation for Neovim (Clojure, Fennel, Janet, Racket, Hy, MIT Scheme, Guile)

Conquer of Completion

https://github.com/neoclide/coc.nvim Never tried it, would probably not use it

NeoVim

NvChad

https://nvchad.com/

Enhance your neovim workflow Blazing fast neovim config providing solid defaults and beautiful UI

LazyVim

https://www.lazyvim.org/

LazyVim is a Neovim setup powered by 💤 lazy.nvim to make it easy to customize and extend your config.

Resources

Minimal Setup Explained

https://www.guckes.net/vim/setup.html https://news.ycombinator.com/item?id=30461996

Compare colorschemes

https://vimcolorschemes.com/

Learn Vim

https://github.com/iggredible/Learn-Vim