diff options
author | johannst <stoelp@eit.uni-kl.de> | 2018-04-19 10:31:08 +0200 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2018-04-19 10:31:08 +0200 |
commit | 7de4fef9947d63dc12d5f0fde9f19d58f38517b5 (patch) | |
tree | e8f63bb22984bfa14b1521bbf5d91659bf5a6deb | |
parent | 3d703821c18a327b54c5d91c633d9e13877e2301 (diff) | |
download | dotfiles-7de4fef9947d63dc12d5f0fde9f19d58f38517b5.tar.gz dotfiles-7de4fef9947d63dc12d5f0fde9f19d58f38517b5.zip |
vim minor changes in colorscheme and cleanup in statusline
-rwxr-xr-x | vim/colors/johannst.vim | 22 | ||||
-rw-r--r-- | vimrc | 43 |
2 files changed, 29 insertions, 36 deletions
diff --git a/vim/colors/johannst.vim b/vim/colors/johannst.vim index 00bec44..b09b9f8 100755 --- a/vim/colors/johannst.vim +++ b/vim/colors/johannst.vim @@ -11,11 +11,11 @@ if exists("syntax_on") endif hi clear -"{{{ Vim Basic +"{{{ Vim Basic hi Normal ctermfg=253 ctermbg=234 cterm=NONE -hi Search ctermfg=0 ctermbg=11 cterm=NONE -hi IncSearch ctermfg=0 ctermbg=11 cterm=NONE +hi Search ctermfg=198 ctermbg=NONE cterm=underline +hi IncSearch ctermfg=198 ctermbg=NONE cterm=underline hi Folded ctermfg=146 ctermbg=238 cterm=NONE hi FoldColumn ctermfg=122 ctermbg=238 cterm=NONE hi Title ctermfg=230 ctermbg=NONE cterm=bold @@ -25,19 +25,19 @@ hi SpecialKey ctermfg=238 ctermbg=NONE cterm=NONE hi Visual ctermfg=230 ctermbg=238 cterm=NONE hi VertSplit ctermfg=59 ctermbg=238 cterm=NONE hi Directory ctermfg=39 ctermbg=NONE cterm=NONE +hi MatchParen ctermfg=0 ctermbg=82 cterm=NONE "}}} -"{{{ Cursor & LineNumber +"{{{ Cursor & LineNumber "hi Cursor ctermfg=NONE ctermbg=241 cterm=NONE hi LineNr ctermfg=239 ctermbg=234 cterm=NONE hi CursorLineNR ctermfg=255 ctermbg=208 cterm=bold hi CursorLine ctermfg=NONE ctermbg=236 cterm=NONE hi CursorColumn ctermfg=NONE ctermbg=236 cterm=NONE -hi MatchParen ctermfg=208 ctermbg=89 cterm=underline "}}} -"{{{ Tabline +"{{{ Tabline hi TabLine ctermbg=235 ctermfg=244 cterm=none hi TabLineSel ctermbg=208 ctermfg=255 cterm=bold @@ -47,14 +47,14 @@ if exists('g:buftabline_enable') endif "}}} -"{{{ Statusline +"{{{ Statusline "hi StatusLine ctermfg=0 ctermbg=38 cterm=NONE hi StatusLine ctermfg=NONE ctermbg=125 cterm=NONE hi StatusLineNC ctermfg=144 ctermbg=238 cterm=NONE "}}} -"{{{ Diff +"{{{ Diff hi DiffChange ctermfg=10 ctermbg=17 cterm=NONE hi DiffText ctermfg=10 ctermbg=88 cterm=NONE @@ -62,7 +62,7 @@ hi DiffAdd ctermfg=10 ctermbg=17 cterm=NONE hi DiffDelete ctermfg=10 ctermbg=17 cterm=NONE "}}} -"{{{ Popup Menu +"{{{ Popup Menu hi PMenu ctermfg=NONE ctermbg=235 cterm=NONE hi PMenuSel ctermfg=255 ctermbg=208 cterm=NONE @@ -70,7 +70,7 @@ hi PMenuSbar ctermfg=NONE ctermbg=NONE cterm=NONE hi PMenuThumb ctermfg=NONE ctermbg=101 cterm=NONE "}}} -"{{{ Language +"{{{ Language hi Comment ctermfg=144 ctermbg=NONE cterm=NONE hi Label ctermfg=221 ctermbg=NONE cterm=NONE @@ -108,7 +108,7 @@ hi Statement ctermfg=220 ctermbg=NONE cterm=NONE hi Conditional ctermfg=11 ctermbg=NONE cterm=NONE "}}} -"{{{ not classified yet +"{{{ not classified yet "hi Debug ctermfg=194 ctermbg=NONE cterm=NONE "hi WildMenu "hi SignColumn @@ -14,7 +14,7 @@ nnoremap <leader>sv :source ~/.vimrc<CR> "let $VIMHOME='~/.vim' -"{{{ Plugin Management +"{{{ Plugin Management " to install plugins open vim and run :PluginInstall from within vim OR " vim +PluginInstall +qall from cmd line @@ -41,7 +41,7 @@ Plugin 'w0rp/ale' call vundle#end() "}}} -"{{{ Plugin Config +"{{{ Plugin Config let s:gEnabledPlugins = [] function! s:ParseVimrcForEnabledPlugins() @@ -195,7 +195,7 @@ nnoremap <leader>dw :windo diffthis<CR> nnoremap <leader>dn :diffoff!<CR> "}}} -"{{{ Default Keymap Shadow +"{{{ Default Keymap Shadow " lookup word under cursor in man pages nnoremap <S-k> <NOP> @@ -203,14 +203,14 @@ nnoremap <S-k> <NOP> nnoremap <S-j> <NOP> "}}} -"{{{ Basic Movement +"{{{ Basic Movement augroup aug:HelpPageKeyMaps autocmd! autocmd FileType help nnoremap <buffer> <CR> <C-]> augroup end -" ctrl-ae jump to line start/end +" ctrl-ae jump to line start/end nnoremap <C-a> 0 nnoremap <C-e> $ inoremap <C-a> <C-o>0 @@ -226,7 +226,7 @@ cnoremap <C-k> <Up> cnoremap <C-l> <Right> "}}} -"{{{ Folding +"{{{ Folding set foldlevel=0 set foldcolumn=1 @@ -249,7 +249,7 @@ augroup aug:FoldMarkerKeymaps augroup end "}}} -"{{{ Tabwidth +"{{{ Tabwidth "set expandtab " expand tabs to spaces set tabstop=3 " number of columns a tab counts @@ -272,7 +272,7 @@ nnoremap <leader>n :noh<CR> execute "vnoremap <leader>r \"hy:%s/<C-r>h/<C-r>h/gc"repeat('<Left>', 4) "}}} -"{{{ Buffer & Splits +"{{{ Buffer & Splits set hidden " do not unload abandoned buffers noremap <leader>q :bd @@ -302,7 +302,7 @@ nnoremap <C-h> <C-w>h "(deprecated) map <C-h> <C-w>5> "}}} -"{{{ Statusline +"{{{ Statusline set laststatus=2 " always show status line @@ -341,19 +341,12 @@ function! DynamicStatuslineHighlighting() return '' endfunction -function! GetDiffStatus() - if (&diff) - return 'diff' - else - return '' -endfunction - let &statusline='' let &statusline.='%{DynamicStatuslineHighlighting()}' let &statusline.='[%{g:ModeMap[mode()]}]' let &statusline.=' %t' " file name let &statusline.=' {%M%R%H}' " modified/read-only/help-page -let &statusline.=' [%{GetDiffStatus()}]' +let &statusline.='%{&diff==1?" [diff]":""}' let &statusline.=' [%{&ft}]' "filetype let &statusline.='%=' " seperator between left and right alignment @@ -365,7 +358,7 @@ let &statusline.=' [%l/%L -- %c]' " current line/num of lines -- current columen let &statusline.=' (%p%%)' " current line in percent "}}} -"{{{ Indentation +"{{{ Indentation nnoremap <leader>ri mzgg=G`z set autoindent " copy indent from current line when starting a new line @@ -383,7 +376,7 @@ augroup aug:CLangStyle augroup end "}}} -"{{{ Wildmenu +"{{{ Wildmenu " Vim command completion settings set wildmenu " turn on the wild menu @@ -391,7 +384,7 @@ set wildmode=list:longest " <Tab> print list of all matches and complete til set wildignore+=*.o,*.obj,.git,*.pyc,*~ " Ignore these files when completing "}}} -"{{{ Save & Restore +"{{{ Save & Restore augroup aug:AutoSaveLastSession autocmd! @@ -402,7 +395,7 @@ augroup end nnoremap <F2> :execute "source " . $VIMHOME . "/session.last_quit"<CR> "}}} -"{{{ QuickFix +"{{{ QuickFix augroup aug:QuickFixConfig autocmd! @@ -411,7 +404,7 @@ augroup aug:QuickFixConfig augroup end "}}} -"{{{ SCons Integration +"{{{ SCons Integration function! TriggerSCons(...) let l:base_cmd = 'scons' @@ -427,7 +420,7 @@ endfunction command! -nargs=* SCons call TriggerSCons(<f-args>) "}}} -"{{{ Tmux Specific +"{{{ Tmux Specific "" tmux will send xterm-style keys when its xterm-keys option is on "if &term =~ '^screen' @@ -438,14 +431,14 @@ command! -nargs=* SCons call TriggerSCons(<f-args>) "endif "}}} -"{{{ Project Specific vimrc +"{{{ Project Specific vimrc if !empty(glob('.local_vimrc')) source .local_vimrc endif "}}} -"{{{ Sandbox +"{{{ Sandbox let s:sandbox_enable = 1 if s:sandbox_enable |