vim

Vim

自带教程 终端输入 vimtutor

两种模式状态

  1. 命令模式
  2. 编辑模式

命令模式下的操作

命令

快捷键

剪切板

编辑模式

文字编辑器

配置

.vimrc vim配置文件 .vim/colors/solarized.vim

syntax enable
set background=dark
colorscheme solarized

" Indentation & Tabs

set autoindent

set smartindent

set tabstop=4

set shiftwidth=4

set expandtab

set smarttab

" Display & format

set number

set textwidth=80

set wrapmargin=2

set showmatch

" Search

set hlsearch

set incsearch

set ignorecase

set smartcase

" Browse & Scroll

set scrolloff=5

set laststatus=2

" Spell

set spell spelllang=en_us

" Miscellaneous

set nobackup

set noswapfile

set autochdir

set noundofile

set visualbell

set errorbells