install plugins only on neovim

This commit is contained in:
Grigory Shipunov 2021-08-13 21:32:42 +02:00
parent 5b3af66254
commit 242fc85911
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C

View file

@ -1,14 +1,5 @@
if has('nvim') if has('nvim')
call plug#begin(stdpath('data') . '/plugged') call plug#begin(stdpath('data') . '/plugged')
else
set nocompatible
filetype plugin indent on
syntax enable
call plug#begin('~/.vim/plugged')
endif
" insert images into markdown automagically " insert images into markdown automagically
Plug 'ferrine/md-img-paste.vim' Plug 'ferrine/md-img-paste.vim'
@ -18,16 +9,18 @@ Plug 'LnL7/vim-nix'
Plug 'cespare/vim-toml' Plug 'cespare/vim-toml'
Plug 'JuliaEditorSupport/julia-vim' Plug 'JuliaEditorSupport/julia-vim'
" Improved default colorscheme
Plug 'jeffkreeftmeijer/vim-dim'
call plug#end() call plug#end()
colorscheme dim
" Incrementally show effects of :s, :smagic, :snomagic " Incrementally show effects of :s, :smagic, :snomagic
if has('nvim')
set icm=split set icm=split
" insert images into markdown automagically
autocmd FileType markdown nmap <buffer><silent> <localleader>p :call mdip#MarkdownClipboardImage()<CR>
let g:mdip_imgdir = 'static'
let g:mdip_imgname = 'image'
else
set nocompatible
filetype plugin indent on
syntax enable
endif endif
" disable TeX commands concealing " disable TeX commands concealing
@ -90,9 +83,4 @@ nnoremap U :echo "NOPE!"<CR>
" do not conceal stuff " do not conceal stuff
set conceallevel=0 set conceallevel=0
" insert images into markdown automagically
autocmd FileType markdown nmap <buffer><silent> <localleader>p :call mdip#MarkdownClipboardImage()<CR>
let g:mdip_imgdir = 'static'
let g:mdip_imgname = 'image'
set laststatus=1 set laststatus=1