Vim: Difference between revisions
From wikinotes
Line 112: | Line 112: | ||
=== Buffers === | === Buffers === | ||
Buffers are any text that vim stores. It is typically associated with a file | Buffers are any text that vim stores. It is typically associated with a file | ||
=== Macros === | === Macros === |
Revision as of 18:14, 17 July 2021
A fast, customizable, cross platform mode based text editor that usually runs in a console.
Vim is uniqe in that it is modal:
- text is written in insert mode
- navigation is performed in normal mode
- selections made in visual mode
- commands entered in command mode
Each has it's own keybindings.
Documentation
home https://www.vim.org/ :help
https://vimhelp.org/
Locations
Unix ~/.vimrc
user config ~/.vim
user libraries, syntax, help, plugins, ... ${PREFIX}/share/vim/vim82
official config ${PREFIX}/share/vim/vimfiles
distro config Windows %HOMEDRIVE%%HOMEPATH%/_vimrc
user config %HOMEDRIVE%%HOMEPATH%/vimfiles
user libraries, syntax, help, plugins, ...
Basics
vim intro vim install
Usage
vim cli vim diff
Configuration
viml vim options vim autocmd vim keybindings vim plugins
Components
vim commands vim folding vim buffers vim registers vim macros vim ctags
Behaviour
Buffers
Buffers are any text that vim stores. It is typically associated with a file
Macros
q<letter> # start recording macro bound to <letter> q # stop recording @<letter> # play-back recording