Correct, if you look at colortest.vim, it parses out the fg_on_bg in to the two separate colors and sets ctermfg and ctermbg appropriately. Now that you have a terminal that supports 256 colors, you can use colors that there aren't even names for, by looking up the color number using this perl script: http://www.vim.org/scripts/script.php?script_id=1349
There's also some vimscript that will load a gui-colored colorscheme, convert it to what it thinks is the closest 256-color color, and then write out a new colorscheme. I've had good luck with it in the past for getting a close approximation and then tweaking. CSApprox: http://www.vim.org/scripts/script.php?script_id=2390 The perl script does nothing involving termcap/terminfo to determine if your terminal CAN display > 16 colors, so it'll probably work no matter what in iTerm and give weird blinky text in Terminal.app. Vim uses termcap/terminfo, so if it's not showing 256 colors correctly (though since you mention colortest I'm assuming it does), you might have to play around with that. I can attempt to help you there to do this correctly, involving changing your TERM variable and writing out some terminfo files and dealing with infocmp, or you can just cheat and :set t_Co=256 inside of vim, which is probably easier ;) Also, one last thing: iTerm supports mouse in terminals. You might need to :set mouse=a to get it to work, and I think in the past I've had to do :set ttymouse=xterm2 to get dragging, but I'm not sure the second part is necessary. Given 256 colors and mouse support, I almost never run gui vim anymore. :) On Wed, Oct 14, 2009 at 1:41 PM, jml <[email protected]> wrote: > > OK so one last question. > Now that I am in iTerm, I would like to use the same syntax that I see > in the colortest.vim file such as "white_on_magenta". > > I would think that instead of giving > ctermbg=black ctermfg=white > I could now just use cterm=white_on_black > > But this doesn't work. > What am I doing wrong? > > Thanks, > jml > > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_mac" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
