You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,8 @@ By default all tags are stored in a global tags file. When the tags file grows b
68
68
69
69
To avoid this problem you can set `g:easytags_by_filetype` to the path of an existing directory. The easytags plug-in will create separate tags files for each file type in the configured directory. These tags files are automatically registered by the easytags plug-in when the file type of a buffer is set.
70
70
71
+
Note that if you already have a global tags file you can create file type specific tags files from the global tags file using the command `:TagsByFileType`.
72
+
71
73
### The `g:easytags_always_enabled` option
72
74
73
75
By default the plug-in automatically generates and highlights tags when you stop typing for a few seconds (this works using the [CursorHold](http://vimdoc.sourceforge.net/htmldoc/autocmd.html#CursorHold) automatic command). This means that when you edit a file, the dynamic highlighting won't appear until you pause for a moment. If you don't like this you can configure the plug-in to always enable dynamic highlighting:
throw"Please set g:easytags_by_filetype before running :TagsByFileType!"
298
+
endif
299
+
let global_tagsfile =expand(g:easytags_file)
300
+
let disabled_tagsfile = global_tagsfile . '.disabled'
301
+
if!a:undo
302
+
let [headers, entries] =xolox#easytags#read_tagsfile(global_tagsfile)
303
+
calls:save_by_filetype(headers, entries)
304
+
callrename(global_tagsfile, disabled_tagsfile)
305
+
let msg ="Finished copying tags from %s to %s! Note that your old tags file has been renamed to %s instead of deleting it, should you want to restore it."
0 commit comments