This plugin yanks the absolute path name (FQN) of the current cursor position inside a ruby module/class.
This post is a copy of the README.md at the plugin’s github repository:
I recommend Vundle
Setup the method via your preferred keybinding inside
nmap yf !silent :call YankFQN()<CR>
Then trigger the yanking inside a module.
1 2 3 4 5 6 7 8
if you press
yf (or your custom combination, see above) at
the marked cursor position, the string
will get yanked into the unnamed register (@“).
NOTE: you can yank from any position. If the cursor is on a
end statement, it will still count as being inside the scope.
1 2 3 4 5
If you’re using
you might want to change the target register.
let g:yankfqn_register = '*'
" (unnamed yank register)
If this flag is set to 1, the yanked string will be output as message.
If you think anything’s missing or buggy, please drop me a line or a pull request.
Same license as Vim.