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

前端 未结 11 1044

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:56

    i know i am late for this answer but the correct answer seems to be

    See :help getcompletion():

    :echo getcompletion('', 'color')
    

    which you can assign to a variable:

    :let foo = getcompletion('', 'color')
    

    or use in an expression register:

    :put=getcompletion('', 'color')
    

    This is not my answer, this solution is provided by u/romainl in this post on reddit.

提交回复
热议问题