How to make vi redraw screen?

前端 未结 3 1235
挽巷
挽巷 2020-12-12 13:37

When I use

git commit --amend

It will enter into a vi window to let me input comments for commit, the problem is the vi windows will show

相关标签:
3条回答
  • 2020-12-12 13:45

    In Vi both of these are redraw:

    • ^R ( does not work with VT100 type terminals )
    • ^L ( does not work with Televideo terminals )

    From http://www.cs.rit.edu/~cslab/vi.html#A1.4 (dead link; see archive)

    As noted in the comments Vim now uses ^R for redo and ^L alone for redraw.

    0 讨论(0)
  • 2020-12-12 13:59

    To force a screen refresh

    :redraw!
    
    0 讨论(0)
  • 2020-12-12 14:00

    I've been using ctrl+L for such purposes for 35 years now, what's wrong with it?

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