Vim: Difference between revisions

From wikinotes
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
A fast, customizable, cross platform mode based text editor that usually runs in a console.
A fast, customizable, cross platform editor that generally runs in a console.


Vim is uniqe in that it is modal:
Vim is uniqe in that it is modal:
Line 54: Line 54:
|-
|-
| [[vim install]]
| [[vim install]]
|-
| [[vim troubleshooting]]
|-
|-
|}
|}
Line 65: Line 67:
|-
|-
| [[vim diff]]
| [[vim diff]]
|-
| [[vim printing]]
|-
|-
|}
|}
Line 73: Line 77:
{|
{|
|-
|-
| [[viml]]  
| [[viml]]
|-
|-
| [[vim options]]
| [[vim options]]
Line 82: Line 86:
|-
|-
| [[vim plugins]]
| [[vim plugins]]
|-
| [[vim indenting]]
|-
| [[vim after-directory]]
|-
|-
|}
|}
</blockquote><!-- Configuration -->
</blockquote><!-- Configuration -->


= Components =
= Features =
<blockquote>
<blockquote>
{|
{|
|-
| [[vim help]]
|-
|-
| [[vim commands]]
| [[vim commands]]
|-
|-
| [[vim folding]]
| [[vim folds]]
|-
| [[vim buffers]]
|-
|-
| [[vim registers]]
| [[vim registers]]
|-
|-
| [[vim macros]]
| [[vim macros]]
|-
| [[vim motions]]
|-
| [[vim cursor stacks]]
|-
|-
| [[vim ctags]]
| [[vim ctags]]
|-
| [[vim digraphs]]
|-
| [[vim profiling]]
|-
| [[vim shell]]
|-
|-
|}
|}
</blockquote><!-- Components -->
</blockquote><!-- Features -->
 
 
[[vim tips/tricks]]
 
= Behaviour =
<blockquote>
=== Macros ===
<source lang="vim">
q<letter>    # start recording macro bound to <letter>
q            # stop recording
 
@<letter>    # play-back recording
</source>
</blockquote><!--Behaviour-->

Latest revision as of 15:46, 10 February 2024

A fast, customizable, cross platform editor that generally 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
vim troubleshooting

Usage

vim cli
vim diff
vim printing

Configuration

viml
vim options
vim autocmd
vim keybindings
vim plugins
vim indenting
vim after-directory

Features

vim help
vim commands
vim folds
vim registers
vim macros
vim motions
vim cursor stacks
vim ctags
vim digraphs
vim profiling
vim shell