install plugins only on neovim
This commit is contained in:
parent
5b3af66254
commit
242fc85911
1 changed files with 17 additions and 29 deletions
|
@ -1,33 +1,26 @@
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
call plug#begin(stdpath('data') . '/plugged')
|
call plug#begin(stdpath('data') . '/plugged')
|
||||||
|
" insert images into markdown automagically
|
||||||
|
Plug 'ferrine/md-img-paste.vim'
|
||||||
|
|
||||||
|
"Better syntax
|
||||||
|
Plug 'rust-lang/rust.vim'
|
||||||
|
Plug 'LnL7/vim-nix'
|
||||||
|
Plug 'cespare/vim-toml'
|
||||||
|
Plug 'JuliaEditorSupport/julia-vim'
|
||||||
|
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
" Incrementally show effects of :s, :smagic, :snomagic
|
||||||
|
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
|
else
|
||||||
set nocompatible
|
set nocompatible
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
syntax enable
|
syntax enable
|
||||||
|
|
||||||
call plug#begin('~/.vim/plugged')
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
" insert images into markdown automagically
|
|
||||||
Plug 'ferrine/md-img-paste.vim'
|
|
||||||
|
|
||||||
"Better syntax
|
|
||||||
Plug 'rust-lang/rust.vim'
|
|
||||||
Plug 'LnL7/vim-nix'
|
|
||||||
Plug 'cespare/vim-toml'
|
|
||||||
Plug 'JuliaEditorSupport/julia-vim'
|
|
||||||
|
|
||||||
" Improved default colorscheme
|
|
||||||
Plug 'jeffkreeftmeijer/vim-dim'
|
|
||||||
|
|
||||||
call plug#end()
|
|
||||||
|
|
||||||
colorscheme dim
|
|
||||||
|
|
||||||
" Incrementally show effects of :s, :smagic, :snomagic
|
|
||||||
if has('nvim')
|
|
||||||
set icm=split
|
|
||||||
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue