On Thursday, December 5, 2013 3:36:37 AM UTC-6, Jacek Czaja wrote:
> Hi,
>
>
> I'm searching for a solution to such a problem. I use CursorLine eg. highliting of line where cursor is. So I have in my .vimrc :
>
>
>
> set cursorline
>
> hi CursorLine ctermbg=blue ctermfg=White term=None cterm=bold
>
>
> And in console Vim I have a nice blue and white highliting of text/line at cursorline. Problem is that if I make a session eg. mksesssion mysession.vim
>
>
>
> Then after I quite vim and I want to load my session back I still have cursorline highlited, but settings of cursorline are back to defulat one. So my question is how can I have my session storiing also my settings for the way cursorline should be highlighted. eg.
>
>
> This entry seems to be forgotten when loading mysession :
> hi CursorLine ctermbg=blue ctermfg=White term=None cterm=bold
>
>
> All the best,
>
>
>
> Jacek
Sessions are not able to restore highlight settings. To store the highlight settings you should put them in your colorscheme file, in your .vimrc after loading the colorscheme, or in a ColorScheme autocmd. Alternatively, you could manually edit your session file, but that won't help when you create a new session with :mksession.
--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment