- You could download sheng_vimrc and paste its context to
~/.vimrc
- Unix/Linux (basic packages) Download Vim-plug and follow the instructions at link
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
and then vim ~/.vimrc
:PlugInstall
:PlugUpdate
and then
source ~/.vimrc
-
Step 1: Check for required tools Make sure your environment already has:
git
,make
,gcc
-
Step 2: Create directories for installation
mkdir -p ~/local/bin
mkdir -p ~/src && cd ~/src
- Step 3: Clone the Universal Ctags repository
git clone https://github.com/universal-ctags/ctags.git
cd ctags
- Step 4: Build and install it locally
./autogen.sh
./configure --prefix=$HOME/local
make -j$(nproc)
make install
- Step 5: Add ctags to your PATH
export PATH="$HOME/local/bin:$PATH"
Then reload the config:
source ~/.bashrc # Or the appropriate config file for your shell
- Step 6: Verify the installation
which ctags
# Should return: ~/local/bin/ctags
ctags --version
# Should show: Universal Ctags
- Step 7: (Optional) Configure Vim or Gutentags to use this ctags
let g:gutentags_ctags_executable = expand('~/local/bin/ctags')