This repo is for my personal development settings. The goal is whenever I move to a new device, I can bring up the same development environment within minutes.
Install zsh.
sudo apt install zsh
Install oh-my-zsh. Using the script in Oh My Zsh website. Change the theme to "bira". Change the zsh to default.
-
Soft link the
vim/.vimrc
to home directory. Automate the process by usingvim/deploy.sh
. -
The
vim/.vimrc
uses~/.vim/backup
and~/.vim/undo
as the backup and undo file directory, has to create this two directories, otherwise the vim will warn you something like "Cannot create backup file" on exit. -
Install plugin manager vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
- Install plugin managed by vundle
# open vim and install
vim
:PluginInstall
- Coc configuration
- Coc repo: https://github.com/neoclide/coc.nvim
- After installed by vundle, the dependencies of coc.nvim need to be installed by going into the install path of coc.nvim and run
yarn install
(Install yarn using npm if neccessary) - Then install coc json plugin and tsserver plugin inside vim command line using:
:CocInstall coc-json coc-tssever coc-html coc-clangd # already in the .vimrc file
- Install clangd (not neccessary install on local): https://clangd.llvm.org/installation.html
sudo apt-get install clangd-12
sudo update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-12 100
- Install clangd for coc-clangd:
vim -c ":CocCommand clangd.install"
- Soft link the
tmux/.tmux.conf
to home directory. Automate the process by usingtmux/deploy.sh
.