mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
install-new-server.sh update Go & Nodejs versions, fix small issues. Update init.vim
This commit is contained in:
33
init.vim
33
init.vim
@@ -17,7 +17,7 @@ Plug 'Raimondi/delimitMate'
|
||||
Plug 'majutsushi/tagbar'
|
||||
|
||||
" rainbow parentheses
|
||||
Plug 'kien/rainbow_parentheses.vim'
|
||||
Plug 'luochen1990/rainbow'
|
||||
|
||||
" go
|
||||
Plug 'fatih/vim-go' " Amazing combination of features.
|
||||
@@ -45,6 +45,10 @@ Plug 'zchee/deoplete-go', {'build': {'unix': 'make'}}
|
||||
" neosnippet with deoplete
|
||||
Plug 'Shougo/neosnippet.vim'
|
||||
Plug 'Shougo/neosnippet-snippets'
|
||||
|
||||
" automatically adjust shiftwidth and expand tab based on current file
|
||||
Plug 'tpope/vim-sleuth'
|
||||
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
" Plugin deoplete neosnippet key-mappings.
|
||||
" Note: It must be "imap" and "smap". It uses <Plug> mappings.
|
||||
@@ -58,6 +62,8 @@ Plug 'tomasr/molokai'
|
||||
Plug 'srcery-colors/srcery-vim'
|
||||
Plug 'rakr/vim-one'
|
||||
Plug 'morhetz/gruvbox'
|
||||
Plug 'toupeira/vim-desertink'
|
||||
Plug 'maksimr/Lucius2'
|
||||
let g:srcery_italic = 1
|
||||
|
||||
|
||||
@@ -163,30 +169,7 @@ let g:syntastic_python_checkers = []
|
||||
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
|
||||
|
||||
" rainbowparentheses
|
||||
let g:rbpt_colorpairs = [
|
||||
\ ['brown', 'RoyalBlue3'],
|
||||
\ ['Darkblue', 'SeaGreen3'],
|
||||
\ ['darkgray', 'DarkOrchid3'],
|
||||
\ ['darkgreen', 'firebrick3'],
|
||||
\ ['darkcyan', 'RoyalBlue3'],
|
||||
\ ['darkred', 'SeaGreen3'],
|
||||
\ ['darkmagenta', 'DarkOrchid3'],
|
||||
\ ['brown', 'firebrick3'],
|
||||
\ ['gray', 'RoyalBlue3'],
|
||||
\ ['black', 'SeaGreen3'],
|
||||
\ ['darkmagenta', 'DarkOrchid3'],
|
||||
\ ['Darkblue', 'firebrick3'],
|
||||
\ ['darkgreen', 'RoyalBlue3'],
|
||||
\ ['darkcyan', 'SeaGreen3'],
|
||||
\ ['darkred', 'DarkOrchid3'],
|
||||
\ ['red', 'firebrick3'],
|
||||
\ ]
|
||||
let g:rbt_max = 16
|
||||
let g:rbpt_loadcmd_toggle = 0
|
||||
au VimEnter * RainbowParenthesesToggle
|
||||
au Syntax * RainbowParenthesesLoadRound
|
||||
au Syntax * RainbowParenthesesLoadSquare
|
||||
au Syntax * RainbowParenthesesLoadBraces
|
||||
let g:rainbow_active = 1
|
||||
|
||||
" abbreviations
|
||||
cnoreabbrev W! w!
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# assumming that git & vim are already installed and this repo is downloaded
|
||||
|
||||
echo "updating"
|
||||
sudo apt-get update
|
||||
apt-get update
|
||||
|
||||
# tmux
|
||||
echo "installing tmux"
|
||||
sudo apt-get -y install tmux
|
||||
apt-get -y install tmux
|
||||
|
||||
echo "setting tmux config"
|
||||
cp ./.tmux.conf ~/.tmux.conf
|
||||
@@ -16,7 +16,7 @@ cp ./.vimrc ~/.vimrc
|
||||
|
||||
# neovim
|
||||
echo "installing neovim"
|
||||
sudo apt-get -y install neovim
|
||||
apt-get -y install neovim
|
||||
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
|
||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
|
||||
@@ -35,19 +35,19 @@ curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
|
||||
|
||||
# bash
|
||||
echo "append .bashrc of this repo lines to the .bashrc system file"
|
||||
cat ../.bashrc >> ~/.bashrc
|
||||
cat .bashrc >> ~/.bashrc
|
||||
|
||||
source .bashrc
|
||||
|
||||
# go
|
||||
echo "installing go 1.11.5"
|
||||
wget https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz
|
||||
tar -C /usr/local -xzf go1.11.5.linux-amd64.tar.gz
|
||||
echo "installing go 1.12.5"
|
||||
wget https://dl.google.com/go/go1.12.5.linux-amd64.tar.gz
|
||||
tar -C /usr/local -xzf go1.12.5.linux-amd64.tar.gz
|
||||
|
||||
# nodejs
|
||||
echo "installing nodejs v8"
|
||||
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
|
||||
sudo apt-get install -y nodejs
|
||||
echo "installing nodejs v10"
|
||||
curl -sL https://deb.nodesource.com/setup_10.x | bash -
|
||||
apt-get install -y nodejs
|
||||
|
||||
echo "installing npm http-server"
|
||||
sudo npm install -g http-server
|
||||
npm install -g http-server
|
||||
|
||||
Reference in New Issue
Block a user