Last active
December 12, 2015 00:38
-
-
Save JagoWang/4684740 to your computer and use it in GitHub Desktop.
Vim编辑器小技巧
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
1.在命令状态下,可以使用%进行括号匹配。(即在括号处按下"%",光标会跳转到与之匹配的括号) | |
2.冒号(:)后跟行号,回车到指定行 | |
配置文件在哪? | |
Windows配置文件是Vim安装目录下的vimrc文件 | |
Linux系统,并且是使用apt-get来默认安装的,配置文件是/usr/share/vim/vimrc | |
Mac OS X,配置文件是/usr/share/vim/vimrc文件 | |
Setting | |
" Color set | |
syntax on " Open syntax highlight | |
"syntax off " Off syntax highlight | |
syntax enable | |
" Search set | |
set hlsearch " Open search highlight | |
"set nohlsearch " Off search highlight | |
"set incsearch " Search when type | |
"set ignorecase " ignore up and low case | |
" UI | |
"set showmode " Open mode show | |
"set ruler " show focus | |
"set number " Show line number | |
"set nonu " Hide line number | |
" Assist edit set | |
"set autoindent " Auto ai | |
"set noautoindent " manual ai | |
"set smartindent "smart indent | |
"set autoread " Reload file when file was changing | |
set showmatch " Show symbol match | |
" tab set | |
set tabstop=4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Already backup.