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:
parent
e493471d41
commit
3be00be776
@ -18,8 +18,10 @@ else
|
||||
endif
|
||||
endif
|
||||
|
||||
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
|
||||
|
||||
if !has('nvim')
|
||||
" turn on manpages (:Man)
|
||||
runtime ftplugin/man.vim
|
||||
endif
|
||||
|
||||
" make comments and HTML attributes italic
|
||||
highlight Comment cterm=italic
|
||||
|
Loading…
Reference in New Issue
Block a user