Menu
  • HOME
  • TAGS

Ctags path in vim is different from the shell

vim,path,ctags

When you do :!command or :call system('command') Vim starts a new subshell according to the values of 'shell' and a bunch of other options listed under :help 'shell'. The 'shellcmdflag' option is important because it usually tells your shell how to start (interactive or not, login or not) which usually...

Vim and ctags - select appropriate tag

vim,ctags

For all the pesimistic answers - there's a solution. A Vim plugin that takes care of the EXACT problem I've faced - a SmartTag plugin. https://github.com/MarcWeber/SmartTag However, it doesn't work out of the box since you need to patch vim so you could replace tagfunc (function that is responsible for...

Efficient non-interactive use of vim

c,vim,ctags,non-interactive

This sounds like silent batch mode (:help -s-ex) could work for your use case. Else, you can't get around full automation (with some of the downsides that you describe). Silent Batch Mode For very simple text processing (i.e. using Vim like an enhanced 'sed' or 'awk', maybe just benefitting from...

set tags=tags in gvimrc not working, unless set it explicitly

vim,ctags

You can check the actual effective value (after starting GVIM) via :verbose set tags? The option might have been overwritten by a later :set command, or a plugin. Even if you only use GVIM, it's recommended to put the general settings into ~/.vimrc (which is also sourced in GVIM), and...

How to setup Ctags for Sublime Text 3

ruby-on-rails,sublimetext,sublimetext3,ctags

/usr/local/bin may be in your shell's $PATH, but it is not getting picked up by Sublime. To fix this, edit ~/Library/Application Support/Sublime Text 3/Packages/User/CTags.sublime-settings and change the "command" setting to "/usr/local/bin/ctags_for_ruby". Also, unless you are using the system Ruby in /usr/bin, you might want to edit the first line of...

Check ctags set in vim

vim,ctags

You can query any vim option value by appending a question mark after its name like so: :set tags? this works too :set tags If you want to list all the loaded tags: :tselect ...

clojure and ctags, catching def* forms

clojure,ctags,exuberant-ctags

def* would match things like defffffff. In a regex, the star does not mean match anything. It means match the previous pattern any number of times. In your case, the previous pattern is f. Try def[a-z]* to match def followed by any combination of lowercase letters.

Incorrect ctags called from OS X command line

osx,bash,path,osx-mavericks,ctags

You can't prevent the shell from caching the location of commands; this is generally done for performance reasons. However, you can force the shell to refresh this cache on demand. With bash, the hash command can be used to manipulate this command cache. Running: hash mycommand Will cause the shell...

Copy vim ctags and key mapping to and

c,linux,vim,ctags,cscope

It should be : nnoremap <C-q> <C-]> nnoremap <C-a> <C-t> However I would discourage these mappings because they would cause issues. <C-a> in vim is used to increment the number under the cursor by 1, <C-x> similarly is for decrementing a number under the cursor by 1. ...

How to use Ctags to list all the references of a symbol(tag) in vim?

vim,ctags

The ctags tool only collects and stores the definitions of symbols. To find all references, you can use the cscope integration into Vim (:help cscope), but note that cscope supports far fewer programming languages than ctags. Alternatively, a poor man's substitute would be the built-in :grep / :vimgrep commands (with...

why I can't locate “_Alloc_traits” in STL source files with vim and ctags?

ctags

Unfortunately the development of Exuberant Ctags is stagnant. I would advise you to try the version available here. If the tag you're looking for is still not created please create an issue including the code where _alloc_traits is defined and a fixed update will very likely be quickly released. Note:...

How to handle multiple classes in one file with ctags and tag list

vim,ctags,vim-plugin,taglist

Yes, that's indeed how the Taglist plugin works. You can try the alternative Tagbar - Display tags of the current file ordered by scope plugin. This separates the members of the individual classes, but only shows the tags of the current (single) file, not an accumulated list like Taglist.

How to run vim commands/scripts from project root?

vim,ctags

Avoid the idea of "changing the working directory" or distinguishing between "working directory and project root", because almost no tool is prepared to properly handle those concepts. The only tools that do (e.g. git) are those that don't care about the current directory to begin with. Otherwise, it's madness to...

How to set window title from vim in tmux window

vim,tmux,ctags,cscope

The issue was because $TERM in bash is xterm whereas inside tmux $TERM is screen. I updated my .vimrc to select the correct term. if &term == "screen" set t_ts=^[k set t_fs=^[\ endif if &term == "screen" || &term == "xterm" set title endif To get the escape sequence ^[...

Ctags like function code search for javascript with Nodeclipse

javascript,ctags,nodeclipse

With tern (your project has .tern-project) when you mouse over Router() you should see Origin that is click-able. read more https://github.com/angelozerr/tern.java/wiki/New-and-Noteworthy-0.7.0 Nodeclipse main code https://github.com/nodeclipse/nodeclipse-1/ Tern.java https://github.com/angelozerr/tern.java Raise issues, and be ready to collaborate....