Skip to content
This repository
Browse code

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
Daniel Hahler authored March 19, 2011 xolox committed March 19, 2011
6  README.md
Source Rendered
@@ -98,6 +98,12 @@ UNIX has [symbolic links](http://en.wikipedia.org/wiki/Symbolic_link) and [hard
98 98
 
99 99
     :let g:easytags_resolve_links = 1
100 100
 
  101
+### The `g:easytags_suppress_ctags_warning` option
  102
+
  103
+If this is set and not false, it will suppress the warning on startup if ctags is not found or not recent enough.
  104
+
  105
+    :let g:easytags_suppress_ctags_warning = 1
  106
+
101 107
 ### How to customize the highlighting colors?
102 108
 
103 109
 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:
7  plugin/easytags.vim
... ...
@@ -1,10 +1,10 @@
1 1
 " Vim plug-in
2 2
 " Author: Peter Odding <peter@peterodding.com>
3  
-" Last Change: March 15, 2011
  3
+" Last Change: March 19, 2011
4 4
 " URL: http://peterodding.com/code/vim/easytags/
5 5
 " Requires: Exuberant Ctags (http://ctags.sf.net)
6 6
 " License: MIT
7  
-" Version: 2.2
  7
+" Version: 2.2.1
8 8
 
9 9
 " Support for automatic update using the GLVS plug-in.
10 10
 " GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip
@@ -100,6 +100,9 @@ function! s:VersionToNumber(s)
100 100
 endfunction
101 101
 
102 102
 if !s:InitEasyTags(55)
  103
+  if exists('g:easytags_suppress_ctags_warning') && g:easytags_suppress_ctags_warning
  104
+    finish
  105
+  endif
103 106
   if !exists('g:easytags_ctags_version') || empty(g:easytags_ctags_version)
104 107
     let s:msg = "%s: Plug-in not loaded because Exuberant Ctags isn't installed!"
105 108
     if executable('apt-get')

0 notes on commit 6e279a3

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