diff --git a/astyle/.astylerc b/astyle/.astylerc deleted file mode 100644 index 0b4ea03..0000000 --- a/astyle/.astylerc +++ /dev/null @@ -1,32 +0,0 @@ -### AliRsnLite code formatting style (based on ROOT) -### tested on astyle 2.02 - - ---style=kr # k&r ---indent=spaces=3 # indent using 2 spaces per indent - ---indent-switches # indent switch blocks ---indent-namespaces # add extra indentation to namespace blocks ---indent-labels # add extra indentation to labels ---indent-preprocessor # indent multi-line preprocessor definitions ---min-conditional-indent=0 # multi-line will be aligned with the paren ---max-instatement-indent=60 # maximum 60 spaces to indent a continuation line - ---keep-one-line-statements # don't break lines ---keep-one-line-blocks # don't break blocks ---convert-tabs # convert tabs to the appropriate number of spaces ---align-pointer=name # attach (* or &) to either the operator name - -### optional options -#--pad-oper # insert space padding around operators -#--pad-header # insert space padding after paren headers -#--unpad-paren # remove unnecessary space padding around parenthesis - -#--lineend=linux # force use linux line end style ---suffix=none # do not retain a backup of the original file -#--recursive # process all subdirectories recursively - -### depreciated option (will be removed in a future release) -#--brackets=stroustrup # brackets on new line only for func - - diff --git a/astyle/apply.sh b/astyle/apply.sh deleted file mode 100755 index c758ddc..0000000 --- a/astyle/apply.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -cp .astylerc ~/ \ No newline at end of file diff --git a/astyle/clear.sh b/astyle/clear.sh deleted file mode 100755 index 605cd28..0000000 --- a/astyle/clear.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -rm -Rf ~/.astylerc \ No newline at end of file diff --git a/bash/.bashrc b/bash/.bashrc index f25ecce..7b047e8 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -18,7 +18,6 @@ export CDPATH=".:~:~/git" # Adds $HOME/bin to PATH export PATH="$HOME/bin:$PATH" -export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" # Alias alias df='df -h' @@ -27,29 +26,13 @@ alias ls="ls -h --color" alias l='ls' alias la='ls -alh' alias root='root -l' -alias eos='LD_LIBRARY_PATH= eos' alias github-fork-sync='git fetch upstream && git merge upstream/$(git rev-parse --abbrev-ref HEAD) && git push' # Alias SIVVP -alias mgmt1="ssh -f -L 8081:172.29.102.11:80 mvala@lx000.saske.sk -N" -alias mgmt2="ssh -f -L 8082:172.29.102.12:80 mvala@lx000.saske.sk -N" -alias sivvp_nagios="ssh -f -L 8080:172.20.102.11:80 -N lx000.saske.sk" +alias mgmt1="ssh root@172.29.102.11" # Alias EOS -alias eos-saske="export EOS_MGM_URL=\"root://eos.saske.sk\" && export EOS_HOME=\"/eos/saske.sk/users/${USER:0:1}/$USER\"" -alias eos-jinr="export EOS_MGM_URL=\"root://hydra.jinr.ru\" && export EOS_HOME=\"/eos/jinr.ru/users/${USER:0:1}/$USER\"" -alias eos-mount="eos fuse mount /eos" -alias eos-umount="eos fuse umount /eos" - -# Alias HYDRA -alias blade01="ssh -f -L 8081:192.168.36.231:80 mvala@hydra.jinr.ru -N" - -#eos-saske -#export EOS_MGM_URL="root://eos-head2-iep-grid.saske.sk" - -# ALICE stuff -#if [ -f /usr/bin/aliroot-version ];then -# /usr/bin/aliroot-version latest || module add $(ls -1t $HOME/.alice/ | head -n 1) -#fi -# end ALICE stuff +alias eos-saske="export EOS_MGM_URL=\"root://alieos.saske.sk\"" +alias eos-hybrilit="export EOS_MGM_URL=\"root://eos-hlit.jinr.ru\" && export EOS_HOME=\"/eos/hybrilit.jinr.ru/users/${USER:0:1}/$USER\"" +alias eos-ithemba="export EOS_MGM_URL=\"root://eos1.alice.tlabs.ac.za\" && export EOS_HOME=\"/eos/alice.tlabs.ac.za/users/${USER:0:1}/$USER\"" diff --git a/bash/.config/.prompt.sh b/bash/.config/.prompt.sh deleted file mode 100644 index 6909991..0000000 --- a/bash/.config/.prompt.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -#settitle() { -# printf "\033k$1\033\\" -#} - -#ssh() { -# settitle "$*" -# command ssh "$@" -# settitle "bash" -#} - - -if [ "$PS1" ];then - source /usr/share/git-core/contrib/completion/git-prompt.sh - export PROMPT_DIRTRIM=1 - export GIT_PS1_SHOWDIRTYSTATE=true - export GIT_PS1_SHOWUNTRACKEDFILES=true - export PS1="\[\033[01;37m\]\$? \$(if [[ \$? == 0 ]]; then echo \"\[\033[01;32m\]\342\234\223\"; else echo \"\[\033[01;31m\]\342\234\227\"; fi) $(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]\h'; else echo '\[\033[01;32m\]\u@\h'; fi)\[\033[01;34m\] \W\[\033[01;33m\]\$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] " -fi diff --git a/bash/apply.sh b/bash/apply.sh index b35a8af..1b2cff6 100755 --- a/bash/apply.sh +++ b/bash/apply.sh @@ -1,5 +1,3 @@ #!/bin/bash cp /etc/skel/.bash* ~/ cp -f .bashrc ~/ -[ -d ~/.config ] || mkdir -p ~/.config -cp .config/.prompt.sh ~/.config/ diff --git a/bash/clear.sh b/bash/clear.sh index 1772350..170e5cb 100755 --- a/bash/clear.sh +++ b/bash/clear.sh @@ -1,4 +1,3 @@ #!/bin/bash rm -Rf ~/.bash* -rm -f ~/.config/.prompt.sh diff --git a/byobu/.byobu/keybindings.tmux b/byobu/.byobu/keybindings.tmux deleted file mode 100644 index 9aba216..0000000 --- a/byobu/.byobu/keybindings.tmux +++ /dev/null @@ -1,8 +0,0 @@ -source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux.disable -unbind-key -n C-a -set -g prefix ^A -set -g prefix2 ^A -bind a send-prefix -bind-key -n C-t new-window \; rename-window "-" -bind-key -n C-right next -bind-key -n C-left prev diff --git a/byobu/.byobu/status b/byobu/.byobu/status deleted file mode 100644 index 53de6e8..0000000 --- a/byobu/.byobu/status +++ /dev/null @@ -1,37 +0,0 @@ -# status - Byobu's default status enabled/disabled settings -# -# Override these in $BYOBU_CONFIG_DIR/status -# where BYOBU_CONFIG_DIR is XDG_CONFIG_HOME if defined, -# and $HOME/.byobu otherwise. -# -# Copyright (C) 2009-2011 Canonical Ltd. -# -# Authors: Dustin Kirkland -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, version 3 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# Status beginning with '#' are disabled. - -# Screen has two status lines, with 4 quadrants for status -screen_upper_left="color" -screen_upper_right="color whoami hostname ip_address menu" -screen_lower_left="color logo distro release #arch session" -screen_lower_right="color network #disk_io custom #entropy raid reboot_required updates_available #apport #services #mail users uptime #ec2_cost #rcs_cost #fan_speed #cpu_temp battery wifi_quality #processes load_average cpu_count cpu_freq memory #swap #disk #time_utc date time" - -# Tmux has one status line, with 2 halves for status -tmux_left=" #logo distro release #arch session" -# You can have as many tmux right lines below here, and cycle through them using Shift-F5 -tmux_right=" #network #disk_io #custom #entropy #raid reboot_required updates_available #apport #services #mail #users #uptime #ec2_cost #rcs_cost #fan_speed #cpu_temp #battery #wifi_quality #processes #load_average #cpu_count #cpu_freq #memory #swap #disk #whoami #hostname ip_address #time_utc #date #time" -#tmux_right="network #disk_io #custom entropy raid reboot_required updates_available #apport #services #mail users uptime #ec2_cost #rcs_cost fan_speed cpu_temp battery wifi_quality #processes load_average cpu_count cpu_freq memory #swap #disk whoami hostname ip_address #time_utc date time" -#tmux_right="network #disk_io custom #entropy raid reboot_required updates_available #apport #services #mail users uptime #ec2_cost #rcs_cost #fan_speed #cpu_temp battery wifi_quality #processes load_average cpu_count cpu_freq memory #swap #disk #whoami #hostname ip_address #time_utc date time" -#tmux_right="#network disk_io #custom entropy #raid #reboot_required #updates_available #apport #services #mail #users #uptime #ec2_cost #rcs_cost fan_speed cpu_temp #battery #wifi_quality #processes #load_average #cpu_count #cpu_freq #memory #swap whoami hostname ip_address #time_utc disk date time" diff --git a/byobu/apply.sh b/byobu/apply.sh deleted file mode 100755 index d84a521..0000000 --- a/byobu/apply.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -cp -rf .byobu ~/ diff --git a/byobu/clear.sh b/byobu/clear.sh deleted file mode 100755 index e922214..0000000 --- a/byobu/clear.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -rm -Rf ~/.byobu diff --git a/eclipse/.local/share/applications/eclipse.desktop b/eclipse/.local/share/applications/eclipse.desktop deleted file mode 100644 index c09c583..0000000 --- a/eclipse/.local/share/applications/eclipse.desktop +++ /dev/null @@ -1,8 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Eclipse -Comment= "Eclipse" -Icon=/home/mvala/Software/eclipse/icon.xpm -Exec=/home/mvala/Software/eclipse/eclipse.sh -Terminal=false -Categories=Development;IDE;Java; diff --git a/eclipse/apply.sh b/eclipse/apply.sh deleted file mode 100755 index e4b9467..0000000 --- a/eclipse/apply.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -cp -r .local ~/ -cp eclipse.sh ~/Software/eclipse/ diff --git a/eclipse/clear.sh b/eclipse/clear.sh deleted file mode 100755 index 220c1eb..0000000 --- a/eclipse/clear.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -rm -f ~/.local/share/applications/eclipse.desktop -rm -f ~/Software/eclipse/eclipse.sh diff --git a/eclipse/eclipse.sh b/eclipse/eclipse.sh deleted file mode 100755 index 0d8e58f..0000000 --- a/eclipse/eclipse.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -SWT_GTK3=0 /home/mvala/Software/eclipse/eclipse diff --git a/eclipse/external_plugins.xml b/eclipse/external_plugins.xml deleted file mode 100644 index fe05354..0000000 --- a/eclipse/external_plugins.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/emacs/.config/systemd/user/default.target.wants/emacs.service b/emacs/.config/systemd/user/default.target.wants/emacs.service deleted file mode 120000 index 9c1d6ab..0000000 --- a/emacs/.config/systemd/user/default.target.wants/emacs.service +++ /dev/null @@ -1 +0,0 @@ -/home/mvala/.config/systemd/user/emacs.service \ No newline at end of file diff --git a/emacs/.config/systemd/user/emacs.service b/emacs/.config/systemd/user/emacs.service deleted file mode 100644 index d611118..0000000 --- a/emacs/.config/systemd/user/emacs.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Emacs: the extensible, self-documenting text editor - -[Service] -Type=forking -ExecStart=/usr/bin/emacs --daemon -ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" -Restart=always - -[Install] -WantedBy=default.target diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el deleted file mode 100644 index ec45661..0000000 --- a/emacs/.emacs.d/init.el +++ /dev/null @@ -1,24 +0,0 @@ - -;; No tabs -(setq-default indent-tabs-mode nil) -(setq-default tab-width 4) -(define-key global-map (kbd "RET") 'newline-and-indent) - -;; Save all tempfiles in $TMPDIR/emacs$UID/ -(defconst emacs-tmp-dir (format "%s/%s%s/" temporary-file-directory "emacs" (user-uid))) -(setq backup-directory-alist - `((".*" . ,emacs-tmp-dir))) -(setq auto-save-file-name-transforms - `((".*" ,emacs-tmp-dir t))) -(setq auto-save-list-file-prefix - emacs-tmp-dir) - -;; nxml-mode -(setq - nxml-child-indent 4 - nxml-attribute-indent 4 - nxml-slash-auto-complete-flag t) - -(require 'color-theme) -(color-theme-initialize) -(color-theme-high-contrast) diff --git a/emacs/apply.sh b/emacs/apply.sh deleted file mode 100755 index 01d9abb..0000000 --- a/emacs/apply.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -cp -r .emacs.d ~/ -cp -r .config/systemd ~/.config diff --git a/emacs/clear.sh b/emacs/clear.sh deleted file mode 100755 index acadedd..0000000 --- a/emacs/clear.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -rm -rf ~/.emacs.d -rm -rf ~/.config/systemd diff --git a/guake/apply.sh b/guake/apply.sh deleted file mode 100755 index 54d95fd..0000000 --- a/guake/apply.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -# add guake to autostart -test -d ~/.config/autostart || mkdir -p ~/.config/autostart -if [ -f /usr/share/applications/guake.desktop ];then - cp /usr/share/applications/guake.desktop ~/.config/autostart -fi diff --git a/guake/clear.sh b/guake/clear.sh deleted file mode 100755 index b8363ae..0000000 --- a/guake/clear.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -rm -Rf ~/.config/autostart/guake.desktop diff --git a/init_settings.sh b/init_settings.sh index a3714e8..8581810 100755 --- a/init_settings.sh +++ b/init_settings.sh @@ -17,8 +17,8 @@ MY_DO_APPLY="1" MY_SYNCS="" if [ "$1" = "all" ];then - MY_SYNCS="common mc bash gnome" - MY_SYNCS="$MY_SYNCS astyle git root" + MY_SYNCS="common mc bash vim" + MY_SYNCS="$MY_SYNCS git root" else MY_SYNCS="$*" fi @@ -49,4 +49,3 @@ for MY_SYNC in $MY_SYNCS;do fi done - diff --git a/mc/.config/mc/hotlist b/mc/.config/mc/hotlist deleted file mode 100644 index bf74e35..0000000 --- a/mc/.config/mc/hotlist +++ /dev/null @@ -1,2 +0,0 @@ -ENTRY "/sh://mvala@wiki.saske.sk/var/www/html/mvala" URL "/sh://mvala@wiki.saske.sk/var/www/html/mvala" -ENTRY "/sh://mvala@alicepc104.jinr.ru/var/www/html/mvala/srpm" URL "/sh://mvala@alicepc104.jinr.ru/var/www/html/mvala/srpm" diff --git a/nano/.nano/syntax/ALL.nanorc b/nano/.nano/syntax/ALL.nanorc deleted file mode 100644 index 60a1bba..0000000 --- a/nano/.nano/syntax/ALL.nanorc +++ /dev/null @@ -1,900 +0,0 @@ -syntax "awk" "\.awk$" -header "^#!.*bin/(env +)?awk( |$)" - -color brightyellow "\$[A-Za-z0-9_!@#$*?-]+" -color brightyellow "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>" -color brightyellow "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>" -color brightyellow "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>" -color brightblue "\<(function|extension|BEGIN|END)\>" -color red "[-+*/%^|!=&<>?;:]|\\|\[|\]" -color brightblack "\<(for|if|while|do|else|in|delete|exit)\>" -color brightblack "\<(break|continue|return)\>" -color brightblue "\<(close|getline|next|nextfile|print|printf|system|fflush)\>" -color brightblue "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>" -color brightblue "\<(asort|asorti|gensub|gsub|index|length|match)\>" -color brightblue "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>" -color brightblue "\<(mktime|strftime|systime)\>" -color brightblue "\<(and|compl|lshift|or|rshift|xor)\>" -color brightblue "\<(bindtextdomain|dcgettext|dcngettext)\>" -color magenta "/.*[^\]/" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color magenta "\\." -color cyan "(^|[[:space:]])#([^{].*)?$" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" - -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" -color black "[(]" -color brightyellow "\<[A-Z_][0-9A-Z_]+\>" -color green "\<(float|double|bool|char|int|short|long|void|(un)?signed)\>" -color green "\<[a-z0-9_]+_t\>" -color brightblack "\<(struct|enum|static|const|union|typedef|extern)\>" -color brightblack "\<(for|if|while|do|else|case|default|switch)\>" -color brightblack "\<(return|inline|sizeof|auto|register|volatile|restrict)\>" -color brightblack "\<(try|throw|catch|operator|new|delete)\>" -color brightred "\<(goto|break|continue)\>" -color brightcyan "\<(true|false)\>" -color red "[-+/*=<>?:!~%&|^]" -color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>|'.'" -color brightyellow "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)" -color magenta "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" -color yellow ""(\\.|[^"])*"|<[A-Za-z_./-]+>" -color magenta "\\([\"'abfnrtv\\]|[0-3]?[0-7]{1,2}|x[A-Fa-f0-9]{1,2}|$)" -color cyan "(^|[[:space:]])//.*" -color cyan start="/\*" end="\*/" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "cmake" "CMakeLists\.txt$|\.cmake$" - -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" -color black "[(]" -color brightcyan "\<(ON|OFF|TRUE|FALSE|YES|NO)\>" -color brightyellow "\$\{[A-Za-z0-9_!@#$*?-]+\}" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color magenta "\\([()#$^]|\\|\")" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "coffeescript" "\.coffee$" -header "^#!.*/(env +)?coffee" - -color red "[!&|=/*+-<>]|\<(and|or|is|isnt|not)\>" -color brightblue "[A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\()" "->" -color black "[()]" -color brightblack "\<(for|of|continue|break|isnt|null|unless|this|else|if|return)\>" -color brightblack "\<(try|catch|finally|throw|new|delete|typeof|in|instanceof)\>" -color brightblack "\<(debugger|switch|while|do|class|extends|super)\>" -color brightblack "\<(undefined|then|unless|until|loop|of|by|when)\>" -color brightcyan "\<(true|false|yes|no|on|off)\>" -color brightyellow "@[A-Za-z0-9_]*" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "colortest" "ColorTest$" - -color black "\" - -color red "\" -color green "\" -color yellow "\" -color blue "\" -color magenta "\" -color cyan "\" - -color brightred "\" -color brightgreen "\" -color brightyellow "\" -color brightblue "\" -color brightmagenta "\" -color brightcyan "\" -syntax "c#" "\.cs$" - -# Class -color brightmagenta "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?" - -# Annotation -color magenta "@[A-Za-z]+" - -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" -color black "[(]" -color green "\<(bool|byte|sbyte|char|decimal|double|float|IntPtr|int|uint|long|ulong|object|short|ushort|string|base|this|var|void)\>" -color brightblack "\<(alias|as|case|catch|checked|default|do|dynamic|else|finally|fixed|for|foreach|goto|if|is|lock|new|null|return|switch|throw|try|unchecked|while)\>" -color brightblack "\<(abstract|async|class|const|delegate|enum|event|explicit|extern|get|implicit|in|internal|interface|namespace|operator|out|override|params|partial|private|protected|public|readonly|ref|sealed|set|sizeof|stackalloc|static|struct|typeof|unsafe|using|value|virtual|volatile|yield)\>" -# LINQ-only keywords (ones that cannot be used outside of a LINQ query - lots others can) -color brightblack "\<(from|where|select|group|info|orderby|join|let|in|on|equals|by|ascending|descending)\>" -color brightred "\<(break|continue)\>" -color brightcyan "\<(true|false)\>" -color red "[-+/*=<>?:!~%&|]" -color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color magenta "\\([btnfr]|'|\"|\\)" -color magenta "\\u[A-Fa-f0-9]{4}" -color cyan "(^|[[:space:]])//.*" -color cyan start="/\*" end="\*/" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "css" "\.s?css$" - -# Selectors -color green "\<(a|abbr|address|area|article|aside|audio|b|base|bdo|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|eventsource|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|mark|map|menu|meta|meter|nav|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|ruby|rp|rt|samp|script|section|select|small|source|span|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|ul|var|video|wbr)\>" -color red "[>+~*]" -color brightyellow "[.#][A-Za-z_][A-Za-z0-9_-]*" -color red ":(active|focus|hover|link|visited|first-child|lang|valid|invalid|not|selection)\>" -color red ":(after|before|first-line|first-letter|root|target)\>" -color yellow "\[[^\[]*\]" -color black start="\{" end="\}" - -# Sass -color brightmagenta "(^|[[:space:]])@(include|mixin)\>" -color brightyellow "\$[A-Za-z0-9_-]+" - -color brightmagenta "(^|[[:space:]])@(charset|font-face|media|page|import)\>" -color red "[*]" -color brightcyan "\<(above|absolute|always|armenian|auto|avoid|baseline|behind|below|bidi-override|blink|block|bolder|bold|bottom|capitalize|center-left|center-right|center|circle|cjk-ideographic|close-quote|collapse|compact|condensed|continuous|crop|crosshair|cross|cue-after|cue-before|cursive|dashed|decimal|decimal-leading-zero|default|digits|disc|dotted|double|embed|e-resize|expanded|extra-condensed|extra-expanded|fantasy|far-left|far-right|faster|fast|fixed|fixed|georgian|groove|hebrew|help|hide|higher|high|hiragana-iroha|hiragana|inherit|inline|inline-block|inline-table|inset|inside|invert|italic|justify|katakana-iroha|katakana|landscape|large|larger|left|left-side|leftwards|level|lighter|line-through|list-item|loud|lower-alpha|lowercase|lower-greek|lower-latin|lower-roman|lower|low|ltr|marker|medium|medium|middle|mix|monospace|move|narrower|ne-resize|no-close-quote|none|no-open-quote|no-repeat|normal|nowrap|n-resize|nw-resize|oblique|once|open-quote|outset|outside|overline|pointer|portait|relative|repeat-x|repeat-y|repeat|ridge|right-side|right|rightwards|rlt|run-in|sans-serif|scroll|scroll|semi-condensed|semi-expanded|separate|se-resize|serif|show|silent|slower|slow|small-caps|smaller|small|soft|solid|spell-out|square|s-resize|static|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|text-bottom|text|text-top|thick|thin|top|top|transparent|ultra-condensed|ultra-expanded|underline|upper-alpha|uppercase|upper-latin|upper-roman|visible|wait|wider|w-resize|x-fast|x-high|x-large|x-loud|x-low|x-slow|x-small|x-soft|xx-large|xx-small|pre-wrap|break-word)([[:space:];,]|$)" -color brightyellow ":[[:space:]]*(code|hidden|table|pre)\>" -color brightblack "\<(background-attachment|background-clip|background-color|background-image|background-position|background-repeat|background|border-bottom-color|border-bottom-style|border-bottom-width|border-bottom|border-collapse|border-color|border-left-color|border-left-style|border-left-width|border-left|border-radius|border-right-color|border-right-style|border-right-width|border-right|border-spacing|border-style|border-top-color|border-top-style|border-top-width|border-top|border-width|border|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|content|counter-increment|counter-reset|cue-after|cue-before|cue|cursor|direction|display|elevation|empty-cells|float|font-family|font-size-adjust|font-size|font-style|font-variant|font-weight|font|height|left|letter-spacing|line-height|list-style-image|list-style-position|list-style-type|list-style|margin-bottom|margin-left|margin-right|margin-top|margin|marker-offset|marks|max-height|max-width|min-height|min-width|opacity|orphans|outline-color|outline-style|outline-width|outline|overflow|overflow-x|overflow-y|padding-bottom|padding-left|padding-right|padding-top|padding|page-break-after|page-break-before|page-break-inside|page|pause-after|pause-before|pause|pitch-range|pitch|play-during|position|quotes|richness|right|size|speak-header|speak-numerical|speak-punctuation|speak|speech-rate|stress|table-layout|text-align|text-decoration|text-indent|text-shadow|text-transform|top|transition|unicode-bidi|vertical-align|visibility|voice-family|volume|white-space|widows|width|word-spacing|word-wrap|z-index)[[:space:]]*:" -color brightwhite,red "-(ms|moz|apple|khtml|wap|webkit|o|xv)-[a-z][a-z-]+" -color black "[:;,]" -color blue "\<(0|[\+-]?[1-9][0-9]*)" -color blue "[\+-]?([0-9]+|[0-9]*\.[0-9]+)(%|e(m|x)|p(x|t|c)|in|ft|(m|c)m|k?Hz|deg|g?rad|m?s)" -color blue "#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})\>" -color red "\!important\>" -color brightblue "[a-z-]*(-[a-z]+)?\(" "\(|\)" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color cyan "(^|[[:space:]])//.*" -color cyan start="/\*" end="\*/" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "cython" "\.(pyx|pxd|pyi)$" - -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" -color black "[(]" -color brightblack "\<(and|as|assert|break|class|continue|def|del|elif|else|except)\>" -color brightblack "\<(exec|finally|for|from|global|if|import|in|is|lambda|not|or)\>" -color brightblack "\<(pass|print|raise|return|try|while|with|yield|None)\>" -color brightblack "\<(DEF|ELIF|ELSE|IF)\>" - -color brightblack "\<(cp?def( inline)?|cimport|cppclass|ctypedef|extern|include)\>" -color brightblack "\<(namespace|property|struct)\>" -color green "\<(bint|char|double|int|public|void|unsigned)\>" - -color red "[.:;,+*|=!\%@<>/&-]" -color brightyellow "@[A-Za-z0-9_]+" -color brightmagenta "__[A-Za-z0-9_]+__" -color brightcyan "\<(True|False)\>" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color yellow "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" -color yellow "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" -color yellow start=""""[^"]" end=""""" -color yellow start="'''[^']" end="'''" -color magenta "\\.?" -color cyan "(^|[[:space:]])#([^{].*)?$" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "default" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "dot" "\.(dot|gv)$" - -color brightblack "\<(digraph|edge|graph|node|subgraph)\>" -color magenta "\<(arrowhead|arrowsize|arrowtail|bgcolor|center|color|constraint|decorateP|dir|distortion|fillcolor|fontcolor|fontname|fontsize|headclip|headlabel|height|labelangle|labeldistance|labelfontcolor|labelfontname|labelfontsize|label|layers|layer|margin|mclimit|minlen|name|nodesep|nslimit|ordering|orientation|pagedir|page|peripheries|port_label_distance|rankdir|ranksep|rank|ratio|regular|rotate|samehead|sametail|shapefile|shape|sides|size|skew|style|tailclip|taillabel|URL|weight|width)\>" -color red "=|->|--" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color cyan "(^|[[:space:]])//.*" -color cyan start="/\*" end="\*/" -syntax "email" - -color magenta "^>([^>].*|$)" -color blue "^>>([^>].*|$)" -color green "^>>>.*" -syntax "gitconfig" "git(config|modules)$|\.git/config$" - -color brightcyan "\<(true|false)\>" -color brightblack "^[[:space:]]*[^=]*=" -color brightmagenta "^[[:space:]]*\[.*\]$" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT - -syntax "git-editmsg" "(COMMIT|TAG)_EDITMSG$" - -color cyan "^#.*$" -color ,red "[[:space:]]+$" - -syntax "git-rebase" "git-rebase-todo$" - -color brightblack "^(edit|fixup|pick|reword|squash|exec|[efprsx])\>" -color blue "\<[0-9a-f]{7,40}\>" -color cyan "^#.*" -syntax "glsl" "\.(frag|vert|fp|vp|glsl)$" - -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" -color black "[(]" -color green "\<(void|bool|bvec2|bvec3|bvec4|int|ivec2|ivec3|ivec4|float|vec2|vec3|vec4|mat2|mat3|mat4|struct|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler1DShadow|sampler2DShadow)\>" -color green "\" -color brightblack "\<(const|attribute|varying|uniform|in|out|inout|if|else|return|discard|while|for|do)\>" -color brightred "\<(break|continue)\>" -color brightcyan "\<(true|false)\>" -color red "[-+/*=<>?:!~%&|^]" -color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>" -color cyan "(^|[[:space:]])//.*" -color cyan start="/\*" end="\*/" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "go" "\.go$" - -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" -color black "[(]" -color brightblue "\<(append|cap|close|complex|copy|delete|imag|len)\>" -color brightblue "\<(make|new|panic|print|println|protect|real|recover)\>" -color green "\<(u?int(8|16|32|64)?|float(32|64)|complex(64|128))\>" -color green "\<(uintptr|byte|rune|string|interface|bool|map|chan|error)\>" -color brightblack "\<(package|import|const|var|type|struct|func|go|defer|nil|iota)\>" -color brightblack "\<(for|range|if|else|case|default|switch|return)\>" -color brightred "\<(go|goto|break|continue)\>" -color brightcyan "\<(true|false)\>" -color red "[-+/*=<>!~%&|^]|:=" -color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>|'.'" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color magenta "\\[abfnrtv'\"\\]" -color magenta "\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})" -color yellow "`[^`]*`" -color cyan "(^|[[:space:]])//.*" -color cyan start="/\*" end="\*/" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "html" "\.html?$" -header "" -color brightwhite,red "]" -color brightmagenta "]" -color yellow "=([A-Za-z0-9!$%*\^(){}#|:;_~@+,.?/\\-]|\[|\])+" -color red "=" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color black start=">" end="<" -color brightmagenta "[<>]" - -# Embedded template languages -color brightyellow "\{\{[^}]*\}\}|<%=.*%>" -color brightblue start="<\?" end="\?>" -color brightblue start="<%[^=]" end="%>" -color brightblue start="\{%" end="%\}" - -color magenta "&(#[0-9]+|#x[0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);" -color cyan start="" -color cyan "]*>" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "ini" "\.(ini|desktop|lfl|override)$" "(mimeapps\.list|pinforc|setup\.cfg)$" "weechat/.+\.conf$" -header "^\[[A-Za-z]+\]$" - -color brightcyan "\<(true|false)\>" -color brightblack "^[[:space:]]*[^=]*=" -color brightmagenta "^[[:space:]]*\[.*\]$" -color red "[=;]" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "inputrc" "inputrc$" - -color red "\<(off|none)\>" -color green "\" -color brightblue "\" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color magenta "\\.?" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "java" "\.java$" - -# Class -color brightmagenta "class +[A-Za-z0-9]+ *((implements|extends) +[A-Za-z0-9.]+)?" - -# Annotation -color magenta "@[A-Za-z]+" - -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" -color black "[(]" -color green "\<(boolean|byte|char|double|float|int|long|short|String|void)\>" -color brightblack "\<(case|catch|default|do|else|finally|for|if)\>" -color brightblack "\<(new|return|switch|this|throw|transient|try|while)\>" -color brightblack "\<(abstract|class|extends|final|implements|import|instanceof)\>" -color brightblack "\<(interface|native|package|private|protected|public|static)\>" -color brightblack "\<(strictfp|super|synchronized|throws|volatile|null)\>" -color brightred "\<(break|continue)\>" -color brightcyan "\<(true|false)\>" -color red "[-+/*=<>?:!~%&|]" -color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color magenta "\\([btnfr]|'|\"|\\)" -color magenta "\\u[A-Fa-f0-9]{4}" -color cyan "(^|[[:space:]])//.*" -color cyan start="/\*" end="\*/" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "JavaScript" "\.js$" - -color blue "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" -color blue "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" -color blue "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" -color black "[(]" -color brightblack "\<(break|case|catch|continue|default|delete|do|else|finally)\>" -color brightblack "\<(for|function|get|if|in|instanceof|new|return|set|switch)\>" -color brightblack "\<(switch|this|throw|try|typeof|var|void|while|with)\>" -color brightblack "\<(null|undefined|NaN)\>" -color brightcyan "\<(true|false)\>" -color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" -color green "\<(Number|Object|RegExp|String)\>" -color red "[-+/*=<>!~%?:&|]" -color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" -color cyan "(^|[[:space:]])//.*" -color cyan start="/\*" end="\*/" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "json" "\.json$" -header "^\{$" - -color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>" -color brightblack "\" -color brightcyan "\<(true|false)\>" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightyellow "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:" -color magenta "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "keymap" "\.(k|key)?map$|Xmodmap$" - -color brightblack "\<(add|clear|compose|keycode|keymaps|keysym|remove|string)\>" -color brightblack "\<(control|alt|shift)\>" -color blue "\<[0-9]+\>" -color red "=" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color cyan "^!.*$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "KickStart" "\.ks$" "\.kickstart$" - -color brightmagenta "%[a-z]+" -color brightblack "^[[:space:]]*(install|cdrom|text|graphical|volgroup|logvol|reboot|timezone|lang|keyboard|authconfig|firstboot|rootpw|user|firewall|selinux|repo|part|partition|clearpart|bootloader)" -color brightblack "--(name|mirrorlist|baseurl|utc)(=|\>)" -color brightyellow "\$(releasever|basearch)\>" - -# Packages and groups -color brightblack "^@[A-Za-z][A-Za-z-]*" -color brightred "^-@[a-zA-Z0-9*-]+" -color red "^-[a-zA-Z0-9*-]+" - -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "ledger" "(^|\.|/)ledger$" - -color brightmagenta "^([0-9]{4}/[0-9]{2}/[0-9]{2}|[=~]) .*" -color blue "^[0-9]{4}/[0-9]{2}/[0-9]{2}" -color brightyellow "^~ .*" -color brightblue "^= .*" -color brightblack "^[[:space:]]+\(?[A-Za-z ]+(:[A-Za-z ]+)*\)?" -color red "[*]" -color cyan "^[[:space:]]*;.*" -syntax "lisp" "(emacs|zile)$" "\.(el|li?sp|scm|ss)$" - -color brightblue "\([a-z-]+" -color red "\(([-+*/<>]|<=|>=)|'" -color black "\(" -color blue "\<[0-9]+\>" -icolor brightblack "\" -color brightcyan "\<[tT]\>" -color yellow "\"(\\.|[^"])*\"" -color magenta "'[A-Za-z][A-Za-z0-9_-]+" -color magenta "\\.?" -color cyan "(^|[[:space:]]);.*" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "lua" "\.lua$" -header "^#!.*lua(jit)?$" - -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*([({'"]|\[=*\[)" -color brightblack "\<(do|end|while|repeat|until|if|elseif|then|else)\>" -color brightblack "\<(for|in|function|local|return|nil)\>" -color brightred "\<(goto|break)\>" -color brightcyan "\<(true|false)\>" -color red "[-+:*/%^=#<>]|~=|\.\.|\[|\]|\<(not|and|or)\>" -color brightwhite,red "[`!@$&|?]|!=" -color black "\.{3,}|[({'"]" -color blue "\<([0-9]+)(\.[0-9]+)?([Ee][+-]?[0-9]+)?\>|0x[0-9a-fA-F]*" -color brightmagenta "::[A-Za-z_][A-Za-z0-9_]*::" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color magenta "\\([0-9]{1,3}|x[A-Fa-f0-9]{2}|[abefntrv'"\\]|\[|\])" -color yellow start="\[\[" end="\]\]" -color yellow start="\[=\[" end="\]=\]" -color yellow start="\[==\[" end="\]==\]" -color cyan "^#!.*" "(^|[[:space:]])\-\-.*$" -color cyan start="\-\-\[\[" end="\]\]" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "makefile" "([Mm]akefile|\.ma?k)$" -header "^#!.*/(env +)?[bg]?make( |$)" - -color brightblack "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>" -color brightblack "^(export|include|override)\>" -color brightmagenta "^[^:= ]+:" -color red "[=,%]" "\+=|\?=|:=|&&|\|\|" -color brightblue "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]" -color brightblue "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]" -color brightblue "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]" -color brightblue "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]" -color brightblue "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]" -color black "[()$]" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightyellow "\$+(\{[^} ]+\}|\([^) ]+\))" -color brightyellow "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)" -color magenta "\$\$|\\.?" -color cyan "(^|[[:space:]])#([^{].*)?$" -color cyan "^ @#.*" - -# Show trailing whitespace -color ,green "[[:space:]]+$" -syntax "man" "\.[1-9]x?$" - -color brightmagenta "\.(S|T)H.*$" -color brightblack "\.(BR?|I[PR]?).*$" -color brightyellow "\.(S|T)H|\.TP|\.(BR?|I[PR]?|PP)|\\f[BIPR]" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color yellow "\.(br|DS|RS|RE|PD)" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "markdown" "\.(md|mkd|mkdn|markdown)$" - -# Emphasis -color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)" - -# Strong emphasis -color brightgreen "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)" - -color brightmagenta "^=====*$|^-----*$|^#{1,6}.*" -color blue "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. " -color black "^[[:space:]]+" -color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])" -color brightyellow "\!?\[[^]]*\]([[:space:]]*\[[^]]*\]|\(.*\))?" -color brightyellow "^\[.*\]:[[:space:]]*[^"]*" -color yellow "`[^`]*`|^ {4}[^-+*].*" -color cyan "^>.*" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "mpdconf" "mpd\.conf$" - -color brightblack "\<(user|group|bind_to_address|host|port|plugin|name|type)\>" -color brightblack "\<((music|playlist)_directory|(db|log|state|pid|sticker)_file)\>" -color brightmagenta "^(input|audio_output|decoder)[[:space:]]*\{|\}" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "nanorc" "nanorc$" -header "^syntax +\"" - -color green "^i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>" -color brightblack "^(set|unset)[[:space:]]+(allow_insecure_backup|autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|poslog|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|softwrap|speller|suspend|suspendenable|tabsize|tabstospaces|tempfile|undo|view|whitespace|wordbounds)\>" -color brightblack "^(bind|i?color|set|unset|syntax|header|magic)\>" -color red "^unbind\>" -color brightblack "^i?color\>" "\<(start|end)=" -color brightyellow "^include\>" - -color brightblack "^(PLAIN|TYPE|STRING|MACRO|NUMBER|VARIABLE|OPERATOR|~?KEYWORD):" -color brightblack "^(BOOLEAN|SECTION|REGEXP|FUNCTION|ESCAPE|COMMENT|WARNING|JUMP):" -color brightblack "^(TAG|ATTRIBUTE):" -color brightyellow "^\+(TODO|LINT|STRING|BOOLEAN|FUNCTION|INI|(C|HASH)COMMENT)$" - -color magenta "\\.?" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "nginx" "nginx.*\.conf$" "\.nginx$" -header "^(server|upstream)[a-z ]*\{$" - -color brightmagenta "\<(events|server|http|location|upstream)[[:space:]]*\{" -color brightblack "(^|[[:space:]{;])(access_log|add_after_body|add_before_body|add_header|addition_types|aio|alias|allow|ancient_browser|ancient_browser_value|auth_basic|auth_basic_user_file|autoindex|autoindex_exact_size|autoindex_localtime|break|charset|charset_map|charset_types|chunked_transfer_encoding|client_body_buffer_size|client_body_in_file_only|client_body_in_single_buffer|client_body_temp_path|client_body_timeout|client_header_buffer_size|client_header_timeout|client_max_body_size|connection_pool_size|create_full_put_path|daemon|dav_access|dav_methods|default_type|deny|directio|directio_alignment|disable_symlinks|empty_gif|env|error_log|error_page|expires|fastcgi_buffer_size|fastcgi_buffers|fastcgi_busy_buffers_size|fastcgi_cache|fastcgi_cache_bypass|fastcgi_cache_key|fastcgi_cache_lock|fastcgi_cache_lock_timeout|fastcgi_cache_min_uses|fastcgi_cache_path|fastcgi_cache_use_stale|fastcgi_cache_valid|fastcgi_connect_timeout|fastcgi_hide_header|fastcgi_ignore_client_abort|fastcgi_ignore_headers|fastcgi_index|fastcgi_intercept_errors|fastcgi_keep_conn|fastcgi_max_temp_file_size|fastcgi_next_upstream|fastcgi_no_cache|fastcgi_param|fastcgi_pass|fastcgi_pass_header|fastcgi_read_timeout|fastcgi_send_timeout|fastcgi_split_path_info|fastcgi_store|fastcgi_store_access|fastcgi_temp_file_write_size|fastcgi_temp_path|flv|geo|geoip_city|geoip_country|gzip|gzip_buffers|gzip_comp_level|gzip_disable|gzip_http_version|gzip_min_length|gzip_proxied|gzip_static|gzip_types|gzip_vary|if|if_modified_since|ignore_invalid_headers|image_filter|image_filter_buffer|image_filter_jpeg_quality|image_filter_sharpen|image_filter_transparency|include|index|internal|ip_hash|keepalive|keepalive_disable|keepalive_requests|keepalive_timeout|large_client_header_buffers|limit_conn|limit_conn_log_level|limit_conn_zone|limit_except|limit_rate|limit_rate_after|limit_req|limit_req_log_level|limit_req_zone|limit_zone|lingering_close|lingering_time|lingering_timeout|listen|location|log_format|log_not_found|log_subrequest|map|map_hash_bucket_size|map_hash_max_size|master_process|max_ranges|memcached_buffer_size|memcached_connect_timeout|memcached_next_upstream|memcached_pass|memcached_read_timeout|memcached_send_timeout|merge_slashes|min_delete_depth|modern_browser|modern_browser_value|mp4|mp4_buffer_size|mp4_max_buffer_size|msie_padding|msie_refresh|open_file_cache|open_file_cache_errors|open_file_cache_min_uses|open_file_cache_valid|open_log_file_cache|optimize_server_names|override_charset|pcre_jit|perl|perl_modules|perl_require|perl_set|pid|port_in_redirect|postpone_output|proxy_buffer_size|proxy_buffering|proxy_buffers|proxy_busy_buffers_size|proxy_cache|proxy_cache_bypass|proxy_cache_key|proxy_cache_lock|proxy_cache_lock_timeout|proxy_cache_min_uses|proxy_cache_path|proxy_cache_use_stale|proxy_cache_valid|proxy_connect_timeout|proxy_cookie_domain|proxy_cookie_path|proxy_hide_header|proxy_http_version|proxy_ignore_client_abort|proxy_ignore_headers|proxy_intercept_errors|proxy_max_temp_file_size|proxy_next_upstream|proxy_no_cache|proxy_pass|proxy_pass_header|proxy_read_timeout|proxy_redirect|proxy_send_timeout|proxy_set_header|proxy_ssl_session_reuse|proxy_store|proxy_store_access|proxy_temp_file_write_size|proxy_temp_path|random_index|read_ahead|real_ip_header|recursive_error_pages|request_pool_size|reset_timedout_connection|resolver|resolver_timeout|return|rewrite|root|satisfy|satisfy_any|secure_link_secret|send_lowat|send_timeout|sendfile|sendfile_max_chunk|server|server|server_name|server_name_in_redirect|server_names_hash_bucket_size|server_names_hash_max_size|server_tokens|set|set_real_ip_from|source_charset|split_clients|ssi|ssi_silent_errors|ssi_types|ssl|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_client_certificate|ssl_crl|ssl_dhparam|ssl_engine|ssl_prefer_server_ciphers|ssl_protocols|ssl_session_cache|ssl_session_timeout|ssl_verify_client|ssl_verify_depth|sub_filter|sub_filter_once|sub_filter_types|tcp_nodelay|tcp_nopush|timer_resolution|try_files|types|types_hash_bucket_size|types_hash_max_size|underscores_in_headers|uninitialized_variable_warn|upstream|user|userid|userid_domain|userid_expires|userid_name|userid_p3p|userid_path|userid_service|valid_referers|variables_hash_bucket_size|variables_hash_max_size|worker_priority|worker_processes|worker_rlimit_core|worker_rlimit_nofile|working_directory|xml_entities|xslt_stylesheet|xslt_types)([[:space:]]|$)" -color black "[{}]" -color brightcyan "\<(on|off)\>" -color brightyellow "\$[A-Za-z][A-Za-z0-9_]*" -color red "[*]" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color yellow start="'$" end="';$" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "patch" "\.(patch|diff)$" - -color brightgreen "^\+.*" -color green "^\+\+\+.*" -color brightred "^-.*" -color red "^---.*" -color blue "^@@.*" -color magenta "^diff.*" - -syntax "peg" "\.l?peg$" - -color brightblack "^[[:space:]]*[A-Za-z][A-Za-z0-9_]*[[:space:]]*<-" -color blue "\^[+-]?[0-9]+" -color red "[-+*?^/!&]|->|<-|=>" -color brightyellow "%[A-Za-z][A-Za-z0-9_]*" -color magenta "\[[^]]*\]" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color cyan "(^|[[:space:]])\-\-.*$" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "php" "\.php[2345s~]?$" -header "^(//|/\*).*[Pp][Hh][Pp]|<\?php\>" - -color red "[-+/*=<>?:!~%&|]" -color brightmagenta "(<\?(php)?|\?>)" -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" -color black "[(]" -color green "\<(float|global|double|bool|char|int|enum|const)\>" -color brightblack "\<(class|new|private|public|function|for|foreach|if|while|do|var)\>" -color brightblack "\<(return|else|elseif|case|default|switch)\>" -color brightred "\<(goto|break|continue)\>" -color brightcyan "\<(true|false)\>" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightyellow "\$[A-Za-z_][A-Za-z0-9_]*" -color cyan "(^|[[:space:]])//.*" -color cyan start="/\*" end="\*/" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "pkgbuild" "PKGBUILD$" "\.install$" - -color brightblue "^[A-Za-z0-9_+-]+[[:space:]]*\(\)" -color brightblack "\<(case|do|done|elif|else|esac|fi|for|function|if)\>" -color brightblack "\<(in|select|then|time|until|while)\>" -color brightblue "\<(echo|exit|export|let|local|read|return|set|shift|umask|unset)\>" -color green "\<(pkgname|pkgver|pkgrel|epoch|pkgdesc|arch|url|license)\>" -color green "\<(groups|depends|makedepends|checkdepends|optdepends)\>" -color green "\<(provides|conflicts|replaces|backup|options|^install)\>" -color green "\<(changelog|source|noextract)\>" -color green "\<(md5sums|sha1sums|sha256sums|sha384sums|sha512sums)\>" -color green "\<(srcdir|pkgdir)\>" -color brightyellow "\<(strip|docs|libtool|emptydirs|zipman|purge|upx)\>" -color brightyellow "\<(ccache|distcc|buildflags|makeflags)\>" -color red "[{}()<>!=&|;`$]|\\|\[|\]|-(eq|ne|gt|lt|ge|le|s|n|z)\>" -color yellow ""(\\.|[^"])*"" -color brightyellow "\$\{?[A-Za-z0-9_!@#$*?-]+\}?|`[^`]*`" -color yellow "'(\\.|[^'])*'" -color magenta "\\.?" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "pkg-config" "\.pc$" - -color brightblack "^(Name|Description|URL|Version|Conflicts|Cflags):" -color brightblack "^(Requires|Libs)(\.private)?:" -color red "=" -color brightyellow "\$\{[A-Za-z_][A-Za-z0-9_]*\}" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "po" "\.pot?$" - -color brightblack "\<(msgid|msgstr)\>" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color magenta "\\.?" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "privoxy-config" "privoxy/config$" - -color brightblack "(accept-intercepted-requests|actionsfile|admin-address|allow-cgi-request-crunching|buffer-limit|compression-level|confdir|connection-sharing|debug|default-server-timeout|deny-access|enable-compression|enable-edit-actions|enable-remote-http-toggle|enable-remote-toggle|enforce-blocks|filterfile|forward|forwarded-connect-retries|forward-socks4|forward-socks4a|forward-socks5|handle-as-empty-doc-returns-ok|hostname|keep-alive-timeout|listen-address|logdir|logfile|max-client-connections|permit-access|proxy-info-url|single-threaded|socket-timeout|split-large-forms|templdir|toggle|tolerate-pipelining|trustfile|trust-info-url|user-manual)[[:space:]]" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT - -syntax "privoxy-action" "\.action$" - -color brightred "[{[:space:]]\-block([[:space:]{}]|$)" -color brightgreen "[{[:space:]]\+block([[:space:]{}]|$)" - -color brightred "-(add-header|change-x-forwarded-for|client-header-filter|client-header-tagger|content-type-overwrite|crunch-client-header|crunch-if-none-match|crunch-incoming-cookies|crunch-outgoing-cookies|crunch-server-header|deanimate-gifs|downgrade-http-version|fast-redirects|filter|force-text-mode|forward-override|handle-as-empty-document|handle-as-image|hide-accept-language|hide-content-disposition|hide-from-header|hide-if-modified-since|hide-referrer|hide-user-agent|limit-connect|overwrite-last-modified|prevent-compression|redirect|server-header-filter|server-header-tagger|session-cookies-only|set-image-blocker)" -color brightgreen "\+(add-header|change-x-forwarded-for|client-header-filter|client-header-tagger|content-type-overwrite|crunch-client-header|crunch-if-none-match|crunch-incoming-cookies|crunch-outgoing-cookies|crunch-server-header|deanimate-gifs|downgrade-http-version|fast-redirects|filter|force-text-mode|forward-override|handle-as-empty-document|handle-as-image|hide-accept-language|hide-content-disposition|hide-from-header|hide-if-modified-since|hide-referrer|hide-user-agent|limit-connect|overwrite-last-modified|prevent-compression|redirect|server-header-filter|server-header-tagger|session-cookies-only|set-image-blocker)" -color black "[{}]" -color magenta "\\.?" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT - -syntax "privoxy-filter" "\.filter$" - -color brightblack "^(FILTER|CLIENT-HEADER-FILTER|CLIENT-HEADER-TAGGER|SERVER-HEADER-FILTER|SERVER-HEADER-TAGGER): [a-z-]+" -color brightblue "^(FILTER|CLIENT-HEADER-FILTER|CLIENT-HEADER-TAGGER|SERVER-HEADER-FILTER|SERVER-HEADER-TAGGER):" -color magenta "\\.?" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT - -syntax "properties" "\.properties$" - -color brightblack "^[[:space:]]*[^#!]([^:= ]|\\[:= ])*[:= ]" -color red "[:=]" -color magenta "\\([#!=: ]|$)" -color magenta "\\u[[:xdigit:]]{4}" -color cyan "^[[:space:]]*[#!].*$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "python" "\.py$" "jhbuildrc$" -header "^#!.*/(env +)?python[-0-9._]*( |$)" - -color brightblack "\<(as|assert|break|class|continue|def|del|elif|else|except)\>" -color brightblack "\<(exec|finally|for|from|global|if|import|lambda)\>" -color brightblack "\<(pass|print|raise|return|try|while|with|yield|None)\>" -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" -color black "[(]" -color red "[-+*/|=%<>&~^]|\<(and|not|or|is|in)\>" -color brightyellow "@[A-Za-z0-9_]+" -color brightmagenta "__[A-Za-z0-9_]+__" -color brightcyan "\<(True|False)\>" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color yellow "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" -color yellow "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" -color yellow start=""""[^"]" end=""""" -color yellow start="'''[^']" end="'''" -color magenta "\\.?" -color cyan "(^|[[:space:]])#([^{].*)?$" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "rpmspec" "\.spec$" "\.rpmspec$" - -color brightblack "\<(Icon|ExclusiveOs|ExcludeOs):" -color brightblack "\<(BuildArch|BuildArchitectures|ExclusiveArch|ExcludeArch):" -color brightblack "\<(Conflicts|Obsoletes|Provides|Requires|Requires\(.*\)|Enhances|Suggests|BuildConflicts|BuildRequires|Recommends|PreReq|Supplements):" -color brightblack "\<(Epoch|Serial|Nosource|Nopatch):" -color brightblack "\<(AutoReq|AutoProv|AutoReqProv):" -color brightblack "\<(Copyright|License|Summary|Summary\(.*\)|Distribution|Vendor|Packager|Group|Source[0-9]*|Patch[0-9]*|BuildRoot|Prefix):" -color brightblack "\<(Name|Version|Release|Url|URL):" -color brightblack start="^(Source|Patch)" end=":" -color brightblack "(i386|i486|i586|i686|athlon|ia64|alpha|alphaev5|alphaev56|alphapca56|alphaev6|alphaev67|sparc|sparcv9|sparc64armv3l|armv4b|armv4lm|ips|mipsel|ppc|ppc|iseries|ppcpseries|ppc64|m68k|m68kmint|Sgi|rs6000|i370|s390x|s390|noarch)" -color brightblack "(ifarch|ifnarch|ifos|ifnos)" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightyellow "%(if|else|endif|define|global|undefine)" -color brightyellow "%_?([A-Z_a-z_0-9_]*)" -color brightyellow start="%\{" end="\}" -color brightyellow start="%\{__" end="\}" -color brightyellow "\$(RPM_BUILD_ROOT)\>" -color brightmagenta "^%(build$|changelog|check$|clean$|description)" -color brightmagenta "^%(files|install$|package|prep$)" -color brightmagenta "^%(pre|preun|pretrans|post|postun|posttrans)" -color brightmagenta "^%(trigger|triggerin|triggerpostun|triggerun|verifyscript)" -color cyan "(^|[[:space:]])#([^{].*)?$" -color blue "^\*.*$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -color brightwhite,cyan "TODO:?" -syntax "ruby" "\.rb$|Rakefile$" - -color brightblack "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>" -color yellow "(^|[[:space:]]):[A-Za-z0-9_]+\>" -color magenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color cyan "(^|[[:space:]])#([^{].*)?$" -color cyan start="^=begin$" end="^=end$" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "sed" "\.sed$" -header "^#!.*bin/(env +)?sed( |$)" - -color red "[|^$.*+]" -color brightyellow "\{[0-9]+,?[0-9]*\}" -color magenta "\\." -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "sh" "\.sh$" "\.bash$" "bashrc$" "bash_profile$" -header "^#!.*/(env +)?(ba|k|pdk)?sh[-0-9_]*( |$)" - -color brightblue "^[A-Za-z0-9_+-]+[[:space:]]*\(\)" -color brightblack "\<(case|do|done|elif|else|esac|fi|for|function|if)\>" -color brightblack "\<(in|select|then|time|until|while)\>" -color brightblue "\<(echo|exit|export|let|local|read|return|set|shift|umask|unset)\>" -color brightblue "\<(source)\>" -color red "[{}()<>!=&|;`$]|\\|\[|\]|-(eq|ne|gt|lt|ge|le|s|n|z)\>" -color yellow ""(\\.|[^"])*"" -color brightyellow "\$\{?[A-Za-z0-9_!@#$*?-]+\}?|`[^`]*`" -color yellow "'(\\.|[^'])*'" -color magenta "\\.?" -color cyan "(^|[[:space:]])#([^{].*)?$" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "sql" "\.sql$" "sqliterc$" - -icolor brightblack "\<(ALL|ASC|AS|ALTER|AND|ADD|AUTO_INCREMENT)\>" -icolor brightblack "\<(BETWEEN|BINARY|BOTH|BY|BOOLEAN)\>" -icolor brightblack "\<(CHANGE|CHECK|COLUMNS|COLUMN|CROSS|CREATE)\>" -icolor brightblack "\<(DATABASES|DATABASE|DATA|DELAYED|DESCRIBE|DESC|DISTINCT|DELETE|DROP|DEFAULT)\>" -icolor brightblack "\<(ENCLOSED|ESCAPED|EXISTS|EXPLAIN)\>" -icolor brightblack "\<(FIELDS|FIELD|FLUSH|FOR|FOREIGN|FUNCTION|FROM)\>" -icolor brightblack "\<(GROUP|GRANT|HAVING)\>" -icolor brightblack "\<(IGNORE|INDEX|INFILE|INSERT|INNER|INTO|IDENTIFIED|IN|IS|IF)\>" -icolor brightblack "\<(JOIN|KEYS|KILL|KEY)\>" -icolor brightblack "\<(LEADING|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCK|LOW_PRIORITY|LEFT|LANGUAGE)\>" -icolor brightblack "\<(MODIFY|NATURAL|NOT|NULL|NEXTVAL)\>" -icolor brightblack "\<(OPTIMIZE|OPTION|OPTIONALLY|ORDER|OUTFILE|OR|OUTER|ON)\>" -icolor brightblack "\<(PROCEDURE|PROCEDURAL|PRIMARY)\>" -icolor brightblack "\<(READ|REFERENCES|REGEXP|RENAME|REPLACE|RETURN|REVOKE|RLIKE|RIGHT)\>" -icolor brightblack "\<(SHOW|SONAME|STATUS|STRAIGHT_JOIN|SELECT|SETVAL|SET)\>" -icolor brightblack "\<(TABLES|TERMINATED|TO|TRAILING|TRUNCATE|TABLE|TEMPORARY|TRIGGER|TRUSTED)\>" -icolor brightblack "\<(UNIQUE|UNLOCK|USE|USING|UPDATE|VALUES|VARIABLES|VIEW)\>" -icolor brightblack "\<(WITH|WRITE|WHERE|ZEROFILL|TYPE|XOR)\>" -color green "\<(VARCHAR|TINYINT|TEXT|DATE|SMALLINT|MEDIUMINT|INT|INTEGER|BIGINT|FLOAT|DOUBLE|DECIMAL|DATETIME|TIMESTAMP|TIME|YEAR|UNSIGNED|CHAR|TINYBLOB|TINYTEXT|BLOB|MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT|ENUM|BOOL|BINARY|VARBINARY)\>" - -# SQLite meta commands -icolor brightblack "\.\<(databases|dump|echo|exit|explain|header(s)?|help)\>" -icolor brightblack "\.\<(import|indices|mode|nullvalue|output|prompt|quit|read)\>" -icolor brightblack "\.\<(schema|separator|show|tables|timeout|width)\>" -color brightcyan "\<(ON|OFF)\>" - -color blue "\<([0-9]+)\>" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color yellow "`(\\.|[^\\`])*`" -color cyan "\-\-.*$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "systemd" "\.(service|socket|mount|slice|target|timer|path)$" -header "^\[Unit\]$" - -color brightblack "^(Accept|After|Alias|AllowIsolate|Also|ANSI_COLOR|_AUDIT_LOGINUID|_AUDIT_SESSION|Backlog|Before|BindIPv6Only|BindsTo|BindToDevice|BlockIOReadBandwidth|BlockIOWeight|BlockIOWriteBandwidth|_BOOT_ID|Broadcast|BUG_REPORT_URL|BusName|Capabilities|CapabilityBoundingSet|CHASSIS|cipher|class|_CMDLINE|CODE_FILE|CODE_FUNC|CODE_LINE|_COMM|Compress|ConditionACPower|ConditionCapability|ConditionDirectoryNotEmpty|ConditionFileIsExecutable|ConditionFileNotEmpty|ConditionHost|ConditionKernelCommandLine|ConditionNull|ConditionPathExists|ConditionPathExistsGlob|ConditionPathIsDirectory|ConditionPathIsMountPoint|ConditionPathIsReadWrite|ConditionPathIsSymbolicLink|ConditionSecurity|ConditionVirtualization|Conflicts|ControlGroup|ControlGroupAttribute|ControlGroupModify|ControlGroupPersistent|controllers|Controllers|CPE_NAME|CPUAffinity|CPUSchedulingPolicy|CPUSchedulingPriority|CPUSchedulingResetOnFork|CPUShares|CrashChVT|CrashShell|__CURSOR|debug|DefaultControllers|DefaultDependencies|DefaultLimitAS|DefaultLimitCORE|DefaultLimitCPU|DefaultLimitDATA|DefaultLimitFSIZE|DefaultLimitLOCKS|DefaultLimitMEMLOCK|DefaultLimitMSGQUEUE|DefaultLimitNICE|DefaultLimitNOFILE|DefaultLimitNPROC|DefaultLimitRSS|DefaultLimitRTPRIO|DefaultLimitRTTIME|DefaultLimitSIGPENDING|DefaultLimitSTACK|DefaultStandardError|DefaultStandardOutput|Description|DeviceAllow|DeviceDeny|DirectoryMode|DirectoryNotEmpty|Documentation|DumpCore|entropy|Environment|EnvironmentFile|ERRNO|event_timeout|_EXE|ExecReload|ExecStart|ExecStartPost|ExecStartPre|ExecStop|ExecStopPost|ExecStopPre|filter|FONT|FONT_MAP|FONT_UNIMAP|ForwardToConsole|ForwardToKMsg|ForwardToSyslog|FreeBind|freq|FsckPassNo|fstab|_GID|Group|GuessMainPID|HandleHibernateKey|HandleLidSwitch|HandlePowerKey|HandleSuspendKey|hash|HibernateKeyIgnoreInhibited|HOME_URL|_HOSTNAME|ICON_NAME|ID|IdleAction|IdleActionSec|ID_LIKE|ID_MODEL|ID_MODEL_FROM_DATABASE|IgnoreOnIsolate|IgnoreOnSnapshot|IgnoreSIGPIPE|InaccessibleDirectories|InhibitDelayMaxSec|init|IOSchedulingClass|IOSchedulingPriority|IPTOS|IPTTL|JobTimeoutSec|JoinControllers|KeepAlive|KEYMAP|KEYMAP_TOGGLE|KillExcludeUsers|KillMode|KillOnlyUsers|KillSignal|KillUserProcesses|LidSwitchIgnoreInhibited|LimitAS|LimitCORE|LimitCPU|LimitDATA|LimitFSIZE|LimitLOCKS|LimitMEMLOCK|LimitMSGQUEUE|LimitNICE|LimitNOFILE|LimitNPROC|LimitRSS|LimitRTPRIO|LimitRTTIME|LimitSIGPENDING|LimitSTACK|link_priority|valueListenDatagram|ListenFIFO|ListenMessageQueue|ListenNetlink|ListenSequentialPacket|ListenSpecial|ListenStream|LogColor|LogLevel|LogLocation|LogTarget|luks|_MACHINE_ID|MakeDirectory|Mark|MaxConnections|MaxFileSec|MaxLevelConsole|MaxLevelKMsg|MaxLevelStore|MaxLevelSyslog|MaxRetentionSec|MemoryLimit|MemorySoftLimit|MESSAGE|MESSAGE_ID|MessageQueueMaxMessages|MessageQueueMessageSize|__MONOTONIC_TIMESTAMP|MountFlags|NAME|NAutoVTs|Nice|NonBlocking|NoNewPrivileges|NotifyAccess|OnActiveSec|OnBootSec|OnCalendar|OnFailure|OnFailureIsolate|OnStartupSec|OnUnitActiveSec|OnUnitInactiveSec|OOMScoreAdjust|Options|output|PAMName|PartOf|PassCredentials|PassSecurity|PathChanged|PathExists|PathExistsGlob|PathModified|PermissionsStartOnly|_PID|PIDFile|PipeSize|PowerKeyIgnoreInhibited|PRETTY_HOSTNAME|PRETTY_NAME|Priority|PRIORITY|PrivateNetwork|PrivateTmp|PropagatesReloadTo|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RequiredBy|Requires|RequiresMountsFor|RequiresOverridable|Requisite|RequisiteOverridable|ReserveVT|ResetControllers|Restart|RestartPreventExitStatus|RestartSec|RootDirectory|RootDirectoryStartOnly|RuntimeKeepFree|RuntimeMaxFileSize|RuntimeMaxUse|RuntimeWatchdogSec|samples|scale_x|scale_y|Seal|SecureBits|_SELINUX_CONTEXT|SendBuffer|SendSIGKILL|Service|ShowStatus|ShutdownWatchdogSec|size|SmackLabel|SmackLabelIPIn|SmackLabelIPOut|SocketMode|Sockets|SourcePath|_SOURCE_REALTIME_TIMESTAMP|SplitMode|StandardError|StandardInput|StandardOutput|StartLimitAction|StartLimitBurst|StartLimitInterval|static_node|StopWhenUnneeded|Storage|string_escape|none|replaceSuccessExitStatus|SupplementaryGroups|SUPPORT_URL|SuspendKeyIgnoreInhibited|SyslogFacility|SYSLOG_FACILITY|SyslogIdentifier|SYSLOG_IDENTIFIER|SyslogLevel|SyslogLevelPrefix|SYSLOG_PID|SystemCallFilter|SYSTEMD_ALIAS|_SYSTEMD_CGROUP|_SYSTEMD_OWNER_UID|SYSTEMD_READY|_SYSTEMD_SESSION|_SYSTEMD_UNIT|_SYSTEMD_USER_UNIT|SYSTEMD_WANTS|SystemKeepFree|SystemMaxFileSize|SystemMaxUse|SysVStartPriority|TCPCongestion|TCPWrapName|timeout|TimeoutSec|TimeoutStartSec|TimeoutStopSec|TimerSlackNSec|Transparent|_TRANSPORT|tries|TTYPath|TTYReset|TTYVHangup|TTYVTDisallocate|Type|_UID|UMask|Unit|User|UtmpIdentifier|VERSION|VERSION_ID|WantedBy|Wants|WatchdogSec|What|Where|WorkingDirectory)=" -color brightblue "^\.include\>" -color red "=" -color brightmagenta "^\[(Unit|Install|Service|Socket|Mount|Timer|Path)\]" -color brightyellow "\$MAINPID" -color brightcyan "\<(true|false)\>" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "tex" "\.(tex|cls|ltx|sty|dtx|ins|bbl)$" - -color brightyellow "\\[A-Za-z]+" -color brightmagenta "\\section" -color cyan "%.*" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "vala" "\.vala$" - -color green "\<(float|double|bool|char|int|uint|short|long|void|(un)?signed)\>" -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" -color black "[(]" -color brightblack "\<(for|if|while|do|else|case|default|switch|try|throw|catch)\>" -color brightblack "\<(inline|typedef|struct|enum|union|extern|static|const)\>" -color brightblack "\<(operator|new|delete|return|null|using)\>" -color brightblack "\<(class|override|private|public|signal|this|weak)\>" -color brightred "\<(goto|break|continue)\>" -color brightcyan "\<(true|false)\>" -color blue "\<([0-9]+)\>" -color red "[-+/*=<>?:!~%&|]" "->" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color cyan "(^|[[:space:]])//.*" -color cyan start="/\*" end="\*/" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "vi" "(^|/|\.)(ex|vim)rc$|\.vim" - -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" -color black "[(]" -color brightblack "\<([nvxsoilc]?(nore|un)?map|[nvlx]n|[ico]?no|[cilovx][um]|s?unm)\>" -color brightblack "\<(snor|nun|nm|set|if|endif|let|unlet)\>" -color red "[!&=]" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color cyan "(^|[[:space:]])\"[^"]*$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "xml" "\.([jrs]html?|sgml?|xml|opml|xslt?|plist)$" -header "<\?xml" - -color brightmagenta start="<" end=">" -color brightblack " [a-z_-]+=" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightwhite,red "&" -color magenta "&(#[0-9]+|#x[0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);" -color cyan start="" -color cyan start="" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "xresources" "X(defaults|resources)$" - -color green "^[[:alnum:]]+\*" -color brightyellow "\*[[:alnum:]]+\:" -color blue "\<[0-9]+\>" -color red "[*:=]" -color brightcyan "\<(true|false)\>" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "yaml" "\.ya?ml$" -header "^---" "%YAML" - -color green "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) " -color brightcyan "\<(YES|yes|Y|y|ON|on|NO|no|N|n|OFF|off)\>" -color brightcyan "\<(true|false)\>" -color red ":[[:space:]]" "\[" "\]" ":[[:space:]]+[|>]" "^[[:space:]]*- " -color brightyellow "[[:space:]][\*&][A-Za-z0-9]+" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color cyan "(^|[[:space:]])#([^{].*)?$" -color brightmagenta "^---" "^\.\.\." "^%YAML" "^%TAG" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT -syntax "yum" "\.repo$|yum.*\.conf$" - -color brightblack "^[[:space:]]*[^=]*=" -color brightmagenta "^[[:space:]]*\[.*\]$" -color brightyellow "\$(releasever|arch|basearch|uuid|YUM[0-9])" -color cyan "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" -# +EXTRALINT diff --git a/nano/.nanorc b/nano/.nanorc deleted file mode 100644 index 13c1820..0000000 --- a/nano/.nanorc +++ /dev/null @@ -1,9 +0,0 @@ -set const -set matchbrackets "(<[{)>]}" -set nowrap -set speller "hunspell" -set tabsize 4 -set tabstospaces - -include ~/.nano/syntax/ALL.nanorc - diff --git a/nano/apply.sh b/nano/apply.sh deleted file mode 100755 index f9dcfc5..0000000 --- a/nano/apply.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -cp -rf .nano ~/ -cp .nanorc ~/ diff --git a/nano/clear.sh b/nano/clear.sh deleted file mode 100755 index edb9a44..0000000 --- a/nano/clear.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -rm -Rf ~/.nanorc ~/.nano diff --git a/vi/.vim/autoload/pathogen.vim b/vi/.vim/autoload/pathogen.vim deleted file mode 100644 index a13ae08..0000000 --- a/vi/.vim/autoload/pathogen.vim +++ /dev/null @@ -1,347 +0,0 @@ -" pathogen.vim - path option manipulation -" Maintainer: Tim Pope -" Version: 2.3 - -" Install in ~/.vim/autoload (or ~\vimfiles\autoload). -" -" For management of individually installed plugins in ~/.vim/bundle (or -" ~\vimfiles\bundle), adding `execute pathogen#infect()` to the top of your -" .vimrc is the only other setup necessary. -" -" The API is documented inline below. - -if exists("g:loaded_pathogen") || &cp - finish -endif -let g:loaded_pathogen = 1 - -" Point of entry for basic default usage. Give a relative path to invoke -" pathogen#interpose() (defaults to "bundle/{}"), or an absolute path to invoke -" pathogen#surround(). Curly braces are expanded with pathogen#expand(): -" "bundle/{}" finds all subdirectories inside "bundle" inside all directories -" in the runtime path. -function! pathogen#infect(...) abort - for path in a:0 ? filter(reverse(copy(a:000)), 'type(v:val) == type("")') : ['bundle/{}'] - if path =~# '^\%({\=[$~\\/]\|{\=\w:[\\/]\).*[{}*]' - call pathogen#surround(path) - elseif path =~# '^\%([$~\\/]\|\w:[\\/]\)' - call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')') - call pathogen#surround(path . '/{}') - elseif path =~# '[{}*]' - call pathogen#interpose(path) - else - call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')') - call pathogen#interpose(path . '/{}') - endif - endfor - call pathogen#cycle_filetype() - if pathogen#is_disabled($MYVIMRC) - return 'finish' - endif - return '' -endfunction - -" Split a path into a list. -function! pathogen#split(path) abort - if type(a:path) == type([]) | return a:path | endif - if empty(a:path) | return [] | endif - let split = split(a:path,'\\\@]','\\&','') - endif -endfunction - -" Like findfile(), but hardcoded to use the runtimepath. -function! pathogen#runtime_findfile(file,count) abort "{{{1 - let rtp = pathogen#join(1,pathogen#split(&rtp)) - let file = findfile(a:file,rtp,a:count) - if file ==# '' - return '' - else - return fnamemodify(file,':p') - endif -endfunction - -" Section: Deprecated - -function! s:warn(msg) abort - echohl WarningMsg - echomsg a:msg - echohl NONE -endfunction - -" Prepend all subdirectories of path to the rtp, and append all 'after' -" directories in those subdirectories. Deprecated. -function! pathogen#runtime_prepend_subdirectories(path) abort - call s:warn('Change pathogen#runtime_prepend_subdirectories('.string(a:path).') to pathogen#infect('.string(a:path.'/{}').')') - return pathogen#surround(a:path . pathogen#slash() . '{}') -endfunction - -function! pathogen#incubate(...) abort - let name = a:0 ? a:1 : 'bundle/{}' - call s:warn('Change pathogen#incubate('.(a:0 ? string(a:1) : '').') to pathogen#infect('.string(name).')') - return pathogen#interpose(name) -endfunction - -" Deprecated alias for pathogen#interpose(). -function! pathogen#runtime_append_all_bundles(...) abort - if a:0 - call s:warn('Change pathogen#runtime_append_all_bundles('.string(a:1).') to pathogen#infect('.string(a:1.'/{}').')') - else - call s:warn('Change pathogen#runtime_append_all_bundles() to pathogen#infect()') - endif - return pathogen#interpose(a:0 ? a:1 . '/{}' : 'bundle/{}') -endfunction - -if exists(':Vedit') - finish -endif - -let s:vopen_warning = 0 - -function! s:find(count,cmd,file,lcd) - let rtp = pathogen#join(1,pathogen#split(&runtimepath)) - let file = pathogen#runtime_findfile(a:file,a:count) - if file ==# '' - return "echoerr 'E345: Can''t find file \"".a:file."\" in runtimepath'" - endif - if !s:vopen_warning - let s:vopen_warning = 1 - let warning = '|echohl WarningMsg|echo "Install scriptease.vim to continue using :V'.a:cmd.'"|echohl NONE' - else - let warning = '' - endif - if a:lcd - let path = file[0:-strlen(a:file)-2] - execute 'lcd `=path`' - return a:cmd.' '.pathogen#fnameescape(a:file) . warning - else - return a:cmd.' '.pathogen#fnameescape(file) . warning - endif -endfunction - -function! s:Findcomplete(A,L,P) - let sep = pathogen#slash() - let cheats = { - \'a': 'autoload', - \'d': 'doc', - \'f': 'ftplugin', - \'i': 'indent', - \'p': 'plugin', - \'s': 'syntax'} - if a:A =~# '^\w[\\/]' && has_key(cheats,a:A[0]) - let request = cheats[a:A[0]].a:A[1:-1] - else - let request = a:A - endif - let pattern = substitute(request,'/\|\'.sep,'*'.sep,'g').'*' - let found = {} - for path in pathogen#split(&runtimepath) - let path = expand(path, ':p') - let matches = split(glob(path.sep.pattern),"\n") - call map(matches,'isdirectory(v:val) ? v:val.sep : v:val') - call map(matches,'expand(v:val, ":p")[strlen(path)+1:-1]') - for match in matches - let found[match] = 1 - endfor - endfor - return sort(keys(found)) -endfunction - -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Ve :execute s:find(,'edit',,0) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit :execute s:find(,'edit',,0) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen :execute s:find(,'edit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit :execute s:find(,'split',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit :execute s:find(,'vsplit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(,'tabedit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit :execute s:find(,'pedit',,1) -command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vread :execute s:find(,'read',,1) - -" vim:set et sw=2 foldmethod=expr foldexpr=getline(v\:lnum)=~'^\"\ Section\:'?'>1'\:getline(v\:lnum)=~#'^fu'?'a1'\:getline(v\:lnum)=~#'^endf'?'s1'\:'=': diff --git a/vi/.vimrc b/vi/.vimrc index ce91771..1df59ef 100644 --- a/vi/.vimrc +++ b/vi/.vimrc @@ -1,155 +1,32 @@ - -" An example for a vimrc file. -" -" Maintainer: Bram Moolenaar -" Last change: 2014 Feb 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 UTF-8 encoding +set enc=utf-8 +set fenc=utf-8 +set termencoding=utf-8 +" disable vi compatibility (emulation of old bugs) 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 - -"Save your backups to a less annoying place than the current directory. -" If you have .vim-backup in the current directory, it'll use that. -" Otherwise it saves it to ~/.vim/backup or . if all else fails. -if isdirectory($HOME . '/.vim/backup') == 0 - :silent !mkdir -p ~/.vim/backup >/dev/null 2>&1 -endif -set backupdir-=. -set backupdir+=. -set backupdir-=~/ -set backupdir^=~/.vim/backup// -set backupdir^=./.vim-backup// -set backup - -" Save your swp files to a less annoying place than the current directory. -" If you have .vim-swap in the current directory, it'll use that. -" Otherwise it saves it to ~/.vim/swap, ~/tmp or . -if isdirectory($HOME . '/.vim/swap') == 0 - :silent !mkdir -p ~/.vim/swap >/dev/null 2>&1 -endif -set directory=./.vim-swap// -set directory+=~/.vim/swap// -set directory+=~/tmp// -set directory+=. -" viminfo stores the the state of your previous editing session -set viminfo+=n~/.vim/viminfo - -if exists("+undofile") - " undofile - This allows you to use undos after exiting and restarting - " This, like swap and backups, uses .vim-undo first, then ~/.vim/undo - " :help undo-persistence - " This is only present in 7.3+ - if isdirectory($HOME . '/.vim/undo') == 0 - :silent !mkdir -p ~/.vim/undo > /dev/null 2>&1 - endif - set undodir=./.vim-undo// - set undodir+=~/.vim/undo// - set undofile -endif - -" size of a hard tabstop -set tabstop=4 -" -" size of an "indent" -set shiftwidth=4 -" a combination of spaces and tabs are used to simulate tab stops at a width -" other than the (hard)tabstop -set softtabstop=4 -" make "tab" insert indents instead of tabs at the beginning of a line -set smarttab - -" always uses spaces instead of tab characters -set expandtab -call pathogen#infect() -set laststatus=2 +" use indentation of previous line +set autoindent +" use intelligent indentation for C +set smartindent +" configure tabwidth and insert spaces instead of tabs +set tabstop=2 " tab width is 4 spaces +set shiftwidth=2 " indent also with 4 spaces +set expandtab " expand tabs to spaces +" wrap lines at 120 chars. 80 is somewaht antiquated with nowadays displays. +set textwidth=120 +" turn syntax highlighting on +set t_Co=256 +syntax on +" colorscheme wombat256 +" turn line numbers on set number -set rnu +set relativenumber + +" Show file stats +set ruler +" Blink cursor on error instead of beeping (grr) +set visualbell +" highlight matching braces +set showmatch +" intelligent comments +set comments=sl:/*,mb:\ *,elx:\ */