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