Created
          June 18, 2012 19:54 
        
      - 
      
- 
        Save sxtxixtxcxh/2950363 to your computer and use it in GitHub Desktop. 
    vimrc.local
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function! InsertStatuslineColor(mode) | |
| if a:mode == 'i' | |
| hi statusline guibg=#fbefeb guifg=#bf542f | |
| elseif a:mode == 'r' | |
| hi statusline guibg=#faf6e8 guifg=#dab826 | |
| else | |
| hi statusline guibg=#e3f4ff guifg=#417598 | |
| endif | |
| endfunction | |
| au InsertEnter * call InsertStatuslineColor(v:insertmode) | |
| au InsertLeave * hi statusline guibg=#e3f4ff guifg=#417598 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment