1"Indentation settings for using 4 spaces instead of tabs.2"Do not change 'tabstop' from its default value of 8 with this setup.3"set expandtab4"set shiftwidth=25"set softtabstop=267"Indentation settings for using hard tabs for indent. Display tabs as8"four characters wide.9set shiftwidth=...
filetype plugin indent on"Load plugins according to detected filetype.syntax on"Enable syntax highlighting.set autoindent"Indent according to previous line.set expandtab"Use spaces instead of tabs.set softtabstop =4"Tab key indents by 4 spaces.set shiftwidth =4">> indents by 4 spaces.set shiftr...
继承前一行的缩进方式,适用于多行注释 "=== 编码配置 set expandtab " Use spaces instead of tabs. set softtabstop =4 " Tab key indents by 4 spaces. set shiftwidth =4 " >> indents by 4 spaces. set shiftround " >> indents to next multiple of 'shiftwidth'. "=== Vim 编码设置 set enco...
(good performance config) set magic " For regular expressions turn magic on " set guioptions-=m" 禁止显示菜单和工具条 " set expandtab " Use spaces instead of tabs set smarttab " Be smart when using tabs ;) filetype plugin on " Enable filetype plugins syntax on filetype indent on set ...
" a tab is 2 spacesset softtabstop=2 " tab size when inserting/pastingset shiftwidth=2 " number of spaces to use for autoindentingset shiftround " use multiple of shiftwidth when indenting with '<' and '>'set smarttab " insert tabs on the start of a line according to shiftwidth, not...
" Use spaces instead of tabs set expandtab " Be smart when using tabs ;) set smarttab " 1 tab == 4 spaces set shiftwidth=4 set tabstop=4 " Linebreak on 500 characters set lbr set tw=500 set ai "Auto indent set si "Smart indent set wrap "Wrap lines """ " => Visual mode rel...
16” configure tabwidth and insert spaces instead of tabs 17settabstop=4” tab width is 4 spaces 18setshiftwidth=4” indent also with 4 spaces 19setexpandtab” expand tabs to spaces 20” wrap lines at 120 chars. 80 is somewaht antiquated with nowadays displays. ...
Enable smarttab (tabs as spaces) Smart backspace handling Syntax highlighting enabled Mouse and visual bell features disabled Enable fast tty redraw Window splitting defaults to below (instead of top) and right (instead of left) Unified backup, undo and vimfile directories (under /tmp/vim-$USER...
set shiftwidth=4 " use indents of 4 spaces set expandtab " tabs are spaces, not tabs set tabstop=4 " an indentation every four columns set softtabstop=4 " let backspace delete indent "set matchpairs+=<:> " match, to be used with % ...
This is a sample vimrc created in discussion with the ops and regulars of the #vim community. When starting to use Vim, either this sample or another "minimal" vimrc should be copied as a starting-point to create a vimrc. Also see the example distributed