Vim background with gnu screen

前端 未结 3 1198
挽巷
挽巷 2020-12-19 06:08

I am having trouble with my colorscheme in vim. When editing a file using a vim session started in GNU screen, the text background is not rendered correctly. In

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-19 06:14

    To make vim, bash, and screen settings work together:

    1) In .bashrc add the following:

    export TERM=xterm-256color
    

    2) In .screenrc add the following:

    altscreen on
    defbce on
    set term=screen-256color
    

提交回复
热议问题