Essential code-like browser in Vim

Sublime code has a Super-R shortcut that opens a method browser listing all methods in the current class (Ruby). Is there a plugin to get similar functionality in Vim?

"/ def" or "m" "only works if you are familiar with the class and know which method you want to switch to, whereas Super + R works only to learn the class.

+5
source share
3 answers

TagList plugin is another (very popular) option. There are tons of others .

FYI, /def m] Sublime Text Ctrl + R. :tag foo, , .

, CtrlP , Sublime Text Ctrl + R: :CtrlpBufTag, .

tags, Exuberant Ctags . , Vim.

+7

https://github.com/fatih/subvim

cmd+r " ". genarete - . , ctags, . , Go, Coffeescript, Objective-C .. .

, , (, ). , :

  • cmd + p → -
  • cmd + t
  • cmd + r
  • cmd + k
  • cmd + /
  • cmd + [ → indent
  • cmd + ] → unindent
  • cmd + <number> → 1, 2,...
  • cmd + alt + left
  • cmd + alt + right → previos
  • cmd + z
  • cmd + shift + z → redo
  • cmd + s
  • cmd + w
  • cmd + f

, , .

+3

The tagbar plugin works great with Ruby files. This may not be exactly the same as Sublime Super-R, but it gives you a quick and easy way to learn the class.

+2
source

All Articles