Linux vimrc文件配置说明

Linux vimrc文件配置说明

" ==================================================================
" ===                START OF VIMRC CONFIGURATION                ===
" ==================================================================

" ### VIM User Interface Config ###
" Get out of VI's compatible mode
set nocompatible
" Disable warning sound when input incorrectly
" set noerrorbells visualbell t_vb=
" autocmd GUIEnter * set visualbell t_vb=
set noeb vb t_vb=
au GuiEnter * set t_vb=
" Show line number
set number
" No temporary file
set nobackup
set noswapfile
" Show the cursor position all the time
set ruler
" Display incomplete commands
set showcmd
set cmdheight=1
" Case releated
set smartcase
set ignorecase
" Searching releated
set hlsearch
set incsearch
set showmatch
" Keep 100 lines of command line history
set history=100
" Encoding releated
set enc=utf-8
set langmenu=ZH_CN.UTF-8
set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936
" TAB releated
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set cindent
set autoindent
set smartindent
" Set linespace and backspace
set linespace=0
set backspace=2
" set whichwrap+=<,>,h,l
" Set default size of window
set lines=40
set columns=200
" Set help doc
set helplang=cn
" Set keyword
" set iskeyword+=_,$,@,%,#,-
set iskeyword+=_,-
" Set laststatus
set laststatus=2
" Set report
set report=0
" Syntax highlight
syntax on
" Have the mouse enabled all the time
" set mouse=a
" set selection=exclusive
" set selectmode=mouse,key
" Set gui color
color desert
" Enhanced mode cmd auto complete
set wildmenu
" Save global var
set viminfo+=!
" Set cursorline and cursorcolumn
set bg=dark
set cursorline
set cursorcolumn
" highlight CursorLine   cterm=NONE ctermbg=black ctermfg=green guibg=NONE guifg=NONE
" highlight CursorColumn cterm=NONE ctermbg=black ctermfg=green guibg=NONE guifg=NONE
" Enable filetype plugin
filetype on
filetype plugin on
filetype indent on
" Misc settings
winpos 100 100
set nowrap
" set guitablabel=%t\ %M
set tabpagemax=20

" ==================================================================
" ===                 END OF VIMRC CONFIGURATION                 ===
" ==================================================================

你可能感兴趣的:(Linux,linux,vim)