How to get the list of all installed color schemes in Vim?

前端 未结 11 970

Is there a way to get a list of all installed color schemes in Vim? That would make very easy to select one without looking at the .vim directory.

11条回答
  •  不要未来只要你来
    2021-01-29 17:44

    A great solution, and my thanks to your contributors. For years I've been struggling with a totally crappy color scheme -- using SSH under Windows Vista to a Redhat system, terminal type xterm. The editor would come up with a black background and weird colors for various keywords. Worse -- that weird color scheme sticks in the xterm terminal after leaving Vim.

    Really confusing.

    Also, Backspace failed during an insert mode, which was nasty to remember -- though Delete did the same thing.

    The cure --

    1. In the SSH monitor, select Edit/Settings.

      a. Choose Profile Settings/Colors

      b. check 'enable ANSI colors'

      c. The standard Text colors are probably OK

    2. Add these lines to $HOME/.vimrc:

      colorscheme default

      if &term == "xterm"

      set t_kb=^H

      fixdel

      endif

    3. NOTE: the ^H MUST be typed as ctrl-V ctrl-H. Seems peculiar, but this seems to work.

提交回复
热议问题