diff options
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. " |