general update
This commit is contained in:
parent
14f8bef9bd
commit
19ca01f148
16
vim/vim-setup.sh
Normal file → Executable file
16
vim/vim-setup.sh
Normal file → Executable file
@ -1,8 +1,11 @@
|
||||
# install curl
|
||||
sudo apt install curl --assume-yes
|
||||
sudo pacman -S curl --noconfirm
|
||||
|
||||
# install vim
|
||||
sudo apt install vim --assume-yes
|
||||
sudo pacman -S vim --noconfirm
|
||||
|
||||
# install nodejs for coc
|
||||
sudo pacman -S nodejs --noconfirm
|
||||
|
||||
# setup vim-plug
|
||||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
||||
@ -11,6 +14,9 @@ curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
||||
# copy vimrc
|
||||
cp vimrc ~/.vimrc
|
||||
|
||||
ex -c source ~/.vimrc -c qa!
|
||||
ex -c PlugInstall vimtex -c PlugInstall lightline.vim -c PlugInstall vim-colors-solarized -c PlugInstall nerdtree -c qa!
|
||||
|
||||
# source copied vimrc
|
||||
vim -c source ~/.vimrc -c qa!
|
||||
# install plugins
|
||||
vim -c PlugInstall vimtex -c coc.nvim -c PlugInstall lightline.vim -c PlugInstall nerdtree -c qa!
|
||||
#install coc plugins
|
||||
vim -c CocInstall coc-python -c qa!
|
||||
|
11
vim/vimrc
11
vim/vimrc
@ -29,21 +29,18 @@ nnoremap qw :w<CR>
|
||||
set number
|
||||
|
||||
call plug#begin()
|
||||
" coding
|
||||
Plug 'lervag/vimtex'
|
||||
Plug 'neoclide/coc.nvim'
|
||||
" ui
|
||||
Plug 'scrooloose/nerdtree'
|
||||
Plug 'itchyny/lightline.vim'
|
||||
Plug 'altercation/vim-colors-solarized'
|
||||
call plug#end()
|
||||
|
||||
set encoding=UTF-8
|
||||
set tabstop=4
|
||||
|
||||
set background=dark
|
||||
set laststatus=2
|
||||
set noshowmode
|
||||
let g:lightline = {
|
||||
\ 'colorscheme': 'solarized',
|
||||
\ }
|
||||
|
||||
colors solarized
|
||||
|
||||
colors darkblue
|
||||
|
Loading…
x
Reference in New Issue
Block a user