Why is vim starting in delete mode?

前端 未结 1 416
逝去的感伤
逝去的感伤 2020-12-22 00:07

As stated in the question, my vim starts out in delete mode. If I open a file and hit j to start navigating, that\'ll delete the first line.

I\'ve isol

相关标签:
1条回答
  • 2020-12-22 00:30

    If you run this command in terminal:

    $ vim file.txt -c 'nnoremap <silent> <esc> :noh'
    

    It'll show this at the bottom:

    :noh[>1;3201;0c
    

    vim enters change-mode somehow.


    You can change <esc> to <F5>(or other keys). If you use gvim, there's no problem. It's caused by terminal special key escaping.

    0 讨论(0)
提交回复
热议问题