Hier stecken Jahre an Bastelarbeit drin. Müsste mal dringend aufgeräumt werden. Aber als Beispiel, was alles so passieren kann:
" Vim standard startup file.
"
set gfn=DejaVu\ Sans\ Mono\ 8
set printoptions=paper:A4,duplex:off,collate:n,syntax:n
set bs=indent,eol,start
set shiftwidth=4
set ru
set sc
set mouse=a
set laststatus=2
set cindent
"set autoindent
set linebreak
set nojoinspaces
syntax enable
" Make sure Bash syntax will be used for coloring.
let g:is_bash=1
" Suppress XTerm screen clearing on exit
set t_ti= t_te=
" Suppress automated parenthesis matching
let g:loaded_surrparen=1
" Define startup colorscheme
"
" 0: marklar
" 1: tabula (use as default)
" First make sure running in XTerm really uses 256 colors
"
au VimEnter * set t_Co=256
let _useColor_ = 1
if &term == 'linux' || &term == 'screen' || &term == 'screen-256color'
let _useColor_ = 0
au VimEnter * set t_Co=16
endif
set background=dark
if _useColor_ == 1
let g:Tabula_DarkError = 1
:colorscheme tabula
else
:colorscheme marklar
endif
" Display Constants in different colors by default.
let g:Tabula_FlatConstants = 0
" Provide menus in console edit sessions
"
if ! has("gui_running")
:source $VIMRUNTIME/menu.vim
set wildmenu
set cpo-=<
set wcm=<C-Z>
:map <F4> :emenu <C-Z>
endif
" Ignore whitespace in diffs
"
set diffopt+=iwhite
" Allow changing the buffer without saving
"
set hidden
" Do not place the cursor at the start of the line when using Page up/down.
"
set nostartofline
" Allow the cursor to be positioned where there is no actual character.
" Visual block mode only.
"
set virtualedit=block
" Remember information between vim restarts.
"
set viminfo='200,<300,s150,h,!
" Allow specified keys that move the cursor left/right to move to the previous/next line
" when the cursor is on the first/last character in the line:
" b (backspace), s (space) and the arrows.
"
set whichwrap=b,s,<,>
" Backups
"
" set backup
" set backupcopy=auto
" set backupskip=/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*test*,*temp*,*tmp*,*tst*,*~,*bak
" --- Some useful mappings ---
"
" Make the BS key usable.
:nmap <BS> X
:imap <BS> <Left><Del>
"
" Put \(\) into a command string
:cmap ;\ \(\)<Left><Left>
"
" Start substitute commands
:noremap ;; :%s:::g<Left><Left><Left>
:vnoremap ;; :s:::g<Left><Left><Left>
" --- Enable automatic filetype detection ---
filetype on
filetype plugin on
filetype indent on
filetype plugin indent on
au BufNewFile,BufRead *.c set formatoptions+=ro
au BufNewFile,BufRead *.c setlocal number textwidth=0
au BufNewFile,BufRead *.c syn match matchName /\(#define\)\@<= .*/
au BufNewFile,BufRead *.cpp set formatoptions+=ro
au BufNewFile,BufRead *.cpp setlocal number textwidth=0
au BufNewFile,BufRead *.cpp syn match matchName /\(#define\)\@<= .*/
au BufNewFile,BufRead *.d set formatoptions+=ro expandtab shiftwidth=4 tabstop=4
au BufNewFile,BufRead *.d setlocal number textwidth=0
au BufNewFile,BufRead *.d syn match matchName /\(#define\)\@<= .*/
au BufNewFile,BufRead *.js set formatoptions+=ro
au BufNewFile,BufRead *.js setlocal number textwidth=0
au BufNewFile,BufRead *.tex set nocindent
au BufNewFile,BufRead *.tex set iskeyword=a-z,A-Z,ä,ö,ü,Ä,Ö,Ü,ß
au BufNewFile,BufRead *.tex setlocal textwidth=80
au BufNewFile,BufRead *.txt setlocal nocindent
au BufNewFile,BufRead *.txt setlocal shiftwidth=8 tabstop=8 textwidth=0
au BufNewFile,BufRead *.wiki setlocal nocindent
au BufNewFile,BufRead *.wiki setlocal foldcolumn=3 foldlevel=1
au BufNewFile,BufRead *.wiki setlocal shiftwidth=2 tabstop=2 textwidth=0
" Retain last known cursor position
"
augroup LAST
au BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
augroup END
" File types for nonstandard/additional config files {{{
augroup SYNTAX
au BufNewFile,BufRead *conkyrc* set ft=conkyrc
au BufNewFile,BufRead *muttrc* set ft=muttrc
au BufNewFile,BufRead *.rem set ft=remind
au BufNewFile,BufRead *screenrc* set ft=screen
au BufRead pacman.log setf pacmanlog
augroup END
" --- Define a session save shortcut ---
" Must switch off spellchecking to prevent false reload.
:map <C-F12> :setlocal nospell<Bar>wa<Bar>exe "mksession! " . v:this_session<CR>
" --- Switch spellcheck on ---
:map <S-F12> :setlocal spell spelllang=de<CR>
" --- Prepare for Latex-Suite plugin ---
set grepprg=grep\ -nH\ $*
set winaltkeys=no
set iskeyword+=:
let g:tex_flavor='latex'
" --- Window Manager ---
" Key Mappings
:map <c-w><c-t> :WMToggle<cr>
:map <c-w><c-f> :FirstExplorerWindow<cr>
:map <c-w><c-b> :BottomExplorerWindow<cr>
"
let winManagerWindowLayout = 'FileExplorer,TagsExplorer|BufExplorer|TagList'
" --- VimWiki Settings ---
let g:vimwiki_list = [{},
\ {'path': '~/Texte/Mediator/Mediatorplan/',
\ 'path_html': '~/Texte/Mediator/Mediatorplan/html/', 'maxhi': 1},
\ {'path': '~/Texte/Splitter/phil/Phil-Plan/',
\ 'path_html': '~/Texte/Splitter/phil/Phil-Plan/html/'}
\ ]
let g:vimwiki_hl_headers=1
let g:vimwiki_hl_cb_checked=1
let g:vimwiki_use_mouse=1
let g:vimwiki_folding=1
" --- BreakPts Debugger Settings ---
:nmap <silent> <F7> <Plug>BreakPts
let g:brkptsDefStartMode='scripts'
let g:brkptsModFuncHeader=1
" --- Some HTML preferences ---
let g:html_tag_case = 'lower'
let g:html_authorname = '###'
let g:html_authoremail = '###'
" --- SlimV Settings ---
"
let g:slimv_python = '/usr/bin/python2'
let g:slimv_lisp = '/usr/bin/sbcl'
let g:slimv_impl = 'sbcl'
let g:slimv_keybindings = 2
let g:slimv_clhs_root = 'file:/home/bp/info/Lisp/HyperSpec/'
let g:slimv_browser_cmd = 'luakit'
"let g:slimv_repl_split = 4
" --- Python Settings ---
"
" Switch on Python syntax highlighting.
let python_highlight_all = 1
" --- Some formatting useful for C/C++ files ---
set cino=:0,l1,g0,t0,i0,(s,U1
" --- D Language Settings ---
"
" let g:d_comment_strings = 1
let g:d_hl_operator_overload = 1
" --- Use extended initialization ---
" set exrc
"syntax on
" Provisional ã key mapping
" (Workaround for vim-latex bug)
imap <C-a> \~a
" Default noweb syntax
let g:nowebDefaultSyntax = 'syntax include @nowebIncludedDefault syntax/Javascript.vim'
" dbext Settings
:let dbext_default_type = 'SQLITE'