vimrc配置

vimrc配置

set encoding=utf-8 
set termencoding=utf-8 
set fileencodings=ucs-bom,utf-8,gbk 
set ambiwidth=double
set fileformats=unix,dos,mac

" 自动缩进 
set smartindent 
set smarttab 
set cindent 
" tab设置 
set expandtab 
set tabstop=4 
set softtabstop=4 
set shiftwidth=4 
set textwidth=80

"  切换行号显示 
nnoremap  :set nonu!:set foldcolumn=0 
"  运行当前Python文件 
autocmd FileType python map   :!python % 
"  拷贝粘贴代码不破坏缩进 
set pastetoggle=

" 显示空白字符
set list 
set listchars=tab:»\ ,trail:-,extends:> " 高亮搜索命中的文本 
set hlsearch
" Allow backspacing over everything in insert mode 
set backspace=indent,eol,start

你可能感兴趣的:(vim)