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
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if !has('nvim')
|
||||||
" encrypt files using blowfish
|
" encrypt files using blowfish
|
||||||
set cryptmethod=blowfish2
|
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
|
||||||
|
|
||||||
|
if !has('nvim')
|
||||||
" turn on manpages (:Man)
|
" turn on manpages (:Man)
|
||||||
runtime ftplugin/man.vim
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user