Vim/ko

Vim (Vi improved) is a text editor based on vi. It can be used from the command-line or as a standalone application with a graphical user interface.

Vim command-line
If X Window System support is not needed, install :

Vim GUI
To install Vim with both the ncurses-based interface as well as the graphical interface (for the X Window System - ), install :

There is also an experimental Qt interface called which can also be installed.

확장 기능
app-vim 분류 항목에는 여러가지 문법 정의, 플러그인, 다른 Vim 관련 기능이 있습니다.

Use emerge or eix to get an overview of available packages in the app-vim category:

Configuration
Vim can be configured on a per-user basis or through a system-wide configuration file.

The system wide settings are set in whereas the user-specific configuration is located inside the user's home directory at.

시작하기
Vim has a built-in tutorial which should require around 30 min to go through. Start it using the vimtutor command:

명령행에서 ex 또는 ed처럼 Vim 사용
It is possible to use Vim for one-liners — commands that can be used in scripts or on the command line to make changes in an unattended manner.

다음 명령에서는 파일의 각각의 줄 앞에  을 추가합니다:

What happens is that Vim interprets the passed on commands (through the  option). The first command is Vim's substitution command (which is very similar to sed's), the second one is Vim's instruction to save and exit the editor.

파일 인코딩 바꾸기
파일 인코딩을 UTF-8로 바꾸려면 다음 명령을(Vim 명령 모드에서) 사용하십시오:

앞에서 보여드린 요령처럼 마찬가지로 명령줄에서도 처리할 수 있습니다:

추가 참조

 * Vim Guide - Explains how to use Vim in greater detail.

외부 자료

 * Vim 문서 는 HTML, PDF, PS 형식의 설명서 (aka ":help" and Free VIM OPL Book), 자주 묻는 질문, 절차 설명, 따라하기 내용이 있습니다.
 * VIM Scripts/Plugins
 * Learning the vi and Vim Editors, 7th Edition O'Reilly  Print ISBN: 978-0-596-52983-3, Ebook ISBN: 978-0-596-15935-1