forked from wsdjeg/hello-vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request wsdjeg#8 from vim-china/intro
Add intro
- Loading branch information
Showing
2 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,54 @@ | ||
# hello-vim | ||
Vim 入门教程索引 | ||
# Vim 从入门到精通 | ||
> Vim from zero to hero | ||
本文链接:https://github.com/vim-china/hello-vim | ||
作者:wsdjeg & 贡献者 | ||
|
||
<!-- vim-markdown-toc GFM --> | ||
|
||
- [简介](#简介) | ||
- [什么是模式](#什么是模式) | ||
- [如何在模式之间切换](#如何在模式之间切换) | ||
- [基本概念](#基本概念) | ||
- [基本操作](#基本操作) | ||
|
||
<!-- vim-markdown-toc --> | ||
|
||
|
||
Vim 的教程相对比较零散,系统的教程比较少,我也阅读过不少教程,走过很 | ||
多弯路。借着 Vim-china 组织组建这一契机,整理下自己学习过的内容, | ||
分享给大家, | ||
|
||
## 简介 | ||
|
||
Vim 是一款开源的模式化文本编辑器,项目源码公开在 Github。Windows 用户 | ||
可以从此下载最新的每日构建版: [vim-win32-installer](https://github.com/vim/vim-win32-installer/releases)。 | ||
|
||
### 什么是模式 | ||
|
||
Vim 不同于其他编辑器的主要特点就是模式化。什么叫做模式化?可以理解为 | ||
编辑器的一种状态,不同的状态下对用户的输入采取不同的响应方式。比较常 | ||
见的模式有 Normal(普通模式),Insert(插入模式)和 Visual(可视模式)。 | ||
|
||
Vim 打开是默认的模式是 Normal 模式,在这一模式下,按键不能直接将字符 | ||
插入至文件,而是执行各种命令。比如 `h` 按键不是输入字符 h,而是将光标 | ||
向左移动一个字符位置。 | ||
|
||
插入模式,顾名思义,在这个模式下,按键的字符是直接插入的。 | ||
|
||
可视模式,这一模式有点类似于在普通编辑器里按住鼠标左键移动鼠标,即进行 | ||
选择。 | ||
|
||
### 如何在模式之间切换 | ||
|
||
## 基本概念 | ||
|
||
## 基本操作 | ||
|
||
Vim 的各种移动命令主要时在 Normal 模式下。最基本的移动命令是光标的上下 | ||
左右移动,当然,你可以使用方向键,但是我想更多的 Vim 用户比较喜欢使用 | ||
h、j、k、l 按键。 | ||
|
||
当然 Vim 还有其他常用的移动光标的按键: | ||
|
||
|