On 13:35 Fri 31 Jan , Егор wrote:
> In .vimrc I want to check if colorscheme COL1 exists, use it, else use COL2?
That's quite simple:
try
colo COL1
catch /E185:/
colo COL2
endtry
Another approach is to check if the colorscheme file is in place:
if !empty(globpath(&rtp, 'colors/COL1.v
In .vimrc I want to check if colorscheme COL1 exists, use it, else use COL2?
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this messag