gvim常用配置 时空

gvim version:8.0.69

此配置保存在全局配置文件:~/vim/_vimrc中;

=====================================

set encoding=utf-8 "解决中文乱码问题
set fenc=chinese "可以解决编写的批处理运行时中文出现乱码的问题
set termencoding=utf-8 "输出终端时采用的编码类型
set nu!        "设置行号
set autoindent "设置自动缩进
set tabstop=2 "一个TAB空格占的空格数
set expandtab      "将tab转换为space
set filetype=vim "设置文件类型,有时vim无法识别文件类型时,需要自己设置。
set cursorline     "突出显示当前行
set cursorcolumn   "突出显示当前列
set textwidth=0    "解决输入过程中自动换行的问题
syntax on          "语法高亮

colorscheme murphy "设置配色方案
"下记为快速插入时间的方法,输入it,可以插入当前系统时间
iab it <c-r>=strftime("%Y-%m-%d(%A%W) %H:%M:%S(%a)")<cr>
原文地址:https://www.cnblogs.com/luniverseg/p/8420674.html