We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cfa605 commit 5f02fbcCopy full SHA for 5f02fbc
ftplugin/ruby.vim
@@ -351,7 +351,13 @@ function! RubyCursorIdentifier() abort
351
endfunction
352
353
function! RubyCursorFile() abort
354
- let cfile = expand('<cfile>')
+ let isfname = &isfname
355
+ try
356
+ set isfname+=:
357
+ let cfile = expand('<cfile>')
358
+ finally
359
360
+ endtry
361
let pre = matchstr(strpart(getline('.'), 0, col('.')-1), '.*\f\@<!')
362
let post = matchstr(strpart(getline('.'), col('.')), '\f\@!.*')
363
let ext = getline('.') =~# '^\s*\%(require\|autoload\)\>' ? '.rb' : ''
0 commit comments