How to create a list of Vim functions in the quick fix window?

Is there a way to put all the functions defined in the current buffer into a quick fix list? Imagine that the Tlist (from the taglist plugin) opens in the quick fix window.

+4
source share
2 answers
  • Create an expression that returns the list you want. For instance:

     let cmd='exctags -x '.bufname('%')." | awk '{print $4\"|\"$3\"|\",$1}'" 
  • Submit it to cexpr or cgetexpr

     cexpr system(cmd) 
+2
source

An alternative is to use Unite for Vim. It also requires ctags, but offers a list of buffers / jumps, FuzzyFinder as the file is open. With the contour plugin, you have a good list of features. I use it all the time not only to go to the definition of a function, but also to quickly search for arguments.

http://cl.ly/5xok/ss-13042011.png

+3
source

Source: https://habr.com/ru/post/1347681/


All Articles