Added airline support for ViM on NixOS

This commit is contained in:
Serĉanto de Scio 2019-01-18 11:01:48 +10:00
parent 55a12781a0
commit e484449941
No known key found for this signature in database
GPG key ID: B41FA6FF04CE4B93

23
.vimrc
View file

@ -5,17 +5,28 @@ set smartindent
set tabstop=4 set tabstop=4
set shiftwidth=4 set shiftwidth=4
set expandtab set expandtab
set t_Co=256 " use 265 colors in vim
syntax enable syntax enable
colorscheme solarized colorscheme solarized
hi Normal guibg=NONE ctermbg=NONE set t_Co=256 " use 265 colors in vim
" hi Normal guibg=NONE ctermbg=NONE
match ErrorMsg '\s\+$' match ErrorMsg '\s\+$'
set rtp+=/run/current-system/sw/share/vim-plugins/vim-airline
set rtp+=/run/current-system/sw/share/vim-plugins/vim-airline-themes
set rtp+=/run/current-system/sw/share/vim-plugins/neocomplete-vim
let g:airline_powerline_fonts = 1
let g:airline_theme='solarized'
set laststatus=2
call togglebg#map("<F10>")
" Set up the status line so it's colored and always on " Set up the status line so it's colored and always on
set laststatus=2 set laststatus=2
highlight StatusLine cterm=none ctermbg=darkgreen ctermfg=black " highlight StatusLine cterm=none ctermbg=black ctermfg=244
highlight StatusLineNC cterm=none ctermbg=darkgreen ctermfg=black "highlight StatusLineNC cterm=none ctermbg=black ctermfg=244
highlight VertSplit cterm=none ctermbg=darkgreen ctermfg=black "highlight VertSplit cterm=none ctermbg=black ctermfg=244
"highlight LineNr cterm=none ctermbg=black ctermfg=244
" Removes trailing spaces: " Removes trailing spaces:
function! TrimWhiteSpace() function! TrimWhiteSpace()
@ -115,7 +126,7 @@ function! MuttSettings()
set shiftwidth=4 set shiftwidth=4
set expandtab set expandtab
endfunction endfunction
autocmd BufNewFile,BufFilePre,BufRead mutt-* :call MuttSettings() autocmd BufNewFile,BufFilePre,BufRead /tmp/mutt-* :call MuttSettings()
" Settings for my C environment: " Settings for my C environment:
function! CSettings() function! CSettings()