Open lambdalisue opened 9 years ago
FYI, I cannot reproduce this on a recent neovim
Yes, it is well known problem. It is hard to fix...
Can't you just emulate the behaviour of backspace? I could successfully show manpage with removing ^H
and character before the ^H
with this code in my plugin
The code didn't show ^H
in github... The correct one would be
function! s:remove_backspaces() abort " {{{
let saved_pos = getpos('.')
:%s/.^H//ge
keepjump call setpos('.', saved_pos)
endfunction " }}}
^H
is typed as Ctrl-v h
so Copy & Paste won't work.
@lambdalisue Pull request is wellcome.
Can't you just emulate the behaviour of backspace? I could successfully show manpage with removing ^H and character before the ^H with this code in my plugin
The emulation code is already available in s:control.delete_backward_char()
.
@lambdalisue Pull request is wellcome.
:+1:
The emulation code is already available in s:control.delete_backward_char().
Hum...
Minimum vimrc
Procedure
vim -u ~/vimrc.min
:VimShell
man git-init
Result
vim version