1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-11-07 21:51:15 +01:00
Files
wiki/wiki/linux/vim.md
2025-10-26 08:02:22 +01:00

1.0 KiB

VIM

VIM is a highly configurable text editor. There are various forks off it with the most popular being Neovim. This entry only addresses VIM but due to the similarities of the forks it still can be drawn on for them. Differences of forks to the original VIM will be addressed in specific entries for the forks.

Setup

The VIM program can be installed from source as described on the official website/. Alternatively many Linux package managers package VIM in the vim package.

Usage

This section addresses the usage of VIM.

Manage Folding

This section is based on a guide from Vim From Scratch. VIM can hide chunks of text which is called folding. The basic usage is as follows. zf marks a piece of text foldable and immediately folds. zo opens up a fold - so it unfolds it - and zc closes a fold - so it folds.