To accomplish this I use the following Python based script: set path=.,$_WINCEROOT/.,$_WINCEROOT/public/,$_WINCEROOT/public/common/oak/inc,$_WINCEROOT/public/common/ddk/inc,$_WINCEROOT/public/common/sdk/inc,$_WINCEROOT/private/cellcore/dtpt/inc set tags=./tags,../tags,../inc/tags function! BuildTagsFromPath() python << EOF import sys import vim paths = vim.eval("&path") # &path gets the option path. pathsSplit = paths.split(",") # prepend original tag list before path. tags = vim.eval("&tags") for path in pathsSplit: tags += "%s/tags," % (path) cmdSetTags = "set tags=%s" % tags vim.command(cmdSetTags) EOF endfunction call BuildTagsFromPath()
Attributes | Values |
---|
rdfs:label
| - Read tag files from all directories in your path
|
rdfs:comment
| - To accomplish this I use the following Python based script: set path=.,$_WINCEROOT/.,$_WINCEROOT/public/,$_WINCEROOT/public/common/oak/inc,$_WINCEROOT/public/common/ddk/inc,$_WINCEROOT/public/common/sdk/inc,$_WINCEROOT/private/cellcore/dtpt/inc set tags=./tags,../tags,../inc/tags function! BuildTagsFromPath() python << EOF import sys import vim paths = vim.eval("&path") # &path gets the option path. pathsSplit = paths.split(",") # prepend original tag list before path. tags = vim.eval("&tags") for path in pathsSplit: tags += "%s/tags," % (path) cmdSetTags = "set tags=%s" % tags vim.command(cmdSetTags) EOF endfunction call BuildTagsFromPath()
|
Version
| |
dbkwik:vim/property/wikiPageUsesTemplate
| |
Previous
| |
Category
| |
Complexity
| |
Created
| |
ID
| |
NEXT
| |
Rating
| |
abstract
| - To accomplish this I use the following Python based script: set path=.,$_WINCEROOT/.,$_WINCEROOT/public/,$_WINCEROOT/public/common/oak/inc,$_WINCEROOT/public/common/ddk/inc,$_WINCEROOT/public/common/sdk/inc,$_WINCEROOT/private/cellcore/dtpt/inc set tags=./tags,../tags,../inc/tags function! BuildTagsFromPath() python << EOF import sys import vim paths = vim.eval("&path") # &path gets the option path. pathsSplit = paths.split(",") # prepend original tag list before path. tags = vim.eval("&tags") for path in pathsSplit: tags += "%s/tags," % (path) cmdSetTags = "set tags=%s" % tags vim.command(cmdSetTags) EOF endfunction call BuildTagsFromPath()
|