From 5f3ccd0dcada92e2ab06fbf6215b3f5a1ee0ac34 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 26 Jul 2015 18:17:27 +0200 Subject: original configuration from monochrome with custom color-scheme maxvb6 --- .gitmodules | 3 + autoload/pathogen.vim | 1 + colors/maxvb6.vim | 138 +++++++++++ vim-pathogen | 1 + vimrc | 622 ++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 765 insertions(+) create mode 100644 .gitmodules create mode 120000 autoload/pathogen.vim create mode 100644 colors/maxvb6.vim create mode 160000 vim-pathogen create mode 100644 vimrc diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8d5d904 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vim-pathogen"] + path = vim-pathogen + url = https://github.com/tpope/vim-pathogen.git diff --git a/autoload/pathogen.vim b/autoload/pathogen.vim new file mode 120000 index 0000000..9a7227e --- /dev/null +++ b/autoload/pathogen.vim @@ -0,0 +1 @@ +../vim-pathogen/autoload/pathogen.vim \ No newline at end of file diff --git a/colors/maxvb6.vim b/colors/maxvb6.vim new file mode 100644 index 0000000..98d149c --- /dev/null +++ b/colors/maxvb6.vim @@ -0,0 +1,138 @@ +" color theme for vim +" Maintainer: Max Christian Pohle +" Last Change: 11.09.2014 +" Web: http://max.entwicklerseite.de + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="maxvb6" + + +"set guifont=Liberation\ Mono\ Normal\ 14 +set guifont=Meslo\ LG\ S\ DZ\ for\ Powerline\ 14 + + +set number +set hls + +highlight Menu gui=none cterm=none term=none guibg=white ctermbg=white guifg=black ctermfg=black +highlight Scrollbar gui=none cterm=none term=none guibg=white ctermbg=white guifg=black ctermfg=black +highlight Tooltip gui=none cterm=none term=none guibg=yellow ctermbg=yellow guifg=black ctermfg=black + +highlight Normal gui=none cterm=none term=none guibg=white ctermbg=white guifg=black ctermfg=black +highlight! link NonText Normal + +highlight Statement gui=bold cterm=bold term=bold guibg=white ctermbg=white guifg=#0000ff ctermfg=21 +highlight! link Boolean Statement +highlight! link Identifier Statement + +highlight Type gui=bold cterm=bold term=bold guibg=white ctermbg=white guifg=DarkBlue ctermfg=darkblue + +highlight Constant gui=none cterm=none term=none guibg=white ctermbg=white guifg=brown ctermfg=brown +highlight! link String Constant +highlight! link Number Constant + +highlight Comment gui=none cterm=none term=none guibg=white ctermbg=white guifg=DarkGreen ctermfg=DarkGreen +highlight! link PreProc Comment + +highlight StatusLine gui=bold cterm=bold term=bold guibg=lightgray ctermbg=lightgray guifg=darkgray ctermfg=darkgrey +highlight! link StatusLineNC StatusLine + +highlight LineNr gui=none cterm=none term=none guibg=lightgray ctermbg=lightgray guifg=black ctermfg=black +highlight CursorLine gui=none cterm=none term=none guibg=lightgray ctermbg=lightgray +" highlight! link CursorLine LineNr +" highlight! link CursorColumn LineNr +" highlight! link ColorColumn LineNr + +" Cursor the character under the cursor +highlight Cursor gui=inverse cterm=inverse term=inverse guibg=lightgray ctermbg=lightgray guifg=black ctermfg=black +highlight iCursor gui=underline cterm=underline term=underline +highlight! link CursorLineNr Cursor +highlight! link CursorIM Cursor +highlight! link Visual Cursor +highlight! link VirualNOS Cursor +" highlight! link MatchParen LineNr +highlight MatchParen guibg=yellow ctermbg=yellow + +" WildMenu current match in 'wildmenu' completion +" Pmenu Popup menu: normal item. +" PmenuSel Popup menu: selected item. +" PmenuSbar Popup menu: scrollbar. +" PmenuThumb Popup menu: Thumb of the scrollbar. +highlight! link WildMenu Todo +highlight! link Popup LineNr +highlight! link PMenu Popup +highlight! link PMenuSel CursorLineNr +highlight! link PMenuSbar CursorLineNr +highlight! link PMenuThumb CursorLineNr + + +" Windows +highlight Title gui=bold cterm=bold term=bold guibg=lightgray ctermbg=lightgray guifg=darkgray ctermfg=darkgray +highlight! link VertSplit Title +highlight! link StatusLine Title +highlight! link StatusLineNC Title +highlight! link TabLine Title +highlight! link TabLineFill TabLine +highlight! link TabLineSel TabLine +highlight TabLineSel gui=inverse cterm=inverse term=inverse + +highlight cParen gui=none cterm=none term=none guibg=white ctermbg=white guifg=orange ctermfg=brown +highlight cBlock gui=none cterm=none term=none guibg=white ctermbg=cyan guifg=orange ctermfg=brown +highlight vimParenSep gui=none cterm=none term=none guibg=white ctermbg=white guifg=orange ctermfg=brown + +highlight Special gui=bold cterm=bold term=bold guibg=white ctermbg=white guifg=black ctermfg=178 +highlight! link SpecialKey Special + +highlight Todo gui=none cterm=none term=none guibg=yellow ctermbg=yellow guifg=black ctermfg=black +highlight! link ModeMsg Todo +highlight! link MoreMsg Todo +highlight! link ErrorMsg Todo +highlight! link Conceal Todo +highlight! link Directory Todo + +highlight Question gui=bold cterm=bold term=bold guibg=white ctermbg=white guifg=black ctermfg=black +highlight! link WarningMsg Question + +highlight SpellBad gui=underline cterm=underline term=underline +highlight! link SpellCap SpellBad +highlight! link SpellLocal Todo +highlight! link SpellRare Todo +" *hl-Conceal* +" *hl-DiffAdd* +" DiffAdd diff mode: Added line |diff.txt| +" *hl-DiffChange* +" DiffChange diff mode: Changed line |diff.txt| +" *hl-DiffDelete* +" DiffDelete diff mode: Deleted line |diff.txt| +" *hl-DiffText* +" DiffText diff mode: Changed text within a changed line |diff.txt| +" *hl-ErrorMsg* +" Folded line used for closed folds +" *hl-FoldColumn* +" FoldColumn 'foldcolumn' +" *hl-SignColumn* +" SignColumn column where |signs| are displayed +" *hl-IncSearch* +" IncSearch 'incsearch' highlighting; also used for the text replaced with +" ":s///c" +" *hl-LineNr* +" MatchParen The character under the cursor or just before it, if it +" is a paired bracket, and its match. |pi_paren.txt| +" +" *hl-ModeMsg* +" *hl-NonText* +" *hl-Search* +" Search Last search pattern highlighting (see 'hlsearch'). +" Also used for highlighting the current line in the quickfix +" window and similar items that need to stand out. +" *hl-SpecialKey* +" to show unprintable characters in the text, 'listchars'. +" Generally: text that is displayed differently from what it +" really is. +" *hl-SpellBad* + + diff --git a/vim-pathogen b/vim-pathogen new file mode 160000 index 0000000..b9fb0df --- /dev/null +++ b/vim-pathogen @@ -0,0 +1 @@ +Subproject commit b9fb0dfd811004010f5f6903edef42d6004ebea2 diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..ea96df4 --- /dev/null +++ b/vimrc @@ -0,0 +1,622 @@ +call pathogen#infect() +" Pathogen + +filetype plugin indent on +set omnifunc=syntaxcomplete#Complete + +" conceal displays LaTeX formulars inline with UTF8 +set conceallevel=0 " 1,2 to enable it +set concealcursor= + +set linebreak + +"set wrap +set nowrap + +set noswapfile +"set noundofile +"set nobackup +"set nowritebackup +set backupdir=~/.vim/temp +set directory=~/.vim/temp +set undodir=~/.vim/temp + +" [code completion] +set completeopt=longest,menuone + +" [spell checker] +"set spell " enable spell checking +set spelllang=en,de + +set guifont=DejaVu\ Sans\ Mono\ bold\ 11 +"set guifont=Liberation\ Mono\ for\ Powerline\ 11 + + + +" [Kopieren und Einfuegen] +" verwendet das x-window-clipboard <3 +set clipboard=unnamedplus +"set clipboard=autoselectplus + + +" [SUCHEN] +" When 'ignorecase' and 'smartcase' are both on, if a pattern contains an uppercase letter, it is case sensitive, otherwise, it is not. For example, /The would find only "The", while /the would find "the" or "The" etc. +set ignorecase +set smartcase + +" [VIEW] +syntax on + + +" machen, dass der befehl wie z.B. " a p fuer register a +set showcmd +set number + +set guioptions+=m "show menu bar +set guioptions-=T "remove toolbar +set guioptions+=r "show right-hand scroll bar +set guioptions-=c "use console dialogs instead of popups +set guioptions+=a "autoselect: copy&paste using middleclick +set guioptions+=e "add tab pages +set guioptions+=p "use gui pointer callback for x11 + + +" ohne den naechsten eintrag verschwindet die powerline manchmal... +set laststatus=2 + +" set width for indentation +"set tabstop=2 +"set softtabstop=2 +"set shiftwidth=2 +" replace tabstop by space +"set expandtab + +" same in short... +set ts=2 sts=2 sw=2 expandtab + + +let $PAGER='' + +"set =^[[1;2A =^[[1;2B =^[[1;2C =^[[1;2D +"set =^[[24~ +"map +"nnoremap :test +"set =^[9;0011 +" map + +" q: ist der befehlseditor, damit kann man befehle kopieren in den textblock" +" q/ ist die history fuer die letzten suchen +" +" au=auto command, vimenter=event, *=filetype, NERDTree=command +" au vimenter * NERDTree + +"nnoremap :tabnext +"nnoremap :tabpreviews + +"nnoremap :bnext +"nnoremap :bprevious + +"nnoremap +"nnoremap +" +nnoremap :tabnext +nnoremap :tabprevious +" do not display full path as tabname +set guitablabel=%t + +"nnoremap :bnext +"nnoremap :bprevious + +"nnoremap :call s:LaunchCompletion() +"inoremap +nnoremap +"inoremap +inoremap +"inoremap +" open omni completion menu closing previous if open and opening new menu without changing the text +" +" simulate CTRL+C +vnoremap y +"vnoremap d +"noremap gP " interfers with VISUAL BLOCK mode + +" activate visual mode in normal mode +"map V +":map V +" these are mapped in visual mode +"map k +"map j +" increase/decrease indent in visual mode by tab and shift-tab +vmap >gv +vmap OA k +vmap OB j +vmap OC l +vmap OD h +" map shift-right to visually select and so on +nnoremap El +nnoremap vl +nnoremap vj +nnoremap vk +nnoremap vj + +" quickfix list (lists errors and warnings) +" nnoremap :cw +nnoremap :call ToggleQuickfixList() + + +"nnoremap :MBEbf +"nnoremap :MBEbb +nnoremap w +nnoremap W + + +" nnoremap :q +noremap! :w + +"nnoremap :PREVCOLOR +nnoremap :NEXTCOLOR + + +nnoremap ^ +vmap ^ + +nnoremap $ +vmap $ + +nnoremap \ + +" nnoremap :NERDTreeToggle +nnoremap :browse e +let NERDTreeShowHidden=1 +let NERDTreeQuiToNopen=1 +let NERDChristmasTree=1 +let NERDTreeMinimalUI=1 +let NERDTreeWinSize = 40 +let NERDTreeMapToggleHidden='\h' + +" -------------------------------------------------------------------- +let g:airline_left_sep = '▶' +let g:airline_right_sep = '◀' +"let g:airline_theme = 'powerlineish' +"let g:airline_theme = 'tomorrow' +let g:airline_theme = 'light' +let g:airline_powerline_fonts = 1 +if !exists('g:airline_symbols') + let g:airline_symbols = {} +endif +let g:airline_symbols.space = "\ua0" + + +let g:miniBufExplAutoStart = 1 +"let g:miniBufExplVSplit = 20 " column width in chars +"let g:miniBufExplBRSplit = 1 " Put new window below +let g:miniBufExplShowBufNumbers = 0 +let g:miniBufExplUseSingleClick = 1 +let g:miniBufExplCycleArround = 1 + let g:miniBufExplMapWindowNavVim = 1 + let g:miniBufExplMapWindowNavArrows = 1 + let g:miniBufExplMapCTabSwitchBufs = 1 + let g:miniBufExplModSelTarget = 1 +" MiniBufExpl Colors +hi MBENormal guifg=fg guibg=bg +hi MBEChanged guifg=red guibg=bg +hi MBEVisibleNormal guifg=bg guibg=fg +hi MBEVisibleChanged guifg=bg guibg=FG +hi MBEVisibleActiveNormal guifg=bg guibg=fg +hi MBEVisibleActiveChanged guifg=bg guibg=fg + + +if v:version >= 700 + au BufLeave * let b:winview = winsaveview() + au BufEnter * if(exists('b:winview')) | call winrestview(b:winview) | endif +endif + +" function! PlaySound() +" silent! exec '!play ~/.vim/support/tape.aiff &' +" endfunction +"autocmd CursorMovedI * call PlaySound() + + +set nocompatible +set modeline +set modelines=3 +" vim: syntax=vim +" +" +" +" clang_autocomplete options + + +let g:clang_use_library=1 +"let g:clang_library_path='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib' +let g:clang_auto_select=0 +let g:clang_complete_auto=1 " automatically complete after ->, ., :: +let g:clang_periodic_quickfix=1 +let g:clang_close_preview=1 " If equal to 1, the preview window will be close automatically after a completion +"let g:clang_snippets=1 +"let g:clang_conceal_snippets=1 +"let g:clang_snippets_engine='clang_complete' +"let g:clang_complete_macros=1 +"let g:clang_complete_patterns=1 +"let g:clang_close_preview=1 + +" Show clang errors in the quickfix window +"let g:clang_complete_copen = 1 +" +" +let g:clang_user_options='|| exit 0' +let g:clang_sort_algo="alpha" + + + +" muss am ende stehen, macht das INSERT nicht angezeigt wird. macht ja airline +" auch schon. +set noshowmode " hide --INSERT-- from command line (as its already shown in airline) +set cursorline " highlight currently selected line + +set wildmenu " displays command options in status line / airline when pressing TAB +set wildmode=longest:full,full + +set scrolloff=2 " always keep at least two lines visible (when seeking) + +"noremap help vert help +cabbrev help tab help +"autocmd FileType help,* wincmd L + +"autocmd BufNew * if winnr('$') == 1 | tab sball | endif +"autocmd BufReadPost * tab ball +map ,e :e =expand("%:p:h") . "/" + +" If wanted, auto commenting can be disabled for all files with: +autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o + +colorscheme maxvb6 +if has("gui_running") + "colorscheme Tomorrow-Night-Blue + "colorscheme bclear +else + " use 256 colors in Console mode if we think the terminal supports it + if &term =~? 'mlterm\|xterm\|screen' + set t_Co=256 + endif + "set t_Co=256 + "set t_AB=^[[48;5;%dm + "set t_AF=^[[38;5;%dm + "set term=ansi + "colorscheme ibmedit + "colorscheme h80 + "colorscheme greyhouse + "colorscheme tango-morning + "colorscheme jhlight + "colorscheme newspaper + "colorscheme relaxedgreen + let g:airline_theme = 'hybrid' + "highlight LineNr ctermfg=grey ctermbg=black +endif + + +" ex command for toggling hex mode - define mapping if desired +command -bar Hexmode call ToggleHex() + +" helper function to toggle hex mode +function ToggleHex() + " hex mode should be considered a read-only operation + " save values for modified and read-only for restoration later, + " and clear the read-only flag for now + let l:modified=&mod + let l:oldreadonly=&readonly + let &readonly=0 + let l:oldmodifiable=&modifiable + let &modifiable=1 + if !exists("b:editHex") || !b:editHex + " save old options + let b:oldft=&ft + let b:oldbin=&bin + " set new options + setlocal binary " make sure it overrides any textwidth, etc. + let &ft="xxd" + " set status + let b:editHex=1 + " switch to hex editor + %!xxd + else + " restore old options + let &ft=b:oldft + if !b:oldbin + setlocal nobinary + endif + " set status + let b:editHex=0 + " return to normal editing + %!xxd -r + endif + " restore values for modified and read only state + let &mod=l:modified + let &readonly=l:oldreadonly + let &modifiable=l:oldmodifiable +endfunction + + +" Show syntax highlighting groups for word under cursor +map :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' + \ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" + \ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" + + +" Append modeline after last line in buffer using \ml +" Use substitute() instead of printf() to handle '%%s' modeline in LaTeX +" files. +function! AppendModeline() + let l:modeline = printf(" vim: set ts=%d sw=%d tw=%d %set :", + \ &tabstop, &shiftwidth, &textwidth, &expandtab ? '' : 'no') + let l:modeline = substitute(&commentstring, "%s", l:modeline, "") + call append(line("$"), l:modeline) +endfunction +nnoremap ml :call AppendModeline() + + +" make vimdiff ignore white spaces +set diffopt+=iwhite +set diffopt+=filler +set diffexpr="" +set nocompatible + + +set diffopt+=iwhite + + +set guicursor=n-v-c:ver30-Cursor-blinkon500-blinkoff500 +highlight Cursor guifg=black guibg=lightgreen + + + +set virtualedit=onemore +" damit das highlight der klammern nicht genauso aussieht wie der cursor +hi MatchParen cterm=none ctermbg=yellow ctermfg=yellow + + +" An example for a vimrc file. +" +" Maintainer: Bram Moolenaar +" Last change: 2014 Nov 05 +" +" To use it, copy it to +" for Unix and OS/2: ~/.vimrc +" for Amiga: s:.vimrc +" for MS-DOS and Win32: $VIM\_vimrc +" for OpenVMS: sys$login:.vimrc + +" When started as "evim", evim.vim will already have done these settings. +if v:progname =~? "evim" + finish +endif + +" Use Vim settings, rather than Vi settings (much better!). +" This must be first, because it changes other options as a side effect. +set nocompatible + +" allow backspacing over everything in insert mode +set backspace=indent,eol,start + +if has("vms") + set nobackup " do not keep a backup file, use versions instead +else + set backup " keep a backup file (restore to previous version) + set undofile " keep an undo file (undo changes after closing) +endif +set history=50 " keep 50 lines of command line history +set ruler " show the cursor position all the time +set showcmd " display incomplete commands +set incsearch " do incremental searching + +" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries +" let &guioptions = substitute(&guioptions, "t", "", "g") + +" Don't use Ex mode, use Q for formatting +map Q gq + +" CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo, +" so that you can undo CTRL-U after inserting a line break. +inoremap u + +" In many terminal emulators the mouse works just fine, thus enable it. +if has('mouse') + set mouse=a +endif + +" Switch syntax highlighting on, when the terminal has colors +" Also switch on highlighting the last used search pattern. +if &t_Co > 2 || has("gui_running") + syntax on + set hlsearch +endif + +" Only do this part when compiled with support for autocommands. +if has("autocmd") + + " Enable file type detection. + " Use the default filetype settings, so that mail gets 'tw' set to 72, + " 'cindent' is on in C files, etc. + " Also load indent files, to automatically do language-dependent indenting. + filetype plugin indent on + + " Put these in an autocmd group, so that we can delete them easily. + augroup vimrcEx + au! + + " For all text files set 'textwidth' to 78 characters. + autocmd FileType text setlocal textwidth=78 + + " When editing a file, always jump to the last known cursor position. + " Don't do it when the position is invalid or when inside an event handler + " (happens when dropping a file on gvim). + " Also don't do it when the mark is in the first line, that is the default + " position when opening a file. + autocmd BufReadPost * + \ if line("'\"") > 1 && line("'\"") <= line("$") | + \ exe "normal! g`\"" | + \ endif + + augroup END + +else + + set autoindent " always set autoindenting on + +endif " has("autocmd") + +" Convenient command to see the difference between the current buffer and the +" file it was loaded from, thus the changes you made. +" Only define it when not defined already. +if !exists(":DiffOrig") + command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis + \ | wincmd p | diffthis +endif + +if has('langmap') && exists('+langnoremap') + " Prevent that the langmap option applies to characters that result from a + " mapping. If unset (default), this may break plugins (but it's backward + " compatible). + set langnoremap +endif + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +" An example for a vimrc file. +" +" Maintainer: Bram Moolenaar +" Last change: 2014 Nov 05 +" +" To use it, copy it to +" for Unix and OS/2: ~/.vimrc +" for Amiga: s:.vimrc +" for MS-DOS and Win32: $VIM\_vimrc +" for OpenVMS: sys$login:.vimrc + +" When started as "evim", evim.vim will already have done these settings. +if v:progname =~? "evim" + finish +endif + +" Use Vim settings, rather than Vi settings (much better!). +" This must be first, because it changes other options as a side effect. +set nocompatible + +" allow backspacing over everything in insert mode +set backspace=indent,eol,start + +if has("vms") + set nobackup " do not keep a backup file, use versions instead +else + set backup " keep a backup file (restore to previous version) + set undofile " keep an undo file (undo changes after closing) +endif +set history=50 " keep 50 lines of command line history +set ruler " show the cursor position all the time +set showcmd " display incomplete commands +set incsearch " do incremental searching + +" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries +" let &guioptions = substitute(&guioptions, "t", "", "g") + +" Don't use Ex mode, use Q for formatting +map Q gq + +" CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo, +" so that you can undo CTRL-U after inserting a line break. +inoremap u + +" In many terminal emulators the mouse works just fine, thus enable it. +if has('mouse') + set mouse=a +endif + +" Switch syntax highlighting on, when the terminal has colors +" Also switch on highlighting the last used search pattern. +if &t_Co > 2 || has("gui_running") + syntax on + set hlsearch +endif + +" Only do this part when compiled with support for autocommands. +if has("autocmd") + + " Enable file type detection. + " Use the default filetype settings, so that mail gets 'tw' set to 72, + " 'cindent' is on in C files, etc. + " Also load indent files, to automatically do language-dependent indenting. + filetype plugin indent on + + " Put these in an autocmd group, so that we can delete them easily. + augroup vimrcEx + au! + + " For all text files set 'textwidth' to 78 characters. + autocmd FileType text setlocal textwidth=78 + + " When editing a file, always jump to the last known cursor position. + " Don't do it when the position is invalid or when inside an event handler + " (happens when dropping a file on gvim). + " Also don't do it when the mark is in the first line, that is the default + " position when opening a file. + autocmd BufReadPost * + \ if line("'\"") > 1 && line("'\"") <= line("$") | + \ exe "normal! g`\"" | + \ endif + + augroup END + +else + + set autoindent " always set autoindenting on + +endif " has("autocmd") + +" Convenient command to see the difference between the current buffer and the +" file it was loaded from, thus the changes you made. +" Only define it when not defined already. +if !exists(":DiffOrig") + command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis + \ | wincmd p | diffthis +endif + +if has('langmap') && exists('+langnoremap') + " Prevent that the langmap option applies to characters that result from a + " mapping. If unset (default), this may break plugins (but it's backward + " compatible). + set langnoremap +endif -- cgit v1.2.3