" An example for a vimrc file."" Maintainer: Bram Moolenaar <Bram@vim.org>" Last change: 2016 Jul 28"" To use it, copy it to" for Unix and OS/2: ~/.vimrc" for Amiga: s:.vimrc" for MS-DOS and Win32: $VIM\_vimrc" for OpenVMS: sys$login:.vimrc" When started as "evim", evim.vim will already have done these settings.if v:progname =~? "evim"finishendif" Get the defaults that most users want.source $VIMRUNTIME/defaults.vimif has("vms")set nobackup " do not keep a backup file, use versions insteadelseset backup " keep a backup file (restore to previous version)if has('persistent_undo')set undofile " keep an undo file (undo changes after closing)endifendifif &t_Co > 2 || has("gui_running")" Switch on highlighting the last used search pattern.set hlsearchendif" Only do this part when compiled with support for autocommands.if has("autocmd")" Put these in an autocmd group, so that we can delete them easily.augroup vimrcExau!" For all text files set 'textwidth' to 78 characters.autocmd FileType text setlocal textwidth=78augroup ENDelseset autoindent " always set autoindenting onendif " has("autocmd")" Add optional packages."" The matchit plugin makes the % command work better, but it is not backwards" compatible.if has('syntax') && has('eval')packadd matchitendif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。