Last active
December 10, 2022 19:53
-
-
Save suricactus/2922306b9f7a3827dfd2f8be3c0418c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Automatically install vim-plug | |
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 | |
endif | |
" All plugs | |
call plug#begin() | |
" Reasonable defaults | |
Plug 'tpope/vim-sensible' | |
" Better looking | |
Plug 'ghifarit53/tokyonight-vim' | |
Plug 'itchyny/lightline.vim' | |
" Language pack on demand | |
Plug 'sheerun/vim-polyglot' | |
" Comment out stuff | |
" keymap: <select> + gc + <enter> | |
" read more: https://raw.githubusercontent.com/tpope/vim-commentary/master/README.markdown | |
Plug 'tpope/vim-commentary' | |
" Edit surroundings | |
" keymap: cs<OLD><NEW> e.g. cs'" | |
" read more: https://raw.githubusercontent.com/tpope/vim-surround/master/README.markdown | |
Plug 'tpope/vim-surround' | |
" read more: https://raw.githubusercontent.com/tpope/vim-repeat/master/README.markdown | |
Plug 'tpope/vim-repeat' | |
" File search | |
" keymap: :Files OR :Locate | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
" Markdown | |
Plug 'godlygeek/tabular' | |
Plug 'preservim/vim-markdown' | |
call plug#end() | |
" Run PlugInstall if there are missing plugins | |
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) | |
\| PlugInstall --sync | source $MYVIMRC | |
\| endif | |
let g:vim_markdown_folding_disabled = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# update the latest | |
sudo apt update | |
# install `zsh` | |
sudo apt install -y zsh tmux vim git | |
# make `zsh` default | |
chsh -s $(which zsh) | |
# install Oh My Zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# configure OMZ | |
sed -i '/^ZSH_THEME=/c ZSH_THEME="risto"' .zshrc | |
sed '/^plugins=/c plugins=(git zsh-autosuggestions pip gitignore command-not-found docker docker-compose ubuntu)' .zshrc | |
# add .tmux config | |
git clone https://github.com/gpakosz/.tmux.git | |
ln -s -f .tmux/.tmux.conf | |
cp .tmux/.tmux.conf.local . | |
# add .vimrc | |
https://gist.githubusercontent.com/suricactus/2922306b9f7a3827dfd2f8be3c0418c6/raw/8acc513a1e3f62eeddbed48ec057e28264cd7681/.vimrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment