# HG changeset patch # User Meredith Howard # Date 1559803659 14400 # Node ID 7ed19a36b1986eb52559a03e3859dceb6fe6beee # Parent 0e08061474a8fcba5b865973fcb4ecfb52174512 Use vim 8's defaults.vim, remove redundant settings and old feature checks diff --git a/.vim/after/ftplugin/perl.vim b/.vim/after/ftplugin/perl.vim --- a/.vim/after/ftplugin/perl.vim +++ b/.vim/after/ftplugin/perl.vim @@ -1,5 +1,5 @@ compiler perl -if g:perl_tidy_equalprg +if exists('g:perl_tidy_equalprg') && g:perl_tidy_equalprg setlocal equalprg=perltidy\ -q endif diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -4,6 +4,9 @@ set encoding=utf-8 scriptencoding utf-8 +unlet! skip_defaults_vim +source $VIMRUNTIME/defaults.vim + " on windows and not cygwin let g:on_windows = (has('win32') || has('win64')) let g:myvim = $HOME . (g:on_windows ? '/vimfiles' : '/.vim') @@ -145,10 +148,6 @@ CAlias perldoc ViewDocPerl! "}}} " General settings {{{ -syntax on -filetype plugin indent on - -set incsearch set hlsearch set ignorecase set smartcase @@ -163,10 +162,8 @@ endif set linebreak let &showbreak = "ยป " -if exists('&breakindent') - set breakindent - set breakindentopt+=sbr -endif +set breakindent +set breakindentopt+=sbr set virtualedit=block @@ -176,26 +173,20 @@ set shiftwidth=2 set shiftround set formatoptions=cqln1j -set backspace=indent,eol,start set splitright splitbelow set scrolloff=15 set sidescrolloff=10 set laststatus=2 set noshowmode -set showcmd -set wildmenu set wildignorecase set shortmess+=c set noerrorbells -if has('patch-7.4-793') - set belloff=all -endif +set belloff=all set autowriteall -set ttimeout set ttimeoutlen=25 set synmaxcol=200 @@ -470,10 +461,6 @@ let g:interestingWordsRandomiseColors = " Preview markdown mail -- I edit with headers so I box them in a code block. command! MailPreview enew | set bt=nofile | 0r # | exe 'norm! 0O```}O```' | silent exe '%!mutt-md2html | mutt-html2txt' | 0 command! MailPreviewHTML enew | set bt=nofile | setf html | 0r # | exe 'norm! 0O```}O```' | silent exe '%!mutt-md2html' | 0 - -" Diff unsaved buffer -command! DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis - \ | wincmd p | diffthis " }}} " Local stuff, finish up