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'
|
Plug 'majutsushi/tagbar'
|
||||||
|
|
||||||
" rainbow parentheses
|
" rainbow parentheses
|
||||||
Plug 'kien/rainbow_parentheses.vim'
|
Plug 'luochen1990/rainbow'
|
||||||
|
|
||||||
" go
|
" go
|
||||||
Plug 'fatih/vim-go' " Amazing combination of features.
|
Plug 'fatih/vim-go' " Amazing combination of features.
|
||||||
@@ -45,6 +45,10 @@ Plug 'zchee/deoplete-go', {'build': {'unix': 'make'}}
|
|||||||
" neosnippet with deoplete
|
" neosnippet with deoplete
|
||||||
Plug 'Shougo/neosnippet.vim'
|
Plug 'Shougo/neosnippet.vim'
|
||||||
Plug 'Shougo/neosnippet-snippets'
|
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
|
let g:deoplete#enable_at_startup = 1
|
||||||
" Plugin deoplete neosnippet key-mappings.
|
" Plugin deoplete neosnippet key-mappings.
|
||||||
" Note: It must be "imap" and "smap". It uses <Plug> 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 'srcery-colors/srcery-vim'
|
||||||
Plug 'rakr/vim-one'
|
Plug 'rakr/vim-one'
|
||||||
Plug 'morhetz/gruvbox'
|
Plug 'morhetz/gruvbox'
|
||||||
|
Plug 'toupeira/vim-desertink'
|
||||||
|
Plug 'maksimr/Lucius2'
|
||||||
let g:srcery_italic = 1
|
let g:srcery_italic = 1
|
||||||
|
|
||||||
|
|
||||||
@@ -163,30 +169,7 @@ let g:syntastic_python_checkers = []
|
|||||||
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
|
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
|
||||||
|
|
||||||
" rainbowparentheses
|
" rainbowparentheses
|
||||||
let g:rbpt_colorpairs = [
|
let g:rainbow_active = 1
|
||||||
\ ['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
|
|
||||||
|
|
||||||
" abbreviations
|
" abbreviations
|
||||||
cnoreabbrev W! w!
|
cnoreabbrev W! w!
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
# assumming that git & vim are already installed and this repo is downloaded
|
# assumming that git & vim are already installed and this repo is downloaded
|
||||||
|
|
||||||
echo "updating"
|
echo "updating"
|
||||||
sudo apt-get update
|
apt-get update
|
||||||
|
|
||||||
# tmux
|
# tmux
|
||||||
echo "installing tmux"
|
echo "installing tmux"
|
||||||
sudo apt-get -y install tmux
|
apt-get -y install tmux
|
||||||
|
|
||||||
echo "setting tmux config"
|
echo "setting tmux config"
|
||||||
cp ./.tmux.conf ~/.tmux.conf
|
cp ./.tmux.conf ~/.tmux.conf
|
||||||
@@ -16,7 +16,7 @@ cp ./.vimrc ~/.vimrc
|
|||||||
|
|
||||||
# neovim
|
# neovim
|
||||||
echo "installing 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 \
|
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
|
||||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
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
|
# bash
|
||||||
echo "append .bashrc of this repo lines to the .bashrc system file"
|
echo "append .bashrc of this repo lines to the .bashrc system file"
|
||||||
cat ../.bashrc >> ~/.bashrc
|
cat .bashrc >> ~/.bashrc
|
||||||
|
|
||||||
source .bashrc
|
source .bashrc
|
||||||
|
|
||||||
# go
|
# go
|
||||||
echo "installing go 1.11.5"
|
echo "installing go 1.12.5"
|
||||||
wget https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz
|
wget https://dl.google.com/go/go1.12.5.linux-amd64.tar.gz
|
||||||
tar -C /usr/local -xzf go1.11.5.linux-amd64.tar.gz
|
tar -C /usr/local -xzf go1.12.5.linux-amd64.tar.gz
|
||||||
|
|
||||||
# nodejs
|
# nodejs
|
||||||
echo "installing nodejs v8"
|
echo "installing nodejs v10"
|
||||||
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
|
curl -sL https://deb.nodesource.com/setup_10.x | bash -
|
||||||
sudo apt-get install -y nodejs
|
apt-get install -y nodejs
|
||||||
|
|
||||||
echo "installing npm http-server"
|
echo "installing npm http-server"
|
||||||
sudo npm install -g http-server
|
npm install -g http-server
|
||||||
|
|||||||
Reference in New Issue
Block a user