nvim: autobootstrap plug and add support in tmux
This commit is contained in:
parent
19244e2b9e
commit
7cccd52ec8
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
" Install vim-plug automagically
|
||||
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
||||
if empty(glob(data_dir . '/autoload/plug.vim'))
|
||||
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||
endif
|
||||
|
||||
call plug#begin(stdpath('data') . '/plugged')
|
||||
" insert images into markdown automagically
|
||||
Plug 'ferrine/md-img-paste.vim'
|
||||
|
|
|
@ -16,3 +16,6 @@ setw -g mode-keys vi
|
|||
|
||||
# do not truncate session name
|
||||
set -g status-left-length 15
|
||||
|
||||
# set focus events
|
||||
set-option -g focus-events on
|
||||
|
|
Loading…
Add table
Reference in a new issue