Obsidian Source: Notes / Vim
Summary
Pending synthesis from local Obsidian source.
Original source title: Vim
Extracted Preview
(Key bindings + Commands) -> are the backbone
Basic
- vi/vim -name_of_file (if exists, opens it, otherwise creates it)
:qclose.:q!dismiss the changes and close.- i - insert mode. Esc -> mode change.
:wwrites.:wqwrite and quit.- i(before), a(after), o(below) all are insert mode keys, but are at different modes.
- Shift + i -> insert at beginning of line. Shift + a insert at end of line. Shift+o -> above the line
:set numberfor enabling line numbers.- h(left), j(down), k(up), l(right)
:set relativenumber~/.vimrcwrite all the configs.vis the visual mode, for selecting the stuff.- y is yanking(copying) p is pasting.
- d for deleting, dd for whole line deleting. c is same, just that it is in insert mode.
- r is for replace mode.
Integration Notes
- Source folder:
/home/yashs/Documents/Docs/Obsidian/Research-Notes - Local source:
/home/yashs/Documents/Docs/Obsidian/Research-Notes/Notes/Vim.md - Raw copy:
raw/obsidian/research-notes/Notes/Vim.md