Hi rail! On Fr, 22 Mär 2013, rail shafigulin wrote:
> On Fri, Mar 22, 2013 at 6:18 PM, Ben Fritz <fritzophre...@gmail.com> wrote: > > > On Friday, March 22, 2013 4:39:14 PM UTC-5, FlashBurn wrote: > > > I have the following code in my _vimrc > > > > > > colorscheme xoria256 > > > hi CursorLine gui=underline guibg=NONE term=underline cterm=underline > > > set cursorline > > > > > > The issue that I'm having is that it doesn't work when vim is reopened > > or the _vimrc is sourced. However if I manually set it using > > > > > > hi CursorLine gui=underline guibg=NONE > > > > > > it starts to work. The default setting of xoria256 is > > > hi CursorLine ctermbg=237 guibg=#3a3a3a cterm=none gui=none > > > > > > > You can check the output of this command to see where the highlight was > > last set: > > > > :verbose hi CursorLine > > > Here is what the output of verbose hi CursorLine > CursorLine xxx term=underline ctermbg=237 guibg=#3a3a3a > Last set from > ~/vimfiles/bundle/colour-sampler-pack/colors/xoria256.vim > > Here is the setting from xoria256.vim > hi CursorLine ctermbg=237 guibg=#3a3a3a cterm=none gui=none > > And here is how it is set in my vimrc > colorscheme xoria256 > " Set the line of with the cursor to be underlined. > hi CursorLine gui=underline guibg=NONE term=underline cterm=underline > " Turn on the highlight of the line with the cursor. > set cursorline > > The output looks like it is a mixture of the downloaded colorscheme and my > own settings. > I run my pathogen plugin before the colorscheme is set. Hm, are you setting the colorscheme later again? Somehow, your settings get overridden. You might want to check starting vim with -V12logfile.txt (see :h -V), immediately quit vim and then inspect the logfile. It should however work to define an autocommand like this: au ColorScheme * hi CursorLine .... or maybe even: au ColorScheme xoria256 hi CursorLine .... But I am not sure, if the colorscheme autocomamnd triggers on the name of a colorscheme though. regards, Christian -- Input - Output - Kaputt! -- -- 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 message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.