1
0
mirror of https://github.com/vbrandl/dotfiles synced 2024-11-23 00:13:49 +01:00

Make vimrc compatible to nvim

This commit is contained in:
Valentin Brandl 2017-04-13 13:25:27 +02:00
parent e493471d41
commit 3be00be776
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9

View File

@ -18,8 +18,10 @@ else
endif
endif
" encrypt files using blowfish
set cryptmethod=blowfish2
if !has('nvim')
" encrypt files using blowfish
set cryptmethod=blowfish2
endif
syntax on
colorscheme onedark
@ -56,7 +58,7 @@ endif " has("autocmd")
"
" The matchit plugin makes the % command work better, but it is not backwards
" compatible.
if has('syntax') && has('eval')
if has('syntax') && has('eval') && !has('nvim')
packadd matchit
endif
@ -143,8 +145,10 @@ set visualbell
set t_vb=
set tm=500
" turn on manpages (:Man)
runtime ftplugin/man.vim
if !has('nvim')
" turn on manpages (:Man)
runtime ftplugin/man.vim
endif
" make comments and HTML attributes italic
highlight Comment cterm=italic