Compare commits

..

No commits in common. "b98b3229dfd98cf4c0cb1476bcbd322fdc266420" and "1156d76cbe2c41e8c1b8bb20f660cf78c7fa5606" have entirely different histories.

4 changed files with 49 additions and 41 deletions

View File

@ -2,6 +2,7 @@ default: install
install: prereqs install: prereqs
cat ./profile.sh > $(HOME)/.profile cat ./profile.sh > $(HOME)/.profile
rsync -avP ./home/ $(HOME)/
bash setup.sh bash setup.sh
prereqs: prereqs:

View File

@ -4,25 +4,37 @@ let mapleader=","
let g:go_version_warning = 0 let g:go_version_warning = 0
silent !mkdir -p ~/.vim/plug > /dev/null 2>&1 silent !mkdir -p ~/.nvim/plug > /dev/null 2>&1
silent !mkdir -p ~/.vim/backup > /dev/null 2>&1 silent !mkdir -p ~/.nvim/backup > /dev/null 2>&1
silent !mkdir -p ~/.vim/undo > /dev/null 2>&1 silent !mkdir -p ~/.nvim/undo > /dev/null 2>&1
silent !mkdir -p ~/.vim/swap > /dev/null 2>&1 silent !mkdir -p ~/.nvim/swap > /dev/null 2>&1
silent !mkdir -p ~/.vim/autoload > /dev/null 2>&1 silent !mkdir -p ~/.nvim/autoload > /dev/null 2>&1
silent !mkdir -p ~/.vim/plugged > /dev/null 2>&1 silent !mkdir -p ~/.nvim/plugged > /dev/null 2>&1
"let g:go_version_warning = 0 " amazon linux 2 epel has old nvim, this is required:
let g:go_version_warning = 0
if empty(glob('~/.vim/plug/plug.vim')) if empty(glob('~/.nvim/plug/plug.vim'))
silent !curl -fLo ~/.vim/plug/plug.vim --create-dirs silent !curl -fLo ~/.nvim/plug/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif endif
source ~/.vim/plug/plug.vim source ~/.nvim/plug/plug.vim
call plug#begin('~/.vim/plug') "Plug 'zchee/deoplete-go', { 'for': 'go' }
"Plug 'zchee/deoplete-jedi', { 'for': 'python' }
call plug#begin('~/.nvim/plug')
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'deoplete-plugins/deoplete-go', { 'do': 'make'}
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
let g:deoplete#enable_at_startup = 1
endif
Plug 'nathanaelkane/vim-indent-guides' Plug 'nathanaelkane/vim-indent-guides'
let g:indent_guides_enable_on_vim_startup = 1 let g:indent_guides_enable_on_vim_startup = 1
@ -30,8 +42,8 @@ let g:indent_guides_enable_on_vim_startup = 1
Plug 'tpope/vim-sensible' Plug 'tpope/vim-sensible'
Plug 'preservim/nerdtree' Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons' Plug 'ryanoasis/vim-devicons'
"Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
"Plug 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' } Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
Plug 'prettier/vim-prettier', { Plug 'prettier/vim-prettier', {
\ 'do': 'yarn install', \ 'do': 'yarn install',
@ -41,10 +53,10 @@ let g:prettier#autoformat = 1
let g:prettier#autoformat_require_pragma = 0 let g:prettier#autoformat_require_pragma = 0
Plug 'fatih/molokai' "Plug 'fatih/molokai'
"Plug 'morhetz/gruvbox' Plug 'morhetz/gruvbox'
Plug 'sbdchd/neoformat' Plug 'sbdchd/neoformat'
"Plug 'LnL7/vim-nix' Plug 'LnL7/vim-nix'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" syntastic " syntastic
@ -67,7 +79,7 @@ let g:rehash256 = 1
let g:molokai_original = 1 let g:molokai_original = 1
let g:gruvbox_italic = 1 let g:gruvbox_italic = 1
"colorscheme molokai "colorscheme molokai
"colorscheme gruvbox colorscheme gruvbox
noremap <Leader>w :w<cr> noremap <Leader>w :w<cr>
noremap <Leader><cr> i<cr><Esc> noremap <Leader><cr> i<cr><Esc>
@ -92,7 +104,7 @@ let g:go_info_mode='gopls'
let g:go_auto_type_info = 1 let g:go_auto_type_info = 1
highlight SyntasticErrorSign guifg=white guibg=red "highlight SyntasticErrorSign guifg=white guibg=red
"Plug 'scrooloose/nerdtree' "Plug 'scrooloose/nerdtree'
"Plug 'ludovicchabant/vim-gutentags' "Plug 'ludovicchabant/vim-gutentags'
@ -107,17 +119,17 @@ let g:gutentags_generate_on_new = 1
"call plug#end() "call plug#end()
"let g:airline_powerline_fonts = 1 let g:airline_powerline_fonts = 1
"if !exists('g:airline_symbols') if !exists('g:airline_symbols')
" let g:airline_symbols = {} let g:airline_symbols = {}
"endif endif
" unicode symbols " unicode symbols
" let g:airline_left_sep = '▶' " let g:airline_left_sep = '▶'
" let g:airline_right_sep = '◀' " let g:airline_right_sep = '◀'
" let g:airline_symbols.crypt = '🔒' let g:airline_symbols.crypt = '🔒'
" let g:airline_symbols.linenr = '☰' let g:airline_symbols.linenr = '☰'
" let g:airline_symbols.linenr = '␊' " let g:airline_symbols.linenr = '␊'
" let g:airline_symbols.linenr = '␤' " let g:airline_symbols.linenr = '␤'
" let g:airline_symbols.linenr = '¶' " let g:airline_symbols.linenr = '¶'
@ -181,10 +193,10 @@ set autoindent
"set signcolumn=yes "set signcolumn=yes
set backspace=indent,eol,start set backspace=indent,eol,start
set backup set backup
set backupdir=~/.vim/backup// set backupdir=~/.nvim/backup//
set cmdheight=3 set cmdheight=3
"set clipboard=unnamed "set clipboard=unnamed
set directory=~/.vim/swap// set directory=~/.nvim/swap//
set encoding=utf-8 set encoding=utf-8
set expandtab set expandtab
set fileencodings=utf-8 set fileencodings=utf-8
@ -200,13 +212,13 @@ set showcmd
set smartcase set smartcase
set smarttab set smarttab
set softtabstop=4 set softtabstop=4
set spellfile=~/.vim/spellfile.utf-8.add set spellfile=~/.nvim/spellfile.utf-8.add
set spelllang=en set spelllang=en
set tabstop=4 set tabstop=4
set termencoding=utf-8 set termencoding=utf-8
set ttyfast set ttyfast
set tw=76 set tw=76
set undodir=~/.vim/undo// set undodir=~/.nvim/undo//
set undofile set undofile
set wildignore+=*.pyc set wildignore+=*.pyc
set writebackup set writebackup

View File

@ -1,3 +1,6 @@
alias vim="nvim"
alias vi="nvim"
export GOPATH="/usr/local/go" export GOPATH="/usr/local/go"
if [[ ! -d $GOPATH ]]; then if [[ ! -d $GOPATH ]]; then
sudo mkdir -p $GOPATH sudo mkdir -p $GOPATH
@ -5,5 +8,4 @@ if [[ ! -d $GOPATH ]]; then
fi fi
export PATH="$PATH:$HOME/bin" export PATH="$PATH:$HOME/bin"
export PATH="$PATH:$HOME/.yarn/bin"
_byobu_sourced=1 . /usr/bin/byobu-launch _byobu_sourced=1 . /usr/bin/byobu-launch

View File

@ -4,7 +4,8 @@ source ./profile.sh
PKGS=" PKGS="
byobu byobu
go go
vim neovim
node
" "
sudo amazon-linux-extras install epel -y sudo amazon-linux-extras install epel -y
sudo amazon-linux-extras install docker -y sudo amazon-linux-extras install docker -y
@ -12,20 +13,12 @@ sudo yum -y install $PKGS
sudo yum upgrade -y sudo yum upgrade -y
export GOPATH=/usr/local/go
sudo chown -Rv $(whoami):$(whoami) $GOPATH
rm -rf $HOME/go
rsync -avP ./home/ $HOME/
sudo npm install -g yarn sudo npm install -g yarn
yarn global add prettier
# setup vim # setup vim
echo "" | vim +PlugInstall +qall echo "" | nvim +PlugInstall +qall
vim +GoInstallBinaries +qall nvim +GoInstallBinaries +qall
vim +PlugInstall +qall nvim +PlugInstall +qall
# configure byobu # configure byobu
byobu-launcher-install byobu-launcher-install