其他分享
首页 > 其他分享> > Vimrc 配置文件

Vimrc 配置文件

作者:互联网

配置信息

在linux当中保存在~/.vimrc, windows 存放在~/_vimrc 如果是 nvim 就放在 AppData\Local\nvim\init.vim

配置信息

syntax on "自动语法高亮
"winpos 5 5          " 设定窗口位置  
"set lines=40 columns=155    " 设定窗口大小  
set number              " 显示行号
autocmd InsertLeave * se nocul  " 用浅色高亮当前行
set showcmd         " 输入的命令显示出来,看的清楚些    
set ruler           " 显示标尺  
set foldenable      " 允许折叠  
set termencoding=utf-8
set encoding=utf-8
set enc=utf-8
set fencs=utf-8
set fileencodings=ucs-bom,utf-8,cp936
set fileencoding=utf-8
vmap <C-c> "+y
map <C-v> "+p
map <C-A> ggVGY
map! <C-A> <Esc>ggVGY
set completeopt=preview,menu 
set clipboard+=unnamed 
set autowrite
set autoindent
set cindent
set tabstop=4
set hlsearch
set incsearch
set mouse=a
set selection=exclusive
set selectmode=mouse,key
set showmatch
set smartindent
set cirsorline
set smartindent
colorscheme murphy

标签:map,set,utf,vimrc,配置文件,smartindent,Vimrc,nvim
来源: https://www.cnblogs.com/xs-xs/p/16400905.html