Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
vimrc_example.vim54 linesDownload Raw Back to vim92
1" An example for a vimrc file.2"3" Maintainer:	The Vim Project <https://github.com/vim/vim>4" Last Change:	2023 Aug 105" Former Maintainer:	Bram Moolenaar <Bram@vim.org>6"7" To use it, copy it to8"	       for Unix:  ~/.vimrc9"	      for Amiga:  s:.vimrc10"	 for MS-Windows:  $VIM\_vimrc11"	      for Haiku:  ~/config/settings/vim/vimrc12"	    for OpenVMS:  sys$login:.vimrc13 14" When started as "evim", evim.vim will already have done these settings, bail15" out.16if v:progname =~? "evim"17  finish18endif19 20" Get the defaults that most users want.21source $VIMRUNTIME/defaults.vim22 23if has("vms")24  set nobackup		" do not keep a backup file, use versions instead25else26  set backup		" keep a backup file (restore to previous version)27  if has('persistent_undo')28    set undofile	" keep an undo file (undo changes after closing)29  endif30endif31 32if &t_Co > 2 || has("gui_running")33  " Switch on highlighting the last used search pattern.34  set hlsearch35endif36 37" Put these in an autocmd group, so that we can delete them easily.38augroup vimrcEx39  au!40 41  " For all text files set 'textwidth' to 78 characters.42  autocmd FileType text setlocal textwidth=7843augroup END44 45" Add optional packages.46"47" The matchit plugin makes the % command work better, but it is not backwards48" compatible.49" The ! means the package won't be loaded right away but when plugins are50" loaded during initialization.51if has('syntax') && has('eval')52  packadd! matchit53endif54 
codekingpro/portable-devtools · Team Ai