0

When I use the command :

vim -c "startinsert" sometextfile

Vim starts with the characters NSERT -- at top. The cursor is placed on N and I can write over the whole thing. If I use space, the character remains. If I save and open the file, the characters are gone. If I run vim without my .vimrc file, vim starts with -- INSERT -- at top (because of the line number gone perhaps).

---------------------------
  1 NSERT --
~
~
~
~
-------------------

OS : macOS High Sierra | version 10.13.3

vim version : version 8.0.642

$TERM = xterm-256color

:echo v:termresponse ( old ) = ^[[>0;95;0c

:echo v:termresponse ( new ) = ^[[>0;95;0c

  • Is the NSERT-- gone when you hit <Ctrl-L>? Please expand your question with info about operating system, Vim version and used terminal. – Ralf May 27 '19 at 6:47
  • @Ralf, no the NSERT -- does not go away upon hitting <Ctrl-L> – Gautam May 27 '19 at 6:54
  • @Gautam What if you add -u NONE ? – dedowsdi May 27 '19 at 7:13
  • @dedowsdi, with -u NONE, it does not have the junk characters. But, my line numbers are also gone. – Gautam May 27 '19 at 7:28
  • 2
    @Gautam vi.stackexchange.com/questions/2003/… – dedowsdi May 27 '19 at 7:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.