diff --git a/vim/vimrc b/vim/vimrc index ba8f9cc..d3efd09 100644 --- a/vim/vimrc +++ b/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