Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pbrisbin/vim-alt-ctags
Alternative ctags plugin for vim
https://github.com/pbrisbin/vim-alt-ctags
Last synced: 10 days ago
JSON representation
Alternative ctags plugin for vim
- Host: GitHub
- URL: https://github.com/pbrisbin/vim-alt-ctags
- Owner: pbrisbin
- Created: 2013-03-06T13:54:12.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-31T22:22:33.000Z (over 10 years ago)
- Last Synced: 2024-11-09T07:47:28.147Z (2 months ago)
- Language: VimL
- Size: 183 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Alt Ctags
An alternative ctags plugin for vim. Automatically runs ctags
asynchronously upon opening any git-controlled file.## Installation
1. Use [Vundle][]
2. Add `Plugin "pbrisbin/vim-alt-ctags"`[vundle]: https://github.com/gmarik/Vundle.vim
## Options
| Setting | Default value | Notes
| --- | --- | ---
| **g:alt_ctags_loaded** | unset | Setting this value prevents alt-ctags from loading at all
| **g:ctags_command** | `ctags -f '%f' -R` | `%f` represents the output file
| **g:ctags_file** | `tags` |
| **g:ctags_excludes** | `['~']` | Ctags will not be run in these directories
| **b:ctags_command** | unset | Buffer-specific override## Notes
The `%f` in the ctags commands is required because we actually generate
to a temporary file then move it into place. This prevents intermittent
errors if vim attempts to access the file while it's being generated.## Examples
**ftplugin/ruby.vim**
~~~ { .vim }
if isdirectory('app')
" probably rails
let b:ctags_command = "ctags -f '%f' -R --exclude='*.js' --langmap='ruby:+.rake.builder.rjs' --languages=-javascript app lib vendor"
else
" typical ruby project
let b:ctags_command = "ctags -f '%f' -R lib"
endif
~~~**ftplugin/haskell.vim**
~~~ { .vim }
let b:ctags_command = 'echo ":ctags %f" | ghci -v0 main.hs'
~~~