junegunn / vim-oblique

DEPRECATED Improved /-search (experimental)
83 stars 7 forks source link

Nvim: blank block always appended to command line cursor #51

Open ghost opened 9 years ago

ghost commented 9 years ago

Hi,

I'm not sure if this is inherently a problem with Nvim, or if oblique relied on a vim only hack which has been removed (or something else), but here's my issue. (from https://github.com/neovim/neovim/pull/1820#issuecomment-74172835):

nvimrc used:

call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'junegunn/vim-pseudocl'
Plug 'junegunn/vim-oblique'
call plug#end()

The issue happens with or without vim-sensible (note the command prompt):

with oblique: with

without: without

The same thing happens in xterm without tmux.

(end of quote) I thought that maybe some color sequence was being passed to stdout, and nvim might be interpreting it differently than vim.

junegunn commented 9 years ago

As it's not reproducible on Vim, it's probably an issue of Neovim which is constantly changing. So I won't look into it for the moment.

By the way, there is a simpler alternative to Oblique you might want to take a look.

https://github.com/pgdouyon/vim-evanesco

ghost commented 9 years ago

As it's not reproducible on Vim, it's probably an issue of Neovim which is constantly changing. So I won't look into it for the moment.

That's fine, but do you mind if I keep this open? Presumably there aren't many plugins that change the appearance of the command/search bar, but regardless this is the only plugin which has the issue.

https://github.com/pgdouyon/vim-evanesco

Thanks for the reference.

junegunn commented 9 years ago

No problem.

blueyed commented 9 years ago

Another issue in this context: using <S-Insert> to copy from the "mouse" clipboard adds an i at the beginning, i.e. pasting "foo" after / will result in a search for "ifoo".

junegunn commented 9 years ago

@blueyed Nice find. Seems like a bug of neovim, it's easily reproducible.

function! s:gets()
  let s = ''
  let c = getchar()
  while 1
    if !c
      break
    endif
    let s .= nr2char(c)
    let c = getchar(0)
  endwhile
  echom s
endfunction
command! Gets call s:gets()
junegunn commented 8 years ago

https://github.com/neovim/neovim/commit/3baba1e7bc6698e6bc9f1d37fce88b30d6274bc9

t_ve option which this plugin uses to hide the original cursor is removed in neovim.

rainerborene commented 8 years ago

ping @tarruda

tarruda commented 8 years ago

t_ve option which this plugin uses to hide the original cursor is removed in neovim.

I'm currently working on this. Soon nvim TUI will have the terminal codes customizable.

blueyed commented 8 years ago

@mreed1 Why did you close it? Is it fixed for you?

ghost commented 8 years ago

@blueyed nah, I was just cleaning up a bunch of issues associated with my account; I'll reopen this one.