Skip to content

Instantly share code, notes, and snippets.

@JagoWang
Last active December 12, 2015 00:38
Show Gist options
  • Select an option

  • Save JagoWang/4684740 to your computer and use it in GitHub Desktop.

Select an option

Save JagoWang/4684740 to your computer and use it in GitHub Desktop.
Vim编辑器小技巧
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
@JagoWang

JagoWang commented Mar 9, 2013

Copy link
Copy Markdown
Author

Already backup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment