diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-03 15:27:20 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-03 15:27:20 +0100 |
commit | 314dd79cac2adc10304212d1980d23ecf6782cfc (patch) | |
tree | 8295f63e75dc7e7983500435f5b2af061264cb80 /runtime/vimrc_example.vim | |
parent | 63d1fea8141c3dfb36aeb9de60e5f1f90450acff (diff) | |
download | vim-git-314dd79cac2adc10304212d1980d23ecf6782cfc.tar.gz |
Update runtime files.
Diffstat (limited to 'runtime/vimrc_example.vim')
-rw-r--r-- | runtime/vimrc_example.vim | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/runtime/vimrc_example.vim b/runtime/vimrc_example.vim index a68ebe53d..b05793bd1 100644 --- a/runtime/vimrc_example.vim +++ b/runtime/vimrc_example.vim @@ -1,7 +1,7 @@ " An example for a vimrc file. " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last change: 2017 Sep 20 +" Last change: 2019 Jan 26 " " To use it, copy it to " for Unix and OS/2: ~/.vimrc @@ -9,7 +9,8 @@ " for MS-DOS and Win32: $VIM\_vimrc " for OpenVMS: sys$login:.vimrc -" When started as "evim", evim.vim will already have done these settings. +" When started as "evim", evim.vim will already have done these settings, bail +" out. if v:progname =~? "evim" finish endif @@ -31,23 +32,13 @@ if &t_Co > 2 || has("gui_running") set hlsearch endif -" 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 vimrcEx +" Put these in an autocmd group, so that we can delete them easily. +augroup vimrcEx au! " For all text files set 'textwidth' to 78 characters. autocmd FileType text setlocal textwidth=78 - - augroup END - -else - - set autoindent " always set autoindenting on - -endif " has("autocmd") +augroup END " Add optional packages. " |