Posted on 2019-03-03 10:54
宋鹏 阅读(391)
评论(0) 编辑 收藏 引用 所属分类:
Linux
系统位置:/etc/vim/vimrc用户位置(默认无):~/.vimrcVim 配置颜色主题:https://vimcolors.com/
Vim 配置下载的theme:到上面的网站下载sometheme.vim文件放到 ~/.vim/colors下面.vimrc中加入:color sometheme.vimrc中加入:syntax on
.vimrc内容:
" 显示行号
set nu
" 缩进空格数
set tabstop=4
" 颜色主题
color railscasts
" 颜色语法生效
syntax on
" 根据文档类型,自动安排缩进,比如对待.c文件和对待makefile会有不同的缩进
filetype indent on" 文件编码(without bom):set nobomb
" 内部编码
set encoding=utf-8
" 文件编码utf-8set fileencoding=utf-8
" 编码列表
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1