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                 ===
" ==================================================================
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值