diff options
author | Simon Howard | 2009-07-13 00:52:26 +0000 |
---|---|---|
committer | Simon Howard | 2009-07-13 00:52:26 +0000 |
commit | 480a31094b7621dd7d65ec05a6e36964dca99b66 (patch) | |
tree | 11b218d674e828c12981d819b8f2396b680436df /.lvimrc | |
parent | 37db69b86bc5052901e250578e9c3920886d79ff (diff) | |
parent | e66653a8a67f3613344ae4ea30b37403d6ff17cf (diff) | |
download | chocolate-doom-480a31094b7621dd7d65ec05a6e36964dca99b66.tar.gz chocolate-doom-480a31094b7621dd7d65ec05a6e36964dca99b66.tar.bz2 chocolate-doom-480a31094b7621dd7d65ec05a6e36964dca99b66.zip |
Merge from trunk.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1624
Diffstat (limited to '.lvimrc')
-rw-r--r-- | .lvimrc | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -4,3 +4,28 @@ set tabstop=8 set softtabstop=4 set shiftwidth=4 +" Add all tag files to tags path. + +let topdir = findfile("configure.in", ".;") +let topdir = substitute(topdir, "configure.in", "", "") + +" Check tags file in current dir: +set tags+=tags + +" Add tag files in parent directories: +let tagfiles = findfile("tags", ".;", -1) + +" Add tag files for libraries: +call add(tagfiles, topdir . "textscreen/tags") +call add(tagfiles, topdir . "pcsound/tags") + +for tagfile in tagfiles + " Don't go beyond the project top level when adding parent dirs: + if stridx(tagfile, topdir) >= 0 + exec "set tags+=" . tagfile + endif +endfor + +unlet topdir +unlet tagfiles + |