Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add g:easytags_suppress_ctags_warning option

When set and != 0 this will suppress the ctags warning on startup.
  • Loading branch information...
commit 6e279a38a9caa946251502f5d630d9c45b095689 1 parent 29fded2
@blueyed blueyed authored committed
Showing with 11 additions and 2 deletions.
  1. +6 −0 README.md
  2. +5 −2 plugin/easytags.vim
View
6 README.md
@@ -98,6 +98,12 @@ UNIX has [symbolic links](http://en.wikipedia.org/wiki/Symbolic_link) and [hard
:let g:easytags_resolve_links = 1
+### The `g:easytags_suppress_ctags_warning` option
+
+If this is set and not false, it will suppress the warning on startup if ctags is not found or not recent enough.
+
+ :let g:easytags_suppress_ctags_warning = 1
+
### How to customize the highlighting colors?
The easytags plug-in defines new highlighting groups for dynamically highlighted tags. These groups are linked to Vim's default groups so that they're colored out of the box, but if you want you can change the styles. To do so use a `highlight` command such as the ones given a few paragraphs back. Of course you'll need to change the group name. Here are the group names used by the easytags plug-in:
View
7 plugin/easytags.vim
@@ -1,10 +1,10 @@
" Vim plug-in
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: March 15, 2011
+" Last Change: March 19, 2011
" URL: http://peterodding.com/code/vim/easytags/
" Requires: Exuberant Ctags (http://ctags.sf.net)
" License: MIT
-" Version: 2.2
+" Version: 2.2.1
" Support for automatic update using the GLVS plug-in.
" GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip
@@ -100,6 +100,9 @@ function! s:VersionToNumber(s)
endfunction
if !s:InitEasyTags(55)
+ if exists('g:easytags_suppress_ctags_warning') && g:easytags_suppress_ctags_warning
+ finish
+ endif
if !exists('g:easytags_ctags_version') || empty(g:easytags_ctags_version)
let s:msg = "%s: Plug-in not loaded because Exuberant Ctags isn't installed!"
if executable('apt-get')

0 comments on commit 6e279a3

Please sign in to comment.
Something went wrong with that request. Please try again.