User Tools

Site Tools


software:vim_studio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
software:vim_studio [2024/10/25 15:37] – created solarsoftware:vim_studio [2024/10/25 15:59] (current) – [Setting up ctags] solar
Line 41: Line 41:
 In ''$VIM/vimrc'', set ''compiler msbuild''. (There are [[https://stackoverflow.com/questions/77984411/set-compiler-option-from-vimrc|more elegant ways]] to set this option for only C++ files. But that means you have to actually go to C++ mode (e.g. by opening a C++ file) before you can call '':make'', and I didn't want that. In ''$VIM/vimrc'', set ''compiler msbuild''. (There are [[https://stackoverflow.com/questions/77984411/set-compiler-option-from-vimrc|more elegant ways]] to set this option for only C++ files. But that means you have to actually go to C++ mode (e.g. by opening a C++ file) before you can call '':make'', and I didn't want that.
  
 +===== Setting up ctags =====
 +
 +Go to the top level directory of your solution, and run:
 +
 +<code>
 +ctags -R --c++-kinds=+p --fields=+iaS --extras=+q --exclude=.git --exclude=.svn --exclude=.hydra --exclude=.vs --exclude=bin --exclude=obj
 +</code>
 +
 +This will take a while, especially on large projects.
 +
 +===== References =====
 +
 +* [[https://kulkarniamit.github.io/whatwhyhow/howto/use-vim-ctags.html|Use vim with ctags]]
  
software/vim_studio.1729863446.txt.gz · Last modified: 2024/10/25 15:37 by solar

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki