How do I get ctrlpbuftag to work?

So, I experimented with Vim, switching from Sublime. I wanted to use a vim function similar to a function ctrl Rin Sublime, which will show me a list of functions in the current document and judge it when I print. In the Sublime code-like browser in Vim, there is an answer to the same question. But I did all the steps mentioned here, including installing the plugin CtrlP, installing and configuring ctags, adding a shortcut to the file .vimrc, but when I use the shortcut, it gives me “NO ENTRIES". "I am editing scala.

+4
source share
1 answer

If this function does not work after installing CtrlP, the following problems may occur:

Missing ctags:

  • Linux: sudo apt-get install exuberant-ctags
  • Mac: brew install ctags
  • Windows:
    • Download CTAGS from sourceforce
    • Add your PATH variable
    • Follow my second decision

CtrlPBufTag is not enabled:

Since it :CtrlPBugTagis considered a plugin, you may need to include it in a file .vimrc:

let g:ctrlp_extensions = ['buffertag']
+7
source

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


All Articles