Skip to content

Instantly share code, notes, and snippets.

@RobinCPC
Last active August 4, 2022 10:04
Show Gist options
  • Save RobinCPC/d25b9d23cbce0c35f4904850f72e745c to your computer and use it in GitHub Desktop.
Save RobinCPC/d25b9d23cbce0c35f4904850f72e745c to your computer and use it in GitHub Desktop.
How to use vim with ctags (tagbar plugin) in wondows systems

Frist, need to have vim and install tagbar plugin in windows system.

  • Simplely, I install git and use git bash with vim.
  • Construct vim setting in HOME directory (~/.vimrc).
	Could use `$ echo $HOME` to find out HOME directory set by git.

Second, add ctags in PATH which could find by git bash.

  • Download ctags.zip (pre-complied binary file inside) from ctags website.
  • Put ctags.exe in a directory, whose execution path is recognized in Windows (for me: GIT_DIR/usr/bin/).
	Could use `$ echo $PATH` to find out where to put ctags.exe.
  • Now, ctags should work in vim if you use tagbar.

screenshot1

Reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment