Skip to content

yushengsu-thu/hack-vimrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 

Repository files navigation

Hack your personal vim

  • You could download sheng_vimrc and paste its context to ~/.vimrc

Requirent

  • 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

Installing ctags (Universal Ctags) Without sudo

  • 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')

About

my vim configure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published