summaryrefslogtreecommitdiffstats
path: root/runtime/vimrc_example.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-02-03 15:27:20 +0100
committerBram Moolenaar <Bram@vim.org>2019-02-03 15:27:20 +0100
commit314dd79cac2adc10304212d1980d23ecf6782cfc (patch)
tree8295f63e75dc7e7983500435f5b2af061264cb80 /runtime/vimrc_example.vim
parent63d1fea8141c3dfb36aeb9de60e5f1f90450acff (diff)
Update runtime files.
Diffstat (limited to 'runtime/vimrc_example.vim')
-rw-r--r--runtime/vimrc_example.vim21
1 files changed, 6 insertions, 15 deletions
diff --git a/runtime/vimrc_example.vim b/runtime/vimrc_example.vim
index a68ebe53d3..b05793bd10 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.
"