-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the Znvim wiki!
:luafile % (reload file without exit)
b (move previous word) w (move next word) Ctrl + o (jump to old cursor) Ctrl + i (jump to previous cursor) `` (jump to next/previous cursor)
x (delete the current character) s (delete and insert mode) dw (delete the current word) dd (delete the current line) 5dd (delete five lines) d$ (delete to the end of line) d0 (delete to the beginning of line) diw (delete by word right) dib (same as diw but in left) ciw/cib (remove then insert mode) dit (delete word by tag) di" (delete word inside "") di( (delete word inside ()) Shift+D (remove rest of cursor line)
o (break line then insert mode) O (up line then inserts mode)
Shift+A (insert mode in end of line) Shift+I (insert mode in start of line) a (insert mode in right) i (insert mode in left)
u (undo) Ctrl + r (redo)
yy (copy entire line) 3yy (copy 3 line) p (paste the text after the cursor) u (change the market text to lowercase) U (change the market text to uppercase) Shift+V (select 1 line) ctrl + > (add tab to right) gv (reselect previous select)
ctrl+v - select specific word x - remove selected word ctrl+v - select again shift+i - then type a new word Esc - to save save and apply
:s/search/replace (one word will be replace) :s/search/replace/g (replace word in one line) :%s/search/replace (replace entire file)
:bn (move to the next buffer) :bp (go back to previous buffer) :bd (close buffer) :b# (move to the specified buffer (by number)) :ls (list all open buffers) :b file_name (move to a buffer (by name))
:Lex (open tree file) :vertical resize 30 (resize width tree file to 30%) gh (hidden dotfiles)
ctrl + w (hjkl) (move left, right, left, right) ctrl + w + c (close split screen)