[关闭]
@woshichuanqilz 2015-11-08T12:29:33.000000Z 字数 1589 阅读 1492

How to use Ctags and taglist for AHK in Vim

AHK Vim


It include two step to solve this problem.

1. Taglist can't show in any file. (for example temp.c)

  • Key 1: I join in the Google Group to ask a question
  • Key 2: A guy remind me to read the help file.
  • Key 3: I follow the help file and find the question lies in the 'space' in the file path.
  • Key 4: I search on the Google and find that it should be deal with the 'shellescape'

I post my vimrc here to help you deal with this problem

  1. let Tlist_Ctags_Cmd = shellescape('D:\Program Files\Vim\vim74\ctags.exe')

And then I get the relative info in the help file 'taglist.txt', and I post the relative info

  1. If you are using MS-Windows, check the value of the TEMP and TMP
  2. environment variables. If these environment variables are set to a path
  3. with space characters in the name, then try using the DOS 8.3 short name
  4. for the path or set them to a path without the space characters in the
  5. name. For example, if the temporary directory name is "C:\Documents and
  6. Settings\xyz\Local Settings\Temp", then try setting the TEMP variable to
  7. the following:
  8. That is try to avoid use the space in the file path.
  9. set TEMP=C:\DOCUMEN~1\xyz\LOCALS~1\Temp

So It's obvious that usually the answer can be find in the help file.

2. Deal with the problem about the taglist can't show the tag symbol

  • Read the ctags help file and the taglist help file
  • Honestly I can't figure out why do the right things now?
  • I paste the vimrc in the vim2ahk vimrc and solve the problem

I think that there is sth wrong with the post in the AutoHotKey forum and I follow the step in the Vim2Ahk post and get the right answer.
It's very important to follow the right answer, cuz there are too many ways to walk into the wrong way, in other words it's difficult to explore the answer by yourself
I post my vimrc below

  1. let tlist_autohotkey_settings = 'autohotkey;k:Hotkeys;s:Hotstrings;l:Label;f:Function;v:Variable;n:note;t:Todo'
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注