From 4b53f1d6d472c0a621d29d194e43c72e54d23ec3 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 17 Oct 2016 23:47:21 +0200 Subject: Allow terminal vim background transparency added an option to keep automatically wrapped lines correctly indented --- vimrc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 418ce26..2af99e3 100644 --- a/vimrc +++ b/vimrc @@ -23,6 +23,7 @@ set winminwidth=30 " (and all other windows " AIRLINE: ===========================================. Plug 'vim-airline/vim-airline' | " beautification of the mode line +set laststatus=2 | " required by AirLine, without status line does not appear until a window split let g:airline_detect_modified = 0 | let g:airline_detect_paste = 0 | let g:airline_exclude_preview = 1 | @@ -125,6 +126,12 @@ colorscheme base16-phd " colorscheme base16-default-dark " colorscheme vividchalk | " finally set which colorscheme to use + +" colorscheme customizations ========================= +" override colorscheme's background color in order to honor the terminals background transparency +hi normal ctermbg=none + + " Shortcut mods =======================================. inoremap "inoremap @@ -168,9 +175,9 @@ set thesaurus+=/home/max/.vim/thesaurus/php.txt set hlsearch | " highlights all search matches (not as performant!) set textwidth=100 | " line length (80 used to be default, but...) set splitbelow | " open new windows below the current one (i find that more intuitive) -set laststatus=2 set norelativenumber set writedelay=0 +set breakindent | " Every wrapped line will continue visually indented if has("multi_byte") set encoding=utf-8 | " we need default utf-8 encoding to use cool chars as line break and so on (see below) @@ -263,12 +270,6 @@ if has("autocmd") endif - - - - - - " if filereadable(expand("~/.vimrc_background")) " let base16colorspace=256 " source ~/.vimrc_background -- cgit v1.2.3