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 cursorline
set smartindent
set expandtab
colorscheme murphy
posted @ 2022-06-22 15:47  edolf  阅读(52)  评论(0编辑  收藏  举报