call plug#begin() " The default plugin directory will be as follows: " - Vim (Linux/macOS): '~/.vim/plugged' " - Vim (Windows): '~/vimfiles/plugged' " - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged' " You can specify a custom plugin directory by passing it as the argument " - e.g. `call plug#begin('~/.vim/plugged')` " - Avoid using standard Vim directory names like 'plugin'
" Unmanaged plugin (manually installed and updated) Plug '~/my-prototype-plugin'
" Initialize plugin system " - Automatically executes `filetype plugin indent on` and `syntax enable`. call plug#end() " You can revert the settings after the call like so: " filetype indent off " Disable file-type-specific indentation " syntax off " Disable syntax highlighting
set nocompatible "设置和其他Vim改型的不兼容性 set termguicolors let base16colorspace=256" Access colors present in 256 colorspace colorscheme base16-solarized-dark "配色设置 setnu set autoindent "自动缩进 set softtabstop=4 setshiftwidth=4 set tabstop=4 syntaxon"语法高亮 filetypeindenton"文件类型检查 set laststatus=2"显示状态栏 set statusline=%F%m%r%h%w%=(%{&ff}/%Y)\ (line\ %l\/%L,\ col\ %c)
set relativenumber "相对行号 set cursorline "高亮当前行 set wildmenu "能够自动补全显示命令行语句,并可利用"Tab"键进行相应的选择 set textwidth=80"设置行宽 set nowrap "关闭自动折行 set scrolloff=5"垂直滚动时,光标距离顶部/底部的位置(行) set wrapmargin=2"指定折行与编辑器窗口的右边缘之间空出的字符数
set sidescrolloff=15"水平滚动时,光标距离行首或行尾的位置(字符),关闭折行时有效 set showmatch "光标遇到圆括号、方括号、大括号时,自动高亮对应的另一个括号 "-----------搜索配置------------- set hlsearch "搜索时高亮显示匹配结果 set incsearch "输入搜索模式时,每输入一个字符,就自动跳转到第一个匹配的结果 set ignorecase "搜索时忽略大小写 set smartcase set encoding=utf-8"使用UTF-8 setundofile"保留撤销历史,文件关闭后在此打开依然可以撤销关闭前的操作 set visualbell "出错时,发出视觉提示 sethistory=1000"历史记录次数 set autoread "外部编辑文件时发出提示 set title