From 49c7cf94d6ed3d265a4cd1b4e027ff40e35c1ff0 Mon Sep 17 00:00:00 2001 From: Erik Cowley Date: Sun, 13 Aug 2023 17:08:24 -0400 Subject: [PATCH] Don't explicitly read .ctags in vim wrapper --- vim.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/vim.py b/vim.py index b65b29c..e8f065f 100755 --- a/vim.py +++ b/vim.py @@ -28,18 +28,7 @@ if len(sys.argv) >= 2: try: if os.path.exists(TAGS_FILE_PATH): os.rename(TAGS_FILE_PATH, TAGS_FILE_PATH + ".bak") - if os.path.exists(DOT_CTAGS_PATH): - with open(DOT_CTAGS_PATH, "r") as f: - ctags_text = f.read() - else: - print("Warning: .ctags not found!", file=sys.stderr) - ctags_text = "" ctags_cmd = [CTAGS_PATH] - for line in ctags_text.split("\n"): - line = line.strip() - if not line: - continue - ctags_cmd.append(line) proc = subprocess.Popen( ctags_cmd, stdout=subprocess.PIPE,