mirror of
https://github.com/KiTTYsh/dotfiles.git
synced 2025-12-09 20:59:16 -05:00
make vimrc windows compatible
This commit is contained in:
17
vim/vimrc
17
vim/vimrc
@@ -1,7 +1,10 @@
|
||||
" Install vim-plug if not found
|
||||
if empty(glob('~/.vim/autoload/plug.vim'))
|
||||
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
if has('win32')
|
||||
if empty(glob($USERPROFILE . '/vimfiles/autoload/plug.vim'))
|
||||
silent execute '!curl -fLo "'.$USERPROFILE.'/vimfiles/autoload/plug.vim" --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||
endif
|
||||
elseif empty(glob('~/.vim/autoload/plug.vim'))
|
||||
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
endif
|
||||
|
||||
" Run PlugInstall if there are missing plugins
|
||||
@@ -10,7 +13,11 @@ autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
|
||||
\| endif
|
||||
|
||||
" vim-plug
|
||||
call plug#begin('~/.vim/plugged')
|
||||
if has('win32')
|
||||
call plug#begin($USERPROFILE.'/vimfiles/bundle')
|
||||
else
|
||||
call plug#begin('~/.vim/bundle')
|
||||
endif
|
||||
Plug 'lambdalisue/suda.vim'
|
||||
Plug 'mhinz/vim-signify'
|
||||
Plug 'tpope/vim-fugitive'
|
||||
@@ -18,5 +25,7 @@ Plug 'vim-airline/vim-airline'
|
||||
"Plug 'airblade/vim-gitgutter'
|
||||
call plug#end()
|
||||
|
||||
set backspace=indent,eol,start
|
||||
set nowrap
|
||||
let g:airline_powerline_fonts = 1
|
||||
let g:suda_smart_edit = 1
|
||||
|
||||
Reference in New Issue
Block a user