The bucket of dot files.
This repo includes configuration files come from various most common used softewares, such as neovim, oh-my-zsh, tmux or private applications(this private configuration is managed by an independent git repo, and won't be added in this repo to avoid sensitive information leakage). Each application's specific configuration files are contained in one directory which named as the application's name.
- Prerequisite
- [Private config files](#Private config files)
- NeoVim
- oh-my-zsh
- tmux
To obtain the full features of this configuration, you have to install NERD fonts which are patched lots of icons.
You can find more details of NERD fonts here: https://github.com/ryanoasis/nerd-fonts
If you have any private files(files containe sensitive contents), you may gather all of them together and put them in the conf
directory. The conf
directory has been added in gitignore
file, which won't be pushed to the server.
If you are a man occasionally understands Chinese, you may check this article which is posted on my blog for more details.
You may check here.
Here, we use ag
(the silver searcher) as the search command of CtrlP
command, So you need to install it accoradingly. If there is no any ag
in your system, the default search mechanism of CtrlP is used.
For installation details, check here.
Instead of .vimr
and .vim/
dir, neovim uses the XDG specification to manage its configuration files.
To use my configurations, all you need is to link the nvim
dir in my .dot
to where the XDG specification designates.
mkdir -p ${XDG_CONFIG_HOME:=$HOME/.config}
ln -s .dot/nvim $XDG_CONFIG_HOME/
Here gives more information about the differences between vim and neovim.
pip install neovim
or, if you familiar with python3 use pip3
instead.
If you are using OSX El capitan, like me, and have failed installing pip, you have to understand the new protect mechanism, i.e. SIP.
Install vim-plug.
If you have curl
installed, you can execute the following command to install vim-plug
:
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Otherwise, you may check this.
- Open your nvim and execute
:PlugInstall
. - Compile YCM according to http://valloric.github.io/YouCompleteMe/#installation.
- Update remote plugins by running
:UpdateRemotePlugins
in nvim.
If you don't want to use the system's default python interpreter, or if you opt with many different versions of python, you can compile YCM with a specific version of python.
For the details, please check this article.
CONFIGURE_OPTS="--enable-shared --with-system-expat " pyenv install 3.9.3
- Copy theme to your oh-my-zsh configuration directory.
- Make a symbol of zshrc to your ~ directory.
Link tmux
dir and tmux.conf
to your home directory:
ln -s /path/to/.dot/tmux ~/.tmux
ln -s /path/to/.dot/tmux/tmux.conf ~/.tmux.conf
The official installation guide can be found https://github.com/tmux-plugins/tpm#installation.
Simply:
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Launch tmux and press the shortcut: Prefix + I
.