All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 " obtained from the output of :options, then postprocessed:
3 " :%s/^ *[[:digit:]]\+/"""
7 " /^\([^[:space:]"].*\)\?$/
17 " behave very Vi compatible (not advisable)
22 " list of flags to specify Vi compatibility
26 " use Insert mode as the default mode
30 " paste mode, insert typed text literally
34 " key sequence to toggle paste mode
39 " list of directories used for runtime files and plugins
40 " set rtp=/home/madduck/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vimcurrent,/usr/share/vim/vimfiles/after,/home/madduck/.vim/after
43 " name of the main help file
44 " set hf=/usr/share/vim/vimcurrent/doc/help.txt
46 """ moving around, searching and patterns
49 " list of flags specifying which commands wrap to another line
55 " many jump commands move the cursor to the first non-blank
60 " nroff macro names that separate paragraphs
61 " set para=IPLPPPQPP\ LIpplpipbp
64 " nroff macro names that separate sections
65 " set sect=SHNHH\ HUnhsh
68 " list of directory names used for file searching
69 " (global or local to buffer)
70 " set pa=.,/usr/include,,
73 " list of directory names used for :cd
77 " search commands wrap around the end of the buffer
82 " show match for partly typed search command
87 " change the way backslashes are used in search patterns
91 " ignore case when using a search pattern
96 " override 'ignorecase' when pattern has upper case characters
101 " What method to use for changing case of letters
102 " set cmp=internal,keepascii
105 " maximum amount of memory in Kbyte used for pattern matching
109 " pattern for a macro definition line
110 " (global or local to buffer)
111 " set def=^\\s*#\\s*define
114 " pattern for an include-file line
116 " set inc=^\\s*#\\s*include
119 " expression used to transform an include line to a file name
126 " use binary searching in tags files
130 " number of significant characters in a tag name or zero
134 " list of file names to search for tags
135 " (global or local to buffer)
136 " set tag=./tags,./TAGS,tags,TAGS
139 " file names in a tags file are relative to the tags file
143 " a :tag command will use the tagstack
147 " when completing tags in Insert mode show more info
151 " command for executing cscope
155 " use cscope for tag commands
159 " 0 or 1; the order in which ":cstag" performs a search
163 " give messages when adding a cscope database
164 " set nocsverb csverb
167 " how many components of the path to show
171 " When to open a quickfix window for cscope
177 " number of lines to scroll for CTRL-U and CTRL-D
182 " number of screen lines to show around the cursor
192 " wrap long lines at a character in 'breakat'
195 " does not work with autocmd set list/nolist below
198 " which characters might cause a line break
199 " set brk=\ \ !@*-+;:,./?
202 " string to put before wrapped screen lines
206 " minimal number of columns to scroll horizontally
210 " minimal number of columns to keep left and right of the cursor
215 " include "lastline" to show the last line even if it doesn't fit
216 " include "uhex" to show unprintable characters as a hex number
221 " characters to use for the status line, folds and filler lines
222 " set fcs=vert:\|,fold:-
225 " number of lines used for the command-line
229 " width of the display
233 " number of lines in the display
237 " don't redraw while executing macros
242 " delay in msec for each char written to the display
247 " show <Tab> as ^I and end-of-line as $
253 " list of strings used for list mode
255 set lcs=tab:⇝·,trail:·
258 " show the line number for each line
263 " number of columns to use for the line number
267 """ syntax, highlighting and spelling
270 " "dark" or "light"; the background color brightness
274 " type of file; triggers the FileType event when set
279 " name of syntax highlighting used
284 " maximum column to look for syntax items
289 " which highlighting to use for various occasions
290 " set hl=8:SpecialKey,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,M:ModeMsg,n:LineNr,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText,>:SignColumn,B:SpellBad,P:SpellCap,R:SpellRare,L:SpellLocal,+:Pmenu,=:PmenuSel,x:PmenuSbar,X:PmenuThumb,*:TabLine,#:TabLineSel,_:TabLineFill,!:CursorColumn,.:CursorLine
293 " highlight all matches for the last used search pattern
298 " highlight the screen column of the cursor
303 " highlight the screen line of the cursor
308 " highlight spelling mistakes
313 " list of accepted languages
318 " file that "zg" adds good words to
323 " pattern to locate the end of a sentence
325 " set spc=[.?!]\\_[\\])'\"\ \ ]\\+
329 " methods used to suggest corrections
333 " amount of memory used by :mkspell before compressing
334 " set msm=460000,2000,500
339 " 0, 1 or 2; when to use a status line for the last window
343 " alternate format to be used for a status line
347 " make all windows the same size when adding/removing windows
351 " in which direction 'equalalways' works: "ver", "hor" or "both"
355 " minimal number of lines used for the current window
359 " minimal number of lines used for any window
363 " keep the height of the window
368 " keep the width of the window
373 " minimal number of columns used for the current window
377 " minimal number of columns used for any window
381 " initial height of the help window
385 " default height for the preview window
389 " identifies the preview window
394 " don't unload a buffer when no longer shown in a window
398 " "useopen" and/or "split"; which window to use when jumping
403 " a new window is put below the current one
407 " a new window is put right of the current one
411 " this window scrolls together with other bound windows
416 " "ver", "hor" and/or "jump"; list of options for 'scrollbind'
419 """ multiple tab pages
422 " 0, 1 or 2; when to use a tab pages line
426 " maximum number of tab pages to open for -p and "tab all"
430 " custom tab pages line
436 " name of the used terminal
437 " set term=rxvt-unicode
441 " set tty=rxvt-unicode
444 " check built-in termcaps first
448 " terminal connection is fast
452 " terminal that requires extra redrawing
456 " recognize keys that start with <Esc> in Insert mode
460 " minimal number of lines to scroll at a time
464 " maximum number of lines to use scrolling instead of redrawing
468 " show info in the window title
473 " percentage of 'columns' used for the window title
477 " when not empty, string to be used for the window title
481 " string to restore the title to when exiting Vim
482 " set titleold=Thanks\ for\ flying\ Vim
485 " set the text of the icon for this window
489 " when not empty, text for the icon of this window
495 " list of flags for using the mouse
499 " "extend", "popup" or "popup_setpos"; what the right
500 " mouse button is used for
504 " maximum time in msec to recognize a double-click
508 " "xterm", "xterm2", "dec" or "netterm"; type of mouse
514 " list of items that control the format of :hardcopy output
518 " name of the printer to be used for :hardcopy
522 " expression used to print the PostScript file for :hardcopy
523 " set pexpr=system('lpr'\ .\ (&printdevice\ ==\ ''\ ?\ ''\ :\ '\ -P'\ .\ &printdevice)\ .\ '\ '\ .\ v:fname_in)\ .\ delete(v:fname_in)\ +\ v:shell_error
524 set pexpr=system('lp'\ .\ (&printdevice\ ==\ ''\ ?\ ''\ :\ '\ -d'\ .\ &printdevice)\ .\ '\ '\ .\ v:fname_in)\ .\ delete(v:fname_in)\ +\ v:shell_error
527 " name of the font to be used for :hardcopy
531 " format of the header used for :hardcopy
532 " set pheader=%<%f%h%m%=Page\ %N
535 " encoding used to print the PostScript file for :hardcopy
539 " the CJK character set to be used for CJK output from :hardcopy
543 " list of font names to be used for CJK output from :hardcopy
546 """ messages and info
549 " add 's' flag in 'shortmess' (don't show search message)
553 " list of flags to make messages shorter
555 set shortmess=atTWoOI
558 " show (partial) command keys in the status line
562 " display the current mode in the status line
566 " show cursor position below each window
571 " alternate format to be used for the ruler
572 " set ruf=%20(%=%-14(%l,%c%V%)\ %P%)
575 " threshold for reporting number of changed lines
579 " the higher the more messages are given
583 " file to write messages in
587 " pause listings when the screen is full
591 " start a dialog when a command fails
595 " ring the bell for error messages
599 " use a visual bell instead of beeping
603 " list of preferred languages for finding help
609 " "old", "inclusive" or "exclusive"; how selecting text behaves
613 " "mouse", "key" and/or "cmd"; when to start Select mode
614 " instead of Visual mode
618 " "startsel" and/or "stopsel"; what special keys can do
624 " maximum number of changes that can be undone
628 " changes have been made and not written to a file
633 " buffer is not to be written
638 " changes to the text are not possible
643 " line length above which to break a line
649 " margin from the right in which to break a line
654 " specifies what <BS>, CTRL-W, etc. can do in Insert mode
656 set bs=indent,eol,start
659 " definition of what comment lines look like
661 " set com=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
664 " list of flags that tell how automatic formatting works
670 " pattern to recognize a numbered list
672 " set flp=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
673 let &flp='^\v\s*(((#|\a|\d{,4}|[ivx]{,4})[]:.)}/])+|[-\*.·→+])\s+'
676 " expression used for "gq" to format lines
681 " specifies how Insert mode completion works for CTRL-N and CTRL-P
683 " set cpt=.,w,b,u,t,i
686 " whether to use a popup menu for Insert mode completion
687 " set cot=menu,preview
688 set cot=menu,noinsert,popup,preview,fuzzy
691 " maximum height of the popup menu
695 " user defined function for Insert mode completion
700 " function for filetype-specific Insert mode completion
705 " list of dictionary files for keyword completion
706 " (global or local to buffer)
710 " list of thesaurus files for keyword completion
711 " (global or local to buffer)
715 " adjust case of a keyword completion match
721 " enable entering digraps with c1 <BS> c2
726 " the "~" command behaves like an operator
731 " function called for the"g@" operator
735 " When inserting a bracket, briefly jump to its match
739 " tenth of a second to show a match for 'showmatch'
743 " list of pairs that match for the "%" command
745 " set mps=(:),{:},[:]
748 " use two spaces after '.' when joining a line
753 " "alpha", "octal" and/or "hex"; number formats recognized for
754 " CTRL-A and CTRL-X commands
758 """ tabs and indenting
761 " number of spaces a <Tab> in the text stands for
765 " You could set the 'tabstop' option to 2. However, if you edit the file
766 " another time, with 'tabstop' set to the default value of 8, it will look
767 " wrong. In other programs and when printing the indent will also be
768 " wrong. Therefore it is recommended to keep 'tabstop' at eight all the
769 " time. That's the standard value everywhere.
774 " number of spaces used for each step of (auto)indent
780 " a <Tab> in an indent inserts 'shiftwidth' spaces
785 " if non-zero, number of spaces to insert for a <Tab>
791 " round to 'shiftwidth' for "<<" and ">>"
796 " expand <Tab> to spaces in Insert mode
802 " automatically set the indent of a new line
808 " do clever autoindenting
813 " enable specific indenting for C code
818 " options for C-indenting
823 " keys that trigger C-indenting in Insert mode
825 " set cink=0{,0},0),:,0#,!^F,o,O,e
828 " list of words that cause more C-indent
830 " set cinw=if,else,while,do,for,switch
833 " expression used to obtain the indent of a line
838 " keys that trigger indenting with 'indentexpr' in Insert mode
840 " set indk=0{,0},:,0#,!^F,o,O,e
843 " Copy whitespace for indenting from previous line
849 " Preserve kind of whitespace when changing indent
852 """ set pi this ABORTS < 1:7.1-135+1 (see #446268)
863 " words that change how lisp indenting works
864 " set lw=defun,define,defmacro,set!,lambda,if,case,let,flet,let*,letrec,do,do*,define-syntax,let-syntax,letrec-syntax,destructuring-bind,defpackage,defparameter,defstruct,deftype,defvar,do-all-symbols,do-external-symbols,do-symbols,dolist,dotimes,ecase,etypecase,eval-when,labels,macrolet,multiple-value-bind,multiple-value-call,multiple-value-prog1,multiple-value-setq,prog1,progv,typecase,unless,unwind-protect,when,with-input-from-string,with-open-file,with-open-stream,with-output-to-string,with-package-iterator,define-condition,handler-bind,handler-case,restart-bind,restart-case,with-simple-restart,store-value,use-value,muffle-warning,abort,continue,with-slots,with-slots*,with-accessors,with-accessors*,defclass,defmethod,print-unreadable-object
869 " set to display all folds open
874 " folds with a level higher than this number will be closed
879 " value for 'foldlevel' when starting to edit a file
883 " width of the column used to indicate folds
888 " expression used to display the text of a closed fold
893 " set to "all" to close a fold when the cursor leaves it
897 " specifies for which commands a fold will be opened
898 " set fdo=block,hor,mark,percent,quickfix,search,tag,undo
901 " minimum number of screen lines for a fold to be closed
906 " template for comments; used to put the marker in
910 " folding type: "manual", "indent", "expr", "marker" or "syntax"
916 " expression used when 'foldmethod' is "expr"
921 " used to ignore lines when 'foldmethod' is "indent"
926 " markers used when 'foldmethod' is "marker"
931 " maximum fold depth for when 'foldmethod is "indent" or "syntax"
938 " use diff mode for the current window
943 " options for using diff mode
947 " expression used to obtain a diff file
951 " expression used to patch a file
957 " maximum depth of mapping
961 " recognize mappings in mapped keys
965 " allow timing out halfway into a mapping
969 " allow timing out halfway into a key code
970 " set nottimeout ttimeout
973 " time in msec for 'timeout'
977 " time in msec for 'ttimeout'
980 """ reading and writing files
983 " enable using settings from modelines when reading a file
989 " number of lines to check for modelines
993 " binary file editing
998 " last line in the file has an end-of-line
1003 " Prepend a Byte Order Mark to the file
1008 " end-of-line format: "dos", "unix" or "mac"
1013 " list of file formats to look for when editing a file
1017 " obsolete, use 'fileformat'
1022 " obsolete, use 'fileformats'
1026 " writing files is allowed
1030 " write a backup file before overwriting a file
1034 " keep a backup after overwriting a file
1038 " patterns that specify for which files a backup is not made
1042 " whether to make the backup as a copy or rename the existing file
1046 " list of directories to put backup files in
1047 " set bdir=.,/home/madduck/tmp,/home/madduck/
1050 " file name extension for the backup file
1054 " automatically write a file when leaving a modified buffer
1059 " as 'autowrite', but works with more commands
1064 " always write without asking for confirmation
1068 " automatically read a file when it was modified outside of Vim
1069 " (global or local to buffer)
1074 " keep oldest version of a file; specifies file name extension
1078 " forcibly sync the file to disk after writing it
1082 " use 8.3 file names
1089 " list of directories for the swap file
1090 " set dir=.,/home/madduck/tmp,/var/tmp,/tmp
1091 set dir=.,$TMPDIR//,/var/tmp//,/tmp//
1094 " use a swap file for this buffer
1099 " "sync", "fsync" or empty; how to flush a swap file to disk
1104 " number of characters typed to cause a swap file update
1108 " time in msec after which the swap file will be updated
1113 " maximum amount of memory in Kbyte used for one buffer
1117 " maximum amount of memory in Kbyte used for all buffers
1120 """ command line editing
1123 " how many command lines are remembered
1128 " key that triggers command-line expansion
1132 " like 'wildchar' but can also be used in a mapping
1136 " specifies how command line completion works
1141 " list of file name extensions that have a lower priority
1142 " set su=.bak,~,.o,.h,.info,.swp,.obj
1145 " list of file name extensions added when searching for a file
1150 " list of patterns to ignore files for file name completion
1152 set wig=*.o,*.pyc,*.pyo,*~,*.bk,*.bak
1155 " command-line completion shows a list of matches
1159 " key used to open the command-line window
1163 " height of the command-line window
1166 """ executing external commands
1169 " name of the shell program used for external commands
1173 " character(s) to enclose a shell command in
1177 " like 'shellquote' but include the redirection
1181 " argument for 'shell' to execute a command
1185 " used to redirect command output to a file
1189 " use a temp file for shell commands instead of using a pipe
1193 " program used for "=" command
1194 " (global or local to buffer)
1198 " program used to format lines with "gq" command
1202 " program used for the "K" command
1206 " warn when using a shell command and a buffer has changes
1210 """ running make and jumping to errors
1213 " name of the file that contains error messages
1217 " list of formats for error messages
1218 " (global or local to buffer)
1219 " set efm=%*[^\"]\"%f\"%*\\D%l:\ %m,\"%f\"%*\\D%l:\ %m,%-G%f:%l:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once,%-G%f:%l:\ for\ each\ function\ it\ appears\ in.),%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',%D%*\\a:\ Entering\ directory\ `%f',%X%*\\a:\ Leaving\ directory\ `%f',%DMaking\ %*\\a\ in\ %f,%f\|%l\|\ %m
1222 " program used for the ":make" command
1223 " (global or local to buffer)
1227 " string used to put the output of ":make" in the error file
1228 " set sp=2>&1\|\ tee
1231 " name of the errorfile for the 'makeprg' command
1235 " program used for the ":grep" command
1236 " (global or local to buffer)
1237 " set gp=grep\ -n\ $*\ /dev/null
1240 " list of formats for output of 'grepprg'
1241 " set gfm=%f:%l:%m,%f:%l%m,%f\ \ %l%m
1243 """ language specific
1246 " specifies the characters in a file name
1247 " set isf=@,48-57,/,.,-,_,+,,,#,$,%,~,=
1250 " specifies the characters in an identifier
1251 " set isi=@,48-57,_,192-255
1254 " specifies the characters in a keyword
1259 " specifies printable characters
1263 " specifies escape characters in a string
1268 " display the buffer right-to-left
1273 " When to edit the command-line right-to-left
1278 " Insert characters backwards
1282 " Allow CTRL-_ in Insert and Command-line mode to toggle 'revins'
1286 " the ASCII code for the first letter of the Hebrew alphabet
1290 " use Hebrew keyboard mapping
1294 " use phonetic Hebrew keyboard mapping
1298 " use Farsi as the second language when 'revins' is set
1302 " use Farsi keyboard mapping
1306 " Prepare for editing Arabic text
1311 " Perform shaping of Arabic characters
1312 " set noarshape noarshape
1315 " Terminal will perform bidi handling
1319 " name of a keyboard mappping
1323 " translate characters for Normal mode
1327 " in Insert mode: 1: use :lmap; 2: use IM; 0: neither
1332 " entering a search pattern: 1: use :lmap; 2: use IM; 0: neither
1336 """ multi-byte characters
1339 " character encoding used in Vim: "latin1", "utf-8"
1340 " "euc-jp", "big5", etc.
1344 " character encoding for the current file
1349 " automatically detected character encodings
1350 " set fencs=ucs-bom,utf-8,default,latin1
1353 " character encoding used by the terminal
1356 " charconvert expression
1357 " used for character encoding conversion
1361 " Delete combining (composing) characters on their own
1365 " Maximum number of combining (composing) characters displayed
1369 " Width of ambiguous width characters
1375 " when to use virtual editing: "block", "insert" and/or "all"
1379 " list of autocommand events which are to be ignored
1383 " load plugin scripts when starting up
1388 " enable reading .vimrc/.exrc/.gvimrc in the current directory
1392 " safer working with script files in the current directory
1393 " set nosecure secure
1397 " use the 'g' flag for ":substitute"
1401 " 'g' and 'c' flags of ":substitute" toggle
1405 " maximum depth of function calls
1409 " list of words that specifies what to put in a session file
1410 " set ssop=blank,buffers,curdir,folds,help,options,tabpages,winsize
1413 " list of words that specifies what to save for :mkview
1414 " set vop=folds,options,cursor
1417 " directory where to store files with :mkview
1418 " set vdir=/home/madduck/.vim/view
1419 set vdir=$VARDIR/vim/view
1422 " list that specifies what to write in the viminfo file
1424 set vi=<1000,'1000,\"1000,:100,/100,@100,f1,%,!,h,n$VARDIR/vim/viminfo
1427 " what happens with a buffer when it's no longer in a window
1432 " "", "nofile", "nowrite" or "quickfix": type of buffer
1437 " whether the buffer shows up in the buffer list
1442 " set to "msg" to see all error messages
1445 if &cp | set nocp | endif
1449 let g:netrw_home="$VARDIR/vim"
1451 filetype plugin indent on
1454 packadd! editorconfig
1458 " leave the w mark whenever a file is written
1459 autocmd BufWrite * normal mw
1461 autocmd BufRead *.vcf set filetype=vcard
1463 " leave the i mark whenever we go idle (after updatetime)
1465 "autocmd CursorHold * normal mi
1466 "autocmd CursorHoldI * normal mi "DISABLED while broken (shifts left)
1469 " disable list mode when inserting stuff, otherwise keep it enabled, it's
1470 " useful (see also setting lcs)
1472 autocmd InsertEnter * set nolist
1473 autocmd InsertLeave * set list
1475 " flag trailing spaces as error only when not inserting
1476 augroup tsperrorinsert
1477 autocmd InsertEnter * match none /\s\+$/
1478 autocmd InsertLeave * match Error /\s\+$/
1481 " this isn't windows, screw the F1->help key
1486 " ignore Q -- Ex mode
1490 let maplocalleader = ';'
1492 " replace fake tab chars with real ones
1493 map <Leader>ft :%s,⇝·*, ,g<CR>:nohlsearch<CR>``
1494 " replace fake spaces with real ones
1495 map <Leader>fs :%s,·, ,g<CR>:nohlsearch<CR>``
1497 function WhatHighlight()
1498 echon 'hi<' . synIDattr(synID(line('.'),col('.'),1),'name') . '> '
1499 echon 'trans<' . synIDattr(synID(line('.'),col('.'),0),'name') . '> '
1500 echon 'lo<' . synIDattr(synIDtrans(synID(line('.'),col('.'),1)),'name') . '>'
1503 map <Leader>sy :call WhatHighlight()<CR>
1505 map <Leader>/ :nohlsearch<CR>
1507 iab sgf Sehr geehrte Frau
1508 iab sgh Sehr geehrter Herr
1509 iab sghn Sehr geehrte Herren
1512 iab sgdh Sehr geehrte Damen und Herren
1513 iab twimc To Whom It May Concern
1516 iab fg Freundliche Grüsse
1517 iab mfg Mit freundlichen Grüssen
1518 iab mbg Mit den besten Grüssen
1519 iab hg Herzliche Grüsse
1520 iab mhg Mit herzlichen Grüssen
1521 iab mbbg Mit bundesbrüderlichen Grüssen
1522 iab mvbg Mit verbandsbrüderlichen Grüssen
1523 iab dallarmi Dall'Armi-Strasse
1524 iab muc5 80538 München
1525 iab muc6 80638 München
1531 let g:ale_completion_enabled = 0
1532 let g:ale_fixers = { '*': [ "remove_trailing_lines", "trim_whitespace" ] }
1533 let g:ale_sign_error = '>>'
1534 let g:ale_sign_warning = '--'
1535 let g:ale_set_loclist = 1
1536 let g:ale_open_list = 1
1537 let g:ale_virtualtext_cursor = 'current'
1538 let g:ale_floating_window_border = repeat([''], 8)
1541 execute pathogen#infect()
1543 "echo "Pathogen not installed"
1546 set background=light
1547 let g:artesanal_dimmed = 1
1548 let g:artesanal_transparent = 1
1549 colorscheme artesanal