├── .bash ├── .DIR_COLORS ├── alias_lib │ ├── common │ └── git ├── aliases ├── func_lib │ ├── common │ └── git └── functions ├── .bash_logout ├── .bashrc ├── .config └── powerline │ ├── colors.json │ ├── colorschemes │ ├── shell │ │ ├── autumn.json │ │ ├── default.json │ │ └── sbiddle.json │ └── tmux │ │ └── default.json │ ├── config.json │ └── themes │ ├── powerline.json │ ├── shell │ └── sbiddle.json │ └── tmux │ └── sbiddle.json ├── .gitconfig ├── .gitmodules ├── .tmux.conf ├── .vim ├── .VimballRecord ├── after │ └── syntaxcheck.vim ├── autoload │ └── pathogen.vim ├── colors │ ├── molokai.vim │ ├── peaksea.vim │ ├── skittles_dark.vim │ ├── tango.vim │ ├── wombat.vim │ ├── wombat256.vim │ └── xterm16.vim ├── compiler │ └── php.vim ├── doc │ ├── pi_netrw.txt │ ├── taglist.txt │ └── tags ├── filetype.vim ├── indent │ ├── IndentAnything_html.vim │ └── javascript.vim ├── nerdtree_plugin │ └── shawncplus.vim ├── plugin │ └── .taglist.vim ├── spell │ ├── en.utf-8.add │ └── en.utf-8.add.spl ├── startup │ ├── color.vim │ ├── commands.vim │ ├── functions.vim │ ├── html.vim │ ├── js.vim │ ├── mappings.vim │ ├── php.vim │ ├── settings.vim │ ├── vim.vim │ └── yaml.vim ├── syntax │ ├── git.vim │ ├── gitcommit.vim │ ├── gitconfig.vim │ ├── gitrebase.vim │ ├── gitsendemail.vim │ ├── html.vim │ ├── mkd.vim │ └── netrw.vim └── xterm16-2.43 │ ├── ChangeLog │ ├── cpalette.pl │ ├── xterm16.ct │ ├── xterm16.schema │ └── xterm16.txt ├── .vimrc ├── README.md ├── bin ├── ctags-watch ├── git_diff_wrapper └── readcsv ├── completion └── git-completion.bash └── install /.bash/.DIR_COLORS: -------------------------------------------------------------------------------- 1 | # Configuration file for the color ls utility 2 | # Synchronized with coreutils 8.5 dircolors 3 | # This file goes in the /etc directory, and must be world readable. 4 | # You can copy this file to .dir_colors in your $HOME directory to override 5 | # the system defaults. 6 | 7 | # COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not 8 | # pipes. 'all' adds color characters to all output. 'none' shuts colorization 9 | # off. 10 | COLOR tty 11 | 12 | # Extra command line options for ls go here. 13 | # Basically these ones are: 14 | # -F = show '/' for dirs, '*' for executables, etc. 15 | # -T 0 = don't trust tab spacing when formatting ls output. 16 | OPTIONS -F -T 0 17 | 18 | # Below, there should be one TERM entry for each termtype that is colorizable 19 | TERM Eterm 20 | TERM ansi 21 | TERM color-xterm 22 | TERM con132x25 23 | TERM con132x30 24 | TERM con132x43 25 | TERM con132x60 26 | TERM con80x25 27 | TERM con80x28 28 | TERM con80x30 29 | TERM con80x43 30 | TERM con80x50 31 | TERM con80x60 32 | TERM cons25 33 | TERM console 34 | TERM cygwin 35 | TERM dtterm 36 | TERM eterm-color 37 | TERM gnome 38 | TERM gnome-256color 39 | TERM jfbterm 40 | TERM konsole 41 | TERM kterm 42 | TERM linux 43 | TERM linux-c 44 | TERM mach-color 45 | TERM mlterm 46 | TERM putty 47 | TERM rxvt 48 | TERM rxvt-256color 49 | TERM rxvt-cygwin 50 | TERM rxvt-cygwin-native 51 | TERM rxvt-unicode 52 | TERM rxvt-unicode-256color 53 | TERM rxvt-unicode256 54 | TERM screen 55 | TERM screen-256color 56 | TERM screen-256color-bce 57 | TERM screen-bce 58 | TERM screen-w 59 | TERM screen.rxvt 60 | TERM screen.linux 61 | TERM terminator 62 | TERM vt100 63 | TERM xterm 64 | TERM xterm-16color 65 | TERM xterm-256color 66 | TERM xterm-88color 67 | TERM xterm-color 68 | TERM xterm-debian 69 | 70 | # EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output) 71 | EIGHTBIT 1 72 | 73 | # Below are the color init strings for the basic file types. A color init 74 | # string consists of one or more of the following numeric codes: 75 | # Attribute codes: 76 | # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed 77 | # Text color codes: 78 | # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white 79 | # Background color codes: 80 | # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white 81 | #NORMAL 00 # no color code at all 82 | FILE 38;5;230 83 | RESET 0 # reset to "normal" color 84 | DIR 38;5;149 # directory 85 | LINK 38;5;186 # symbolic link (If you set this to 'target' instead of a 86 | # numerical value, the color is as for the file pointed to.) 87 | MULTIHARDLINK 00 # regular file with more than one link 88 | FIFO 40;33 # pipe 89 | SOCK 01;35 # socket 90 | DOOR 01;35 # door 91 | BLK 40;33;01 # block device driver 92 | CHR 40;33;01 # character device driver 93 | ORPHAN 38;5;124;01 # symlink to nonexistent file, or non-stat'able file 94 | MISSING 01;05;37;41 # ... and the files they point to 95 | SETUID 37;41 # file that is setuid (u+s) 96 | SETGID 30;43 # file that is setgid (g+s) 97 | CAPABILITY 30;41 # file with capability 98 | STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w) 99 | OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky 100 | STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable 101 | 102 | # This is for files with execute permission: 103 | EXEC 38;5;209;01 104 | 105 | # List any file extensions like '.gz' or '.tar' that you would like ls 106 | # to colorize below. Put the extension, a space, and the color init string. 107 | # (and any comments you want to add after a '#') 108 | # executables (bright green) 109 | #.cmd 01;32 110 | #.exe 01;32 111 | #.com 01;32 112 | #.btm 01;32 113 | #.bat 01;32 114 | #.sh 01;32 115 | #.csh 01;32 116 | 117 | .tar 38;5;91 118 | .tgz 38;5;91 119 | .arc 38;5;91 120 | .arj 38;5;91 121 | .taz 38;5;91 122 | .lha 38;5;91 123 | .lzh 38;5;91 124 | .lzma 38;5;91 125 | .tlz 38;5;91 126 | .txz 38;5;91 127 | .tzo 38;5;91 128 | .t7z 38;5;91 129 | .zip 38;5;91 130 | .z 38;5;91 131 | .Z 38;5;91 132 | .dz 38;5;91 133 | .gz 38;5;91 134 | .lrz 38;5;91 135 | .lz 38;5;91 136 | .lzo 38;5;91 137 | .xz 38;5;91 138 | .bz2 38;5;91 139 | .bz 38;5;91 140 | .tbz 38;5;91 141 | .tbz2 38;5;91 142 | .tz 38;5;91 143 | .deb 38;5;91 144 | .rpm 38;5;91 145 | .jar 38;5;91 146 | .war 38;5;91 147 | .ear 38;5;91 148 | .sar 38;5;91 149 | .rar 38;5;91 150 | .alz 38;5;91 151 | .ace 38;5;91 152 | .zoo 38;5;91 153 | .cpio 38;5;91 154 | .7z 38;5;91 155 | .rz 38;5;91 156 | .cab 38;5;91 157 | 158 | # image formats (magenta) 159 | .jpg 01;35 160 | .jpeg 01;35 161 | .gif 01;35 162 | .bmp 01;35 163 | .pbm 01;35 164 | .pgm 01;35 165 | .ppm 01;35 166 | .tga 01;35 167 | .xbm 01;35 168 | .xpm 01;35 169 | .tif 01;35 170 | .tiff 01;35 171 | .png 01;35 172 | .svg 01;35 173 | .svgz 01;35 174 | .mng 01;35 175 | .pcx 01;35 176 | .mov 01;35 177 | .mpg 01;35 178 | .mpeg 01;35 179 | .m2v 01;35 180 | .mkv 01;35 181 | .ogm 01;35 182 | .mp4 01;35 183 | .m4v 01;35 184 | .mp4v 01;35 185 | .vob 01;35 186 | .qt 01;35 187 | .nuv 01;35 188 | .wmv 01;35 189 | .asf 01;35 190 | .rm 01;35 191 | .rmvb 01;35 192 | .flc 01;35 193 | .avi 01;35 194 | .fli 01;35 195 | .flv 01;35 196 | .gl 01;35 197 | .dl 01;35 198 | .xcf 01;35 199 | .xwd 01;35 200 | .yuv 01;35 201 | .cgm 01;35 202 | .emf 01;35 203 | 204 | # http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions 205 | .axv 01;35 206 | .anx 01;35 207 | .ogv 01;35 208 | .ogx 01;35 209 | 210 | # audio formats (cyan) 211 | .aac 01;36 212 | .au 01;36 213 | .flac 01;36 214 | .mid 01;36 215 | .midi 01;36 216 | .mka 01;36 217 | .mp3 01;36 218 | .mpc 01;36 219 | .ogg 01;36 220 | .ra 01;36 221 | .wav 01;36 222 | 223 | # http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions 224 | .axa 01;36 225 | .oga 01;36 226 | .spx 01;36 227 | .xspf 01;36 228 | 229 | # colorize binary documents (brown) 230 | #.pdf 00;33 231 | #.ps 00;33 232 | #.ps.gz 00;33 233 | #.tex 00;33 234 | #.xls 00;33 235 | #.xlsx 00;33 236 | #.ppt 00;33 237 | #.pptx 00;33 238 | #.rtf 00;33 239 | #.doc 00;33 240 | #.docx 00;33 241 | #.odt 00;33 242 | #.ods 00;33 243 | #.odp 00;33 244 | #.epub 00;33 245 | #.abw 00;33 246 | #.wpd 00;33 247 | # 248 | # colorize text documents (brown) 249 | #.txt 00;33 250 | #.patch 00;33 251 | #.diff 00;33 252 | #.log 00;33 253 | #.htm 00;33 254 | #.html 00;33 255 | #.shtml 00;33 256 | #.xml 00;33 257 | -------------------------------------------------------------------------------- /.bash/alias_lib/common: -------------------------------------------------------------------------------- 1 | # common aliases 2 | 3 | alias clear='echo -e "\e[2J"' 4 | alias ls='ls --color=always' 5 | alias ll='ls -AFlh --group-directories-first' 6 | alias lf='ll -rt' 7 | alias l='lf' 8 | alias nl="nl -ba" 9 | 10 | alias p='pushd' 11 | alias o='popd' 12 | alias d='dirs' 13 | alias less='less -R' 14 | 15 | 16 | alias follow=". ~/bin/follow" 17 | 18 | alias vdb="vim -c 'python debugger.run()'" 19 | alias tm='tmux attach' 20 | alias pyg='pygmentize -f 256 -O style=monokai' 21 | # vim: set ft=sh : 22 | -------------------------------------------------------------------------------- /.bash/alias_lib/git: -------------------------------------------------------------------------------- 1 | # git stuff 2 | alias gcm='git bulk checkout master' 3 | alias gbs='git bulk status' 4 | alias gs='git status' 5 | alias gitmerge='git mergetool -t vimdiff' 6 | alias get='git pull' 7 | 8 | # vim: set syn=sh : 9 | -------------------------------------------------------------------------------- /.bash/aliases: -------------------------------------------------------------------------------- 1 | for i in /home/${USER}/.bash/alias_lib/*; do 2 | . $i 3 | done 4 | 5 | # vim: set syn=sh : 6 | -------------------------------------------------------------------------------- /.bash/func_lib/common: -------------------------------------------------------------------------------- 1 | # common functions 2 | hsearch() { history | grep $1 | grep -v hsearch; } 3 | 4 | function phpstrict() { 5 | if [ "$1" != "" ] 6 | then 7 | 'php' -d error_reporting=2048 -f $1 8 | else 9 | echo "Usage: phpstrict " 10 | fi 11 | } 12 | 13 | function cdl() { 14 | 'cd' $1 15 | 'ls' -Ahlrtp --color=always 16 | } 17 | 18 | function mkcd() 19 | { 20 | 'mkdir' $* 21 | 'cd' ${@: -1} 22 | } 23 | # vim: set syn=sh : 24 | -------------------------------------------------------------------------------- /.bash/func_lib/git: -------------------------------------------------------------------------------- 1 | # git functions 2 | function gdm() { 3 | pwd 4 | git diff master... --name-status | \ 5 | sed -e "s/^A/ A /" | \ 6 | sed -e "s/^M/ M /" | \ 7 | sed -e "s/^D/ D /" 8 | } 9 | 10 | 11 | function mdiff() { 12 | git diff master... $1 13 | } 14 | 15 | # vim: set syn=sh : 16 | -------------------------------------------------------------------------------- /.bash/functions: -------------------------------------------------------------------------------- 1 | for i in /home/${USER}/.bash/func_lib/*; do 2 | . $i 3 | done 4 | 5 | # vim: set syn=sh : 6 | -------------------------------------------------------------------------------- /.bash_logout: -------------------------------------------------------------------------------- 1 | # ~/.bash_logout 2 | pwd > ~/.prev_dir 3 | clear 4 | -------------------------------------------------------------------------------- /.bashrc: -------------------------------------------------------------------------------- 1 | # .bashrc 2 | export EDITOR="vim" 3 | 4 | set -o vi 5 | 6 | for i in ~/completion/*; do 7 | . $i 8 | done 9 | 10 | # Source global definitions 11 | if [ -f /etc/bashrc ]; then 12 | . /etc/bashrc 13 | fi 14 | 15 | # custom functions 16 | if [ -f /home/$USER/.bash/functions ]; then 17 | . /home/$USER/.bash/functions 18 | fi 19 | 20 | # custom functions 21 | if [ -f /home/$USER/.bash/aliases ]; then 22 | . /home/$USER/.bash/aliases 23 | fi 24 | 25 | export PATH=$PATH":/home/$USER/bin/:/home/$USER/.local/bin" 26 | 27 | powerline-daemon -q 28 | POWERLINE_BASH_CONTINUATION=1 29 | POWERLINE_BASH_SELECT=1 30 | POWERLINE_NO_SHELL_ABOVE=1 31 | . ~/repos/powerline/powerline/bindings/bash/powerline.sh 32 | 33 | cd `cat ~/.prev_dir` 34 | cat /dev/null > ~/.prev_dir 35 | 36 | eval "$(dircolors ~/.bash/.DIR_COLORS)" 37 | 38 | TERM=xterm-256color 39 | 40 | # {{{ 41 | # Node Completion - Auto-generated, do not touch. 42 | shopt -s progcomp 43 | for f in $(command ls ~/.node-completion); do 44 | f="$HOME/.node-completion/$f" 45 | test -f "$f" && . "$f" 46 | done 47 | # }}} 48 | -------------------------------------------------------------------------------- /.config/powerline/colors.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors": { 3 | "black": 16, 4 | "white": 231, 5 | 6 | "green": 2, 7 | "darkestgreen": 22, 8 | "darkgreen": 28, 9 | "mediumgreen": 70, 10 | "brightgreen": 148, 11 | 12 | "darkestcyan": 23, 13 | "gothamcyan": 122, 14 | "gothamdarkestcyan": 44, 15 | "darkcyan": 74, 16 | "mediumcyan": 117, 17 | "brightcyan": 159, 18 | 19 | "darkestblue": 24, 20 | "gothamdarkestblue": 24, 21 | "darkblue": 31, 22 | 23 | "darkestmagenta": 53, 24 | "darkmagenta": 89, 25 | "magenta": 126, 26 | "brightmagenta": 162, 27 | "brightestmagenta": 198, 28 | 29 | "red": 1, 30 | "darkestred": 52, 31 | "darkred": 88, 32 | "mediumred": 124, 33 | "brightred": 160, 34 | "brightestred": 196, 35 | 36 | "darkestpurple": 55, 37 | "mediumpurple": 98, 38 | "brightpurple": 189, 39 | 40 | "deeppink": 125, 41 | 42 | "darkorange": 94, 43 | "mediumorange": 166, 44 | "brightorange": 208, 45 | "brightestorange": 214, 46 | 47 | "yellow": 11, 48 | "brightyellow": 220, 49 | 50 | "gray0": 233, 51 | "gray1": 235, 52 | "gray2": 236, 53 | "gray3": 239, 54 | "gray4": 240, 55 | "gray5": 241, 56 | "gray6": 244, 57 | "gray7": 245, 58 | "gray8": 247, 59 | "gray9": 250, 60 | "gray10": 252, 61 | 62 | "gray11": 234, 63 | "gray90": 254, 64 | 65 | "materialGray": 238, 66 | 67 | "gray70": [249, "b3b3b3"], 68 | 69 | "lightyellowgreen": 106, 70 | "yellowgreen": 190, 71 | "gold3": 178, 72 | "orangered": 202, 73 | 74 | "steelblue": 67, 75 | "darkorange3": 166, 76 | "skyblue1": 117, 77 | "khaki1": 228, 78 | 79 | "solarized:base03": [8, "002b36"], 80 | "solarized:base02": [0, "073642"], 81 | "solarized:base01": [10, "586e75"], 82 | "solarized:base00": [11, "657b83"], 83 | "solarized:base0": [12, "839496"], 84 | "solarized:base1": [14, "93a1a1"], 85 | "solarized:base2": [7, "eee8d5"], 86 | "solarized:base3": [15, "fdf6e3"], 87 | "solarized:yellow": [3, "b58900"], 88 | "solarized:orange": [9, "cb4b16"], 89 | "solarized:red": [1, "dc322f"], 90 | "solarized:magenta": [5, "d33682"], 91 | "solarized:violet": [13, "6c71c4"], 92 | "solarized:blue": [4, "268bd2"], 93 | "solarized:cyan": [6, "2aa198"], 94 | "solarized:green": [2, "859900"] 95 | }, 96 | "gradients": { 97 | "dark_GREEN_Orange_red": [ 98 | [22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 94, 94, 94, 94, 94, 94, 94, 88, 52], 99 | ["006000", "006000", "006000", "006000", "006000", "006000", "006000", "006000", "006000", "036000", "076000", "0a6000", "0d6000", "106000", "126000", "146000", "166000", "186000", "1a6000", "1b6000", "1d6000", "1e6000", "206000", "216000", "236000", "246000", "256000", "266000", "286000", "296000", "2a6000", "2b6000", "2c6100", "2d6100", "2f6100", "306100", "316100", "326100", "336100", "346100", "356100", "366100", "376100", "386100", "386100", "396100", "3a6100", "3b6100", "3c6100", "3d6100", "3e6100", "3f6100", "406100", "406100", "416100", "426000", "436000", "446000", "456000", "456000", "466000", "476000", "486000", "496000", "496000", "4a6000", "4b6000", "4c6000", "4d6000", "4d6000", "4e6000", "4f6000", "506000", "506000", "516000", "526000", "536000", "536000", "546000", "556000", "566000", "566000", "576000", "586000", "596000", "596000", "5a6000", "5d6000", "616000", "646000", "686000", "6b6000", "6f6000", "726000", "766000", "796000", "7d6000", "806000", "7e5500", "6f3105", "5d0001"] 100 | ], 101 | "GREEN_Orange_red": [ 102 | [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1], 103 | ["005f00", "015f00", "025f00", "035f00", "045f00", "055f00", "065f00", "075f00", "085f00", "095f00", "0b5f00", "0c5f00", "0d5f00", "0e5f00", "0f5f00", "105f00", "115f00", "125f00", "135f00", "145f00", "165f00", "175f00", "185f00", "195f00", "1a5f00", "1b5f00", "1c5f00", "1d5f00", "1e5f00", "1f5f00", "215f00", "225f00", "235f00", "245f00", "255f00", "265f00", "275f00", "285f00", "295f00", "2a5f00", "2c5f00", "2d5f00", "2e5f00", "2f5f00", "305f00", "315f00", "325f00", "335f00", "345f00", "355f00", "375f00", "385f00", "395f00", "3a5f00", "3b5f00", "3c5f00", "3d5f00", "3e5f00", "3f5f00", "415f00", "425f00", "435f00", "445f00", "455f00", "465f00", "475f00", "485f00", "495f00", "4a5f00", "4c5f00", "4d5f00", "4e5f00", "4f5f00", "505f00", "515f00", "525f00", "535f00", "545f00", "555f00", "575f00", "585f00", "595f00", "5a5f00", "5b5f00", "5c5f00", "5d5f00", "5e5f00", "615f00", "655f00", "685f00", "6c5f00", "6f5f00", "735f00", "765f00", "7a5f00", "7d5f00", "815f00", "845f00", "815200", "702900"] 104 | ], 105 | "green_yellow_red": [ 106 | [190, 184, 178, 172, 166, 160], 107 | ["8ae71c", "8ce71c", "8fe71c", "92e71c", "95e71d", "98e71d", "9ae71d", "9de71d", "a0e71e", "a3e71e", "a6e71e", "a8e71e", "abe71f", "aee71f", "b1e71f", "b4e71f", "b6e720", "b9e720", "bce720", "bfe720", "c2e821", "c3e721", "c5e621", "c7e521", "c9e522", "cbe422", "cde322", "cfe222", "d1e223", "d3e123", "d5e023", "d7df23", "d9df24", "dbde24", "dddd24", "dfdc24", "e1dc25", "e3db25", "e5da25", "e7d925", "e9d926", "e9d626", "e9d426", "e9d126", "e9cf27", "e9cc27", "e9ca27", "e9c727", "e9c528", "e9c228", "e9c028", "e9bd28", "e9bb29", "e9b829", "e9b629", "e9b329", "e9b12a", "e9ae2a", "e9ac2a", "e9a92a", "eaa72b", "eaa42b", "eaa22b", "ea9f2b", "ea9d2c", "ea9b2c", "ea982c", "ea962c", "ea942d", "ea912d", "ea8f2d", "ea8d2d", "ea8a2e", "ea882e", "ea862e", "ea832e", "ea812f", "ea7f2f", "ea7c2f", "ea7a2f", "eb7830", "eb7530", "eb7330", "eb7130", "eb6f31", "eb6c31", "eb6a31", "eb6831", "eb6632", "eb6332", "eb6132", "eb5f32", "eb5d33", "eb5a33", "eb5833", "eb5633", "eb5434", "eb5134", "eb4f34", "eb4d34", "ec4b35"] 108 | ], 109 | "green_yellow_orange_red": [ 110 | [2, 3, 9, 1], 111 | ["719e07", "739d06", "759c06", "779c06", "799b06", "7b9a05", "7d9a05", "7f9905", "819805", "839805", "859704", "879704", "899604", "8b9504", "8d9504", "8f9403", "919303", "949303", "969203", "989102", "9a9102", "9c9002", "9e9002", "a08f02", "a28e01", "a48e01", "a68d01", "a88c01", "aa8c01", "ac8b00", "ae8a00", "b08a00", "b28900", "b58900", "b58700", "b68501", "b78302", "b78102", "b87f03", "b97d04", "b97b04", "ba7905", "bb7806", "bb7606", "bc7407", "bd7208", "bd7008", "be6e09", "bf6c0a", "bf6a0a", "c0690b", "c1670c", "c1650c", "c2630d", "c3610e", "c35f0e", "c45d0f", "c55b10", "c55a10", "c65811", "c75612", "c75412", "c85213", "c95014", "c94e14", "ca4c15", "cb4b16", "cb4a16", "cc4917", "cc4818", "cd4719", "cd4719", "ce461a", "ce451b", "cf441c", "cf441c", "d0431d", "d0421e", "d1411f", "d1411f", "d24020", "d23f21", "d33e22", "d33e22", "d43d23", "d43c24", "d53b25", "d53b25", "d63a26", "d63927", "d73828", "d73828", "d83729", "d8362a", "d9352b", "d9352b", "da342c", "da332d", "db322e", "dc322f"] 112 | ], 113 | "yellow_red": [ 114 | [220, 178, 172, 166, 160], 115 | ["ffd700", "fdd500", "fbd300", "fad200", "f8d000", "f7cf00", "f5cd00", "f3cb00", "f2ca00", "f0c800", "efc700", "edc500", "ebc300", "eac200", "e8c000", "e7bf00", "e5bd00", "e3bb00", "e2ba00", "e0b800", "dfb700", "ddb500", "dbb300", "dab200", "d8b000", "d7af00", "d7ad00", "d7ab00", "d7aa00", "d7a800", "d7a700", "d7a500", "d7a300", "d7a200", "d7a000", "d79f00", "d79d00", "d79b00", "d79a00", "d79800", "d79700", "d79500", "d79300", "d79200", "d79000", "d78f00", "d78d00", "d78b00", "d78a00", "d78800", "d78700", "d78500", "d78300", "d78200", "d78000", "d77f00", "d77d00", "d77b00", "d77a00", "d77800", "d77700", "d77500", "d77300", "d77200", "d77000", "d76f00", "d76d00", "d76b00", "d76a00", "d76800", "d76700", "d76500", "d76300", "d76200", "d76000", "d75f00", "d75b00", "d75700", "d75300", "d74f00", "d74c00", "d74800", "d74400", "d74000", "d73c00", "d73900", "d73500", "d73100", "d72d00", "d72900", "d72600", "d72200", "d71e00", "d71a00", "d71600", "d71300", "d70f00", "d70b00", "d70700"] 116 | ], 117 | "yellow_orange_red": [ 118 | [3, 9, 1], 119 | ["b58900", "b58700", "b58600", "b68501", "b68401", "b78202", "b78102", "b88003", "b87f03", "b87d03", "b97c04", "b97b04", "ba7a05", "ba7805", "bb7706", "bb7606", "bc7507", "bc7307", "bc7207", "bd7108", "bd7008", "be6e09", "be6d09", "bf6c0a", "bf6b0a", "c06a0b", "c0680b", "c0670b", "c1660c", "c1650c", "c2630d", "c2620d", "c3610e", "c3600e", "c35e0e", "c45d0f", "c45c0f", "c55b10", "c55910", "c65811", "c65711", "c75612", "c75412", "c75312", "c85213", "c85113", "c94f14", "c94e14", "ca4d15", "ca4c15", "cb4b16", "cb4a16", "cb4a17", "cc4917", "cc4918", "cc4818", "cd4819", "cd4719", "cd471a", "ce461a", "ce461b", "ce451b", "cf451c", "cf441c", "cf441d", "d0431d", "d0431e", "d0421e", "d1421f", "d1411f", "d14120", "d24020", "d24021", "d23f21", "d33f22", "d33e22", "d33e23", "d43d23", "d43d24", "d43c24", "d53c25", "d53b25", "d53b26", "d63a26", "d63a27", "d63927", "d73928", "d73828", "d73829", "d83729", "d8372a", "d8362a", "d9362b", "d9352b", "d9352c", "da342c", "da342d", "da332d", "db332e"] 120 | ], 121 | "blue_red": [ 122 | [39, 74, 68, 67, 103, 97, 96, 132, 131, 167, 203, 197], 123 | ["19b4fe", "1bb2fc", "1db1fa", "1faff8", "22aef6", "24adf4", "26abf2", "29aaf0", "2ba9ee", "2da7ec", "30a6ea", "32a5e8", "34a3e6", "36a2e4", "39a0e2", "3b9fe1", "3d9edf", "409cdd", "429bdb", "449ad9", "4798d7", "4997d5", "4b96d3", "4d94d1", "5093cf", "5292cd", "5490cb", "578fc9", "598dc7", "5b8cc6", "5e8bc4", "6089c2", "6288c0", "6487be", "6785bc", "6984ba", "6b83b8", "6e81b6", "7080b4", "727eb2", "757db0", "777cae", "797aac", "7b79ab", "7e78a9", "8076a7", "8275a5", "8574a3", "8772a1", "89719f", "8c709d", "8e6e9b", "906d99", "926b97", "956a95", "976993", "996791", "9c668f", "9e658e", "a0638c", "a3628a", "a56188", "a75f86", "a95e84", "ac5c82", "ae5b80", "b05a7e", "b3587c", "b5577a", "b75678", "ba5476", "bc5374", "be5273", "c05071", "c34f6f", "c54e6d", "c74c6b", "ca4b69", "cc4967", "ce4865", "d14763", "d34561", "d5445f", "d7435d", "da415b", "dc4059", "de3f58", "e13d56", "e33c54", "e53a52", "e83950", "ea384e", "ec364c", "ee354a", "f13448", "f33246", "f53144", "f83042", "fa2e40"] 124 | ], 125 | "white_red": [ 126 | [231, 255, 223, 216, 209, 202, 196], 127 | ["ffffff", "fefefe", "fdfdfd", "fdfdfd", "fcfcfc", "fbfbfb", "fafafa", "fafafa", "f9f9f9", "f8f8f8", "f7f7f7", "f7f7f7", "f6f6f6", "f5f5f5", "f4f4f4", "f4f3f4", "f3f3f3", "f2f2f2", "f1f1f1", "f0f0f0", "f0f0f0", "efefef", "eeeeee", "efecea", "f1eae4", "f2e8de", "f3e6d8", "f5e4d3", "f6e2cd", "f7e0c7", "f8dec2", "f9dcbc", "fadab6", "fad8b1", "fbd5ac", "fbd2a9", "fbcea5", "fbcaa1", "fbc79e", "fbc39a", "fbc097", "fbbc93", "fbb88f", "fbb58c", "fab188", "faad85", "faaa81", "fba67e", "fba37a", "fb9f76", "fb9c73", "fb986f", "fb946c", "fb9168", "fa8d65", "fa8961", "fa865c", "fa8256", "fb7f4f", "fb7b48", "fb7841", "fb743a", "fb7133", "fb6d2c", "fa6a23", "fa661a", "fa620e", "fa5f03", "fa5d03", "fa5b03", "fa5a03", "fa5803", "fa5703", "fa5503", "fa5303", "fa5103", "fa4f03", "fa4e03", "fa4c03", "fa4a04", "fa4804", "fa4604", "fa4404", "fa4204", "fa3f04", "fa3d04", "fa3b04", "fa3805", "fa3605", "fa3305", "fb3105", "fb2e05", "fb2a05", "fb2705", "fb2306", "fb1f06", "fb1b06", "fb1506", "fb0e06", "fa0506", "fa0007"] 128 | ], 129 | "dark_green_gray": [ 130 | [70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247], 131 | ["51b000", "52b000", "54b000", "55b002", "56b007", "57b00d", "58b011", "59af15", "5aaf18", "5caf1b", "5daf1e", "5eaf21", "5faf23", "60ae25", "61ae27", "62ae2a", "63ae2c", "64ae2e", "65ae30", "66ae31", "67ad33", "68ad35", "69ad37", "69ad38", "6aad3a", "6bad3c", "6cac3d", "6dac3f", "6eac40", "6fac42", "70ac44", "70ac45", "71ab47", "72ab48", "73ab49", "74ab4b", "75ab4c", "75ab4e", "76aa4f", "77aa51", "78aa52", "79aa53", "79aa55", "7aaa56", "7ba957", "7ca959", "7ca95a", "7da95b", "7ea95d", "7fa95e", "7fa85f", "80a861", "81a862", "81a863", "82a865", "83a766", "83a767", "84a768", "85a76a", "85a76b", "86a66c", "87a66d", "87a66f", "88a670", "89a671", "89a672", "8aa574", "8ba575", "8ba576", "8ca577", "8da579", "8da47a", "8ea47b", "8ea47c", "8fa47d", "90a47f", "90a380", "91a381", "91a382", "92a384", "93a385", "93a286", "94a287", "94a288", "95a28a", "95a18b", "96a18c", "97a18d", "97a18e", "98a190", "98a091", "99a092", "99a093", "9aa094", "9aa096", "9b9f97", "9b9f98", "9c9f99", "9c9f9a", "9d9e9c", "9d9e9d"] 132 | ], 133 | "light_green_gray": [ 134 | [148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 187, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250], 135 | ["a3d900", "a4d800", "a4d800", "a5d805", "a5d80d", "a6d714", "a6d719", "a6d71d", "a7d621", "a7d625", "a8d628", "a8d62b", "a8d52e", "a9d531", "a9d533", "aad536", "aad438", "aad43a", "abd43d", "abd33f", "abd341", "acd343", "acd345", "acd247", "add249", "add24b", "add14d", "aed14f", "aed151", "aed152", "afd054", "afd056", "afd058", "b0d059", "b0cf5b", "b0cf5d", "b1cf5e", "b1ce60", "b1ce62", "b1ce63", "b2ce65", "b2cd67", "b2cd68", "b3cd6a", "b3cc6b", "b3cc6d", "b3cc6e", "b4cc70", "b4cb71", "b4cb73", "b4cb75", "b5ca76", "b5ca78", "b5ca79", "b5ca7a", "b6c97c", "b6c97d", "b6c97f", "b6c880", "b6c882", "b7c883", "b7c885", "b7c786", "b7c788", "b7c789", "b8c68a", "b8c68c", "b8c68d", "b8c68f", "b8c590", "b9c591", "b9c593", "b9c494", "b9c496", "b9c497", "b9c498", "bac39a", "bac39b", "bac39d", "bac29e", "bac29f", "bac2a1", "bac2a2", "bac1a4", "bbc1a5", "bbc1a6", "bbc0a8", "bbc0a9", "bbc0aa", "bbc0ac", "bbbfad", "bbbfae", "bbbfb0", "bbbeb1", "bcbeb3", "bcbeb4", "bcbdb5", "bcbdb7", "bcbdb8", "bcbdb9", "bcbcbb"] 136 | ] 137 | } 138 | } 139 | -------------------------------------------------------------------------------- /.config/powerline/colorschemes/shell/autumn.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sbiddle", 3 | "groups": { 4 | "information:additional": { "fg": "gray9", "bg": "gray4", "attrs": [] }, 5 | "information:regular": { "fg": "gray10", "bg": "gray4", "attrs": [] }, 6 | "information:highlighted": { "fg": "white", "bg": "gray4", "attrs": ["bold"] }, 7 | "information:priority": { "fg": "brightyellow", "bg": "mediumorange", "attrs": [] }, 8 | "hostname": { "fg": "black", "bg": "gray10", "attrs": ["bold"] }, 9 | "user": { "fg": "mediumorange", "bg": "darkestmagenta", "attrs": ["bold"] }, 10 | "branch": { "fg": "gray9", "bg": "gray2", "attrs": [] }, 11 | "branch_dirty": { "fg": "black", "bg": "orangered", "attrs": [] }, 12 | "branch_clean": { "fg": "gray9", "bg": "gray2", "attrs": [] }, 13 | "branch:divider": { "fg": "gray7", "bg": "gray2", "attrs": [] }, 14 | "cwd": "information:additional", 15 | "cwd:current_folder": "information:highlighted", 16 | "cwd:divider": { "fg": "gray7", "bg": "gray4", "attrs": [] }, 17 | "promptline": { "fg": "darkestred", "bg": "darkestmagenta", "attrs": ["bold"] }, 18 | "blank": { "fg": "white", "bg": "none", "attrs": [] } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /.config/powerline/colorschemes/shell/default.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sbiddle", 3 | "groups": { 4 | "information:additional": { "fg": "gray9", "bg": "gray4", "attrs": [] }, 5 | "information:regular": { "fg": "gray10", "bg": "gray4", "attrs": [] }, 6 | "information:highlighted": { "fg": "white", "bg": "gray4", "attrs": ["bold"] }, 7 | "information:priority": { "fg": "brightyellow", "bg": "mediumorange", "attrs": [] }, 8 | "hostname": { "fg": "black", "bg": "gray10", "attrs": ["bold"] }, 9 | "user": { "fg": "mediumorange", "bg": "darkestmagenta", "attrs": ["bold"] }, 10 | "branch": { "fg": "gray9", "bg": "gray2", "attrs": [] }, 11 | "branch_dirty": { "fg": "black", "bg": "orangered", "attrs": [] }, 12 | "branch_clean": { "fg": "gray9", "bg": "gray2", "attrs": [] }, 13 | "branch:divider": { "fg": "gray7", "bg": "gray2", "attrs": [] }, 14 | "cwd": "information:additional", 15 | "cwd:current_folder": "information:highlighted", 16 | "cwd:divider": { "fg": "gray7", "bg": "gray4", "attrs": [] }, 17 | "promptline": { "fg": "darkestred", "bg": "darkestmagenta", "attrs": ["bold"] }, 18 | "blank": { "fg": "white", "bg": "none", "attrs": [] } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /.config/powerline/colorschemes/shell/sbiddle.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sbiddle", 3 | "groups": { 4 | "information:additional": { "fg": "gray9", "bg": "gray4", "attrs": [] }, 5 | "information:regular": { "fg": "gray10", "bg": "gray4", "attrs": [] }, 6 | "information:highlighted": { "fg": "white", "bg": "gray4", "attrs": ["bold"] }, 7 | "information:priority": { "fg": "brightyellow", "bg": "mediumorange", "attrs": [] }, 8 | "hostname": { "fg": "black", "bg": "gray10", "attrs": ["bold"] }, 9 | "user": { "fg": "brightcyan", "bg": "darkestblue", "attrs": ["bold"] }, 10 | "branch": { "fg": "gray9", "bg": "gray2", "attrs": [] }, 11 | "branch_dirty": { "fg": "black", "bg": "orangered", "attrs": [] }, 12 | "branch_clean": { "fg": "gray9", "bg": "gray2", "attrs": [] }, 13 | "branch:divider": { "fg": "gray7", "bg": "gray2", "attrs": [] }, 14 | "cwd": "information:additional", 15 | "cwd:current_folder": "information:highlighted", 16 | "cwd:divider": { "fg": "gray7", "bg": "gray4", "attrs": [] }, 17 | "promptline": { "fg": "white", "bg": "darkestblue", "attrs": ["bold"] }, 18 | "blank": { "fg": "black", "bg": "black", "attrs": [] } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /.config/powerline/colorschemes/tmux/default.json: -------------------------------------------------------------------------------- 1 | { 2 | "groups": { 3 | "active_window_status": {"fg": "brightorange", "bg": "gray0", "attrs": []}, 4 | "window_status": {"fg": "gray70", "bg": "gray0", "attrs": []}, 5 | "activity_status": {"fg": "brightred", "bg": "gray0", "attrs": []}, 6 | "bell_status": {"fg": "brightred", "bg": "gray0", "attrs": []}, 7 | "window": {"fg": "gray6", "bg": "gray0", "attrs": []}, 8 | "window:divider": {"fg": "gray4", "bg": "gray0", "attrs": []}, 9 | "window:current": {"fg": "mediumorange", "bg": "darkestmagenta", "attrs": []}, 10 | "window_name": {"fg": "mediumorange", "bg": "darkestmagenta", "attrs": ["bold"]}, 11 | "session": {"fg": "black", "bg": "gray90", "attrs": ["bold"]}, 12 | "session:prefix": {"fg": "gray90", "bg": "brightorange", "attrs": ["bold"]} 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /.config/powerline/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "common": { 3 | "term_truecolor": false 4 | }, 5 | "ext": { 6 | "shell": { 7 | "theme": "sbiddle", 8 | "colorscheme": "default" 9 | }, 10 | "tmux": { 11 | "colorscheme": "default", 12 | "theme": "sbiddle" 13 | }, 14 | "vim": { 15 | "colorscheme": "default", 16 | "theme": "default", 17 | "local_themes": { 18 | "__tabline__": "tabline", 19 | 20 | "cmdwin": "cmdwin", 21 | "help": "help", 22 | "quickfix": "quickfix", 23 | 24 | "powerline.matchers.vim.plugin.nerdtree.nerdtree": "plugin_nerdtree", 25 | "powerline.matchers.vim.plugin.commandt.commandt": "plugin_commandt", 26 | "powerline.matchers.vim.plugin.gundo.gundo": "plugin_gundo", 27 | "powerline.matchers.vim.plugin.gundo.gundo_preview": "plugin_gundo-preview" 28 | } 29 | } 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /.config/powerline/themes/powerline.json: -------------------------------------------------------------------------------- 1 | { 2 | "dividers": { 3 | "left": { 4 | "hard": " ", 5 | "soft": " " 6 | }, 7 | "right": { 8 | "hard": " ", 9 | "soft": " " 10 | } 11 | }, 12 | "spaces": 1, 13 | "segment_data": { 14 | "branch": { 15 | "before": " " 16 | }, 17 | "cwd": { 18 | "args": { 19 | "ellipsis": "⋯" 20 | } 21 | }, 22 | 23 | "line_current_symbol": { 24 | "contents": " " 25 | }, 26 | "player": { 27 | "args": { 28 | "state_symbols": { 29 | "fallback": "♫", 30 | "play": "▶", 31 | "pause": "▮▮", 32 | "stop": "■" 33 | } 34 | } 35 | }, 36 | 37 | "time": { 38 | "before": "" 39 | }, 40 | 41 | "powerline.segments.common.net.network_load": { 42 | "args": { 43 | "recv_format": "⬇ {value:>8}", 44 | "sent_format": "⬆ {value:>8}" 45 | } 46 | }, 47 | "powerline.segments.common.net.hostname": { 48 | "before": " " 49 | }, 50 | "powerline.segments.common.bat.battery": { 51 | "args": { 52 | "full_heart": "♥", 53 | "empty_heart": "♥" 54 | } 55 | }, 56 | "powerline.segments.common.sys.uptime": { 57 | "before": "⇑ " 58 | }, 59 | "powerline.segments.common.mail.email_imap_alert": { 60 | "before": "✉ " 61 | }, 62 | "powerline.segments.common.env.virtualenv": { 63 | "before": "ⓔ " 64 | }, 65 | "powerline.segments.common.wthr.weather": { 66 | "args": { 67 | "icons": { 68 | "day": "〇", 69 | "blustery": "⚑", 70 | "rainy": "☔", 71 | "cloudy": "☁", 72 | "snowy": "❅", 73 | "stormy": "☈", 74 | "foggy": "≡", 75 | "sunny": "☼", 76 | "night": "☾", 77 | "windy": "☴", 78 | "not_available": "�", 79 | "unknown": "⚠" 80 | } 81 | } 82 | }, 83 | "powerline.segments.common.time.fuzzy_time": { 84 | "args": { 85 | "unicode_text": true 86 | } 87 | }, 88 | 89 | "powerline.segments.vim.mode": { 90 | "args": { 91 | "override": { 92 | "n": "NORMAL", 93 | "no": "N·OPER", 94 | "v": "VISUAL", 95 | "V": "V·LINE", 96 | "^V": "V·BLCK", 97 | "s": "SELECT", 98 | "S": "S·LINE", 99 | "^S": "S·BLCK", 100 | "i": "INSERT", 101 | "R": "RPLACE", 102 | "Rv": "V·RPLC", 103 | "c": "COMMND", 104 | "cv": "VIM·EX", 105 | "ce": "NRM·EX", 106 | "r": "PROMPT", 107 | "rm": "-MORE-", 108 | "r?": "CNFIRM", 109 | "!": "!SHELL" 110 | } 111 | } 112 | }, 113 | "powerline.segments.vim.visual_range": { 114 | "args": { 115 | "CTRL_V_text": "{rows} × {vcols}", 116 | "v_text_oneline": "C:{vcols}", 117 | "v_text_multiline": "L:{rows}", 118 | "V_text": "L:{rows}" 119 | } 120 | }, 121 | "powerline.segments.vim.readonly_indicator": { 122 | "args": { 123 | "text": "" 124 | } 125 | }, 126 | "powerline.segments.vim.modified_indicator": { 127 | "args": { 128 | "text": "+" 129 | } 130 | } 131 | } 132 | } 133 | -------------------------------------------------------------------------------- /.config/powerline/themes/shell/sbiddle.json: -------------------------------------------------------------------------------- 1 | { 2 | "segments": { 3 | "above": [ 4 | { 5 | "left": [ 6 | { 7 | "name": "user", 8 | "function": "powerline.segments.common.env.user", 9 | "priority": 30 10 | }, 11 | { 12 | "function": "powerline.segments.common.vcs.branch", 13 | "args": { 14 | "status_colors": true, 15 | "ignore_statuses": ["U"] 16 | } 17 | }, 18 | { 19 | "name": "cwd", 20 | "function": "powerline.segments.common.env.cwd" 21 | } 22 | ] 23 | } 24 | ], 25 | "left": [ 26 | { 27 | "type": "string", 28 | "contents": ">", 29 | "highlight_groups": ["promptline"], 30 | "draw_soft_divider": false 31 | }, 32 | { 33 | "type": "string", 34 | "contents": "", 35 | "highlight_groups": ["blank"], 36 | "draw_hard_divider": false 37 | } 38 | ] 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /.config/powerline/themes/tmux/sbiddle.json: -------------------------------------------------------------------------------- 1 | { 2 | "segments": { 3 | "right": [ 4 | { 5 | "function": "powerline.segments.common.time.date", 6 | "name": "time", 7 | "args": { 8 | "format": "%H:%M", 9 | "istime": true, 10 | "tz": "America/New_York" 11 | }, 12 | "before": "L|" 13 | }, 14 | { 15 | "function": "powerline.segments.common.time.date", 16 | "name": "time", 17 | "args": { 18 | "format": "%H:%M", 19 | "istime": true 20 | }, 21 | "before": "S|" 22 | }, 23 | { 24 | "function": "powerline.segments.common.net.hostname" 25 | } 26 | ] 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /.gitconfig: -------------------------------------------------------------------------------- 1 | [user] 2 | name = %%GITNAME%% 3 | email = %%GITEMAIL%% 4 | [diff] 5 | external = git_diff_wrapper 6 | [pager] 7 | diff = 8 | [color] 9 | ui = auto 10 | [alias] 11 | st = status -a 12 | lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative 13 | ch = checkout - 14 | wslog = log --ignore-space-at-eol -p -w -b 15 | wsdiff = diff --ignore-space-at-eol -w -b --no-ext-diff 16 | [merge] 17 | tool = threesome 18 | [mergetool "threesome"] 19 | cmd = "vim -f $BASE $LOCAL $REMOTE $MERGED -c 'ThreesomeInit'" 20 | trustExitCode = true 21 | # vim: set et : 22 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule ".vim/bundle/phpcomplete.vim"] 2 | path = .vim/bundle/phpcomplete.vim 3 | url = git://github.com/shawncplus/phpcomplete.vim.git 4 | [submodule ".vim/bundle/easymotion.git"] 5 | path = .vim/bundle/easymotion.git 6 | url = git://github.com/Lokaltog/vim-easymotion.git 7 | [submodule ".vim/bundle/gitv.git"] 8 | path = .vim/bundle/gitv.git 9 | url = https://github.com/gregsexton/gitv.git 10 | [submodule ".vim/bundle/fugitive.vim"] 11 | path = .vim/bundle/fugitive.vim 12 | url = https://github.com/tpope/vim-fugitive.git 13 | [submodule ".vim/bundle/NERDtree.git"] 14 | path = .vim/bundle/NERDtree.git 15 | url = https://github.com/scrooloose/nerdtree.git 16 | [submodule ".vim/bundle/skittles_berry.git"] 17 | path = .vim/bundle/skittles_berry.git 18 | url = git://github.com/shawncplus/skittles_berry.git 19 | [submodule ".vim/bundle/vim-twig"] 20 | path = .vim/bundle/vim-twig 21 | url = https://github.com/evidens/vim-twig 22 | [submodule ".vim/bundle/vim-javascript"] 23 | path = .vim/bundle/vim-javascript 24 | url = https://github.com/pangloss/vim-javascript.git 25 | [submodule ".vim/bundle/vim-gitgutter"] 26 | path = .vim/bundle/vim-gitgutter 27 | url = https://github.com/airblade/vim-gitgutter.git 28 | [submodule ".vim/bundle/vim-indent-guides"] 29 | path = .vim/bundle/vim-indent-guides 30 | url = https://github.com/nathanaelkane/vim-indent-guides.git 31 | [submodule ".vim/bundle/vdebug"] 32 | path = .vim/bundle/vdebug 33 | url = https://github.com/joonty/vdebug.git 34 | [submodule ".vim/bundle/vim-jade"] 35 | path = .vim/bundle/vim-jade 36 | url = https://github.com/digitaltoad/vim-jade.git 37 | -------------------------------------------------------------------------------- /.tmux.conf: -------------------------------------------------------------------------------- 1 | # Set the prefix to ^A. 2 | unbind C-b 3 | set -g prefix ^A 4 | bind a send-prefix 5 | 6 | set -g xterm-keys on 7 | 8 | # Bind appropriate commands similar to screen. 9 | # lockscreen ^X x 10 | unbind ^X 11 | bind ^X lock-server 12 | unbind x 13 | bind x lock-server 14 | 15 | set -g lock-command vlock 16 | set -g lock-after-time 1800 17 | set -g lock-server on 18 | set -g renumber-windows on 19 | 20 | # screen ^C c 21 | unbind ^C 22 | bind ^C new-window 23 | unbind c 24 | bind c new-window 25 | 26 | # detach ^D d 27 | unbind ^D 28 | bind ^D detach 29 | 30 | # displays * 31 | unbind * 32 | bind * list-clients 33 | 34 | # next ^@ ^N sp n 35 | unbind ^@ 36 | bind ^@ next-window 37 | unbind ^N 38 | bind ^N next-window 39 | unbind " " 40 | bind " " next-window 41 | unbind n 42 | bind n next-window 43 | 44 | # title A 45 | unbind A 46 | bind A command-prompt "rename-window %%" 47 | 48 | # other ^A 49 | unbind ^A 50 | bind ^A last-window 51 | 52 | # prev ^H ^P p ^? 53 | unbind ^H 54 | bind ^H previous-window 55 | unbind ^P 56 | bind ^P previous-window 57 | unbind p 58 | bind p previous-window 59 | unbind BSpace 60 | bind BSpace previous-window 61 | 62 | # windows ^W w 63 | unbind ^W 64 | bind ^W list-windows 65 | unbind w 66 | bind w list-windows 67 | 68 | # quit \ 69 | unbind \ 70 | bind \ confirm-before "kill-server" 71 | 72 | # kill K k 73 | unbind K 74 | bind K confirm-before "kill-window" 75 | 76 | # redisplay ^L l 77 | unbind ^L 78 | bind ^L refresh-client 79 | 80 | # More straight forward key bindings for splitting 81 | unbind % 82 | bind | split-window -h 83 | bind v split-window -h 84 | unbind '"' 85 | bind - split-window -v 86 | bind / command-prompt "split-window 'exec %%'" 87 | bind S command-prompt "new-window -n %1 'ssh %1'" 88 | 89 | # History 90 | set -g history-limit 4096 91 | 92 | # Terminal emulator window title 93 | set -g set-titles on 94 | set -g set-titles-string '#S:#I.#P #W' 95 | 96 | # powerline setup 97 | source "$HOME/repos/powerline/powerline/bindings/tmux/powerline.conf" 98 | source "$HOME/repos/powerline/powerline/bindings/tmux/powerline_tmux_1.8_plus.conf" 99 | source "$HOME/repos/powerline/powerline/bindings/tmux/powerline_tmux_1.9_plus.conf" 100 | 101 | # Notifying if other windows has activities 102 | setw -g monitor-activity on 103 | set -g visual-activity off 104 | 105 | # Clock 106 | setw -g clock-mode-style 24 107 | 108 | # Panes 109 | set -g mouse-resize-pane on 110 | set -g mouse-select-pane on 111 | 112 | # Windows 113 | set -g mouse-select-window on 114 | setw -g mode-mouse on 115 | 116 | # " windowlist -b 117 | unbind '"' 118 | bind '"' choose-window 119 | 120 | # act like vim 121 | setw -g mode-keys vi 122 | bind h select-pane -L 123 | bind j select-pane -D 124 | bind k select-pane -U 125 | bind l select-pane -R 126 | bind-key -r C-h select-window -t :- 127 | bind-key -r C-l select-window -t :+ 128 | bind -t vi-copy v begin-selection 129 | bind -t vi-copy y copy-selection 130 | bind -t vi-copy Escape cancel 131 | 132 | setw -g display-panes-time 2000 133 | bind ^s display-panes \; command-prompt "swap-pane -s %1" 134 | 135 | set -g detach-on-destroy off 136 | setw -g alternate-screen off 137 | 138 | bind M-l next-layout 139 | set -g terminal-overrides 'xterm:colors=256' 140 | -------------------------------------------------------------------------------- /.vim/.VimballRecord: -------------------------------------------------------------------------------- 1 | snippy_bundles.vba: call delete('/home/shawn/.vim/after/ftplugin/actionscript_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/aspvbs_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/c_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/css_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/django_model_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/django_template_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/f-script_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/haskell_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/html_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/java_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/javascript_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/latex_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/logo_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/markdown_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/movable_type_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/objc_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/ocaml_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/perl_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/php_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/phpdoc_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/propel_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/python_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/rails_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/ruby_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/sh_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/slate_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/smarty_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/symfony_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/tcl_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/template_toolkit_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/tex_snippets.vim')|call delete('/home/shawn/.vim/after/ftplugin/xhtml_snippets.vim') 2 | snippy_plugin.vba: call delete('/home/shawn/.vim/plugin/snippetsEmu.vim')|call delete('/home/shawn/.vim/doc/snippets_emu.txt') 3 | netrw.vba: call delete('/home/sbiddle/.vim/plugin/netrwPlugin.vim [[[1')|call delete('/home/sbiddle/.vim/autoload/netrw.vim [[[1')|call delete('/home/sbiddle/.vim/autoload/netrwFileHandlers.vim [[[1')|call delete('/home/sbiddle/.vim/autoload/netrwSettings.vim [[[1')|call delete('/home/sbiddle/.vim/doc/pi_netrw.txt [[[1')|call delete('/home/sbiddle/.vim/syntax/netrw.vim [[[1') 4 | -------------------------------------------------------------------------------- /.vim/after/syntaxcheck.vim: -------------------------------------------------------------------------------- 1 | sign define phplerr text=* texthl=Error linehl=Error 2 | 3 | fun! CheckPHPSyntax() 4 | let clean = system("/usr/bin/php -l ". expand("%")) 5 | let test = substitute(clean, "\.\\+ line \\([0-9]\\+\\)\\s*\.\\+", "\\1", "gis") 6 | if(test != clean) 7 | exec ":sign place " . test . " line=" . test . " name=phplerr file=" . expand("%:p") 8 | echohl ErrorMsg | ec clean | echohl None 9 | echo "Would you like to move to the line?" 10 | let choice = nr2char(getchar()) 11 | if choice == "y" || choice == "\" 12 | call cursor(test, 0) 13 | else 14 | endif 15 | else 16 | sign unplace * 17 | endif 18 | endfun 19 | 20 | "automatically check syntax on save of the file WOOT! 21 | "autocmd BufWritePost *.php :!/usr/bin/php -l % 22 | autocmd FileType php autocmd BufWritePost :call CheckPHPSyntax() 23 | " CTRL+L checks syntax on the file 24 | "autocmd FileType php noremap :!/usr/bin/php -l % 25 | "autocmd FileType php noremap :call CheckPHPSyntax() 26 | 27 | 28 | " JavasScript awesomeness 29 | " Disabled for now, was getting buggy 30 | " You'll need my jslint/jslint_wrapper and js-support files/dirs 31 | "sign define linterr text=* texthl=Error linehl=Error 32 | " 33 | "fun! CheckJSSyntax() 34 | " let test = system("jslint ". expand('%')." -clean") 35 | " let clean = substitute(test, "\n", "\\n", "gis") 36 | " let listarg = substitute(clean, "^{\\([0-9 ]\\+\\)}\.\\+", "\\1", "gis") 37 | " 38 | " if (test != "No errors.\n") 39 | " for line in split(listarg, " ") 40 | " exec ":sign place " . line . " line=" . line . " name=linterr file=" . expand("%:p") 41 | " endfor 42 | " echon "". substitute(test, "^{\\([0-9 ]\\+\\)}", "", "gis") 43 | " else 44 | " sign unplace * 45 | " endif 46 | "endfun 47 | " 48 | "if !exists("js_autocmd_loaded") 49 | " let js_autocmd_loaded = 1 50 | " autocmd FileType javascript autocmd BufWritePost :call CheckJSSyntax() 51 | " autocmd FileType javascript noremap J :call CheckJSSyntax() 52 | "endif 53 | -------------------------------------------------------------------------------- /.vim/autoload/pathogen.vim: -------------------------------------------------------------------------------- 1 | " pathogen.vim - path option manipulation 2 | " Maintainer: Tim Pope 3 | " Version: 2.0 4 | 5 | " Install in ~/.vim/autoload (or ~\vimfiles\autoload). 6 | " 7 | " For management of individually installed plugins in ~/.vim/bundle (or 8 | " ~\vimfiles\bundle), adding `call pathogen#infect()` to your .vimrc 9 | " prior to `filetype plugin indent on` is the only other setup necessary. 10 | " 11 | " The API is documented inline below. For maximum ease of reading, 12 | " :set foldmethod=marker 13 | 14 | if exists("g:loaded_pathogen") || &cp 15 | finish 16 | endif 17 | let g:loaded_pathogen = 1 18 | 19 | " Point of entry for basic default usage. Give a directory name to invoke 20 | " pathogen#runtime_append_all_bundles() (defaults to "bundle"), or a full path 21 | " to invoke pathogen#runtime_prepend_subdirectories(). Afterwards, 22 | " pathogen#cycle_filetype() is invoked. 23 | function! pathogen#infect(...) abort " {{{1 24 | let source_path = a:0 ? a:1 : 'bundle' 25 | if source_path =~# '[\\/]' 26 | call pathogen#runtime_prepend_subdirectories(source_path) 27 | else 28 | call pathogen#runtime_append_all_bundles(source_path) 29 | endif 30 | call pathogen#cycle_filetype() 31 | endfunction " }}}1 32 | 33 | " Split a path into a list. 34 | function! pathogen#split(path) abort " {{{1 35 | if type(a:path) == type([]) | return a:path | endif 36 | let split = split(a:path,'\\\@]','\\&','') 191 | endif 192 | endfunction " }}}1 193 | 194 | function! s:find(count,cmd,file,lcd) " {{{1 195 | let rtp = pathogen#join(1,pathogen#split(&runtimepath)) 196 | let file = pathogen#runtime_findfile(a:file,a:count) 197 | if file ==# '' 198 | return "echoerr 'E345: Can''t find file \"".a:file."\" in runtimepath'" 199 | elseif a:lcd 200 | let path = file[0:-strlen(a:file)-2] 201 | execute 'lcd `=path`' 202 | return a:cmd.' '.pathogen#fnameescape(a:file) 203 | else 204 | return a:cmd.' '.pathogen#fnameescape(file) 205 | endif 206 | endfunction " }}}1 207 | 208 | function! s:Findcomplete(A,L,P) " {{{1 209 | let sep = pathogen#separator() 210 | let cheats = { 211 | \'a': 'autoload', 212 | \'d': 'doc', 213 | \'f': 'ftplugin', 214 | \'i': 'indent', 215 | \'p': 'plugin', 216 | \'s': 'syntax'} 217 | if a:A =~# '^\w[\\/]' && has_key(cheats,a:A[0]) 218 | let request = cheats[a:A[0]].a:A[1:-1] 219 | else 220 | let request = a:A 221 | endif 222 | let pattern = substitute(request,'\'.sep,'*'.sep,'g').'*' 223 | let found = {} 224 | for path in pathogen#split(&runtimepath) 225 | let path = expand(path, ':p') 226 | let matches = split(glob(path.sep.pattern),"\n") 227 | call map(matches,'isdirectory(v:val) ? v:val.sep : v:val') 228 | call map(matches,'expand(v:val, ":p")[strlen(path)+1:-1]') 229 | for match in matches 230 | let found[match] = 1 231 | endfor 232 | endfor 233 | return sort(keys(found)) 234 | endfunction " }}}1 235 | 236 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Ve :execute s:find(,'edit',,0) 237 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit :execute s:find(,'edit',,0) 238 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen :execute s:find(,'edit',,1) 239 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit :execute s:find(,'split',,1) 240 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit :execute s:find(,'vsplit',,1) 241 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(,'tabedit',,1) 242 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit :execute s:find(,'pedit',,1) 243 | command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vread :execute s:find(,'read',,1) 244 | 245 | " vim:set ft=vim ts=8 sw=2 sts=2: 246 | -------------------------------------------------------------------------------- /.vim/colors/molokai.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " 3 | " Author: Tomas Restrepo 4 | " 5 | " Note: Based on the monokai theme for textmate 6 | " by Wimer Hazenberg and its darker variant 7 | " by Hamish Stuart Macpherson 8 | " 9 | 10 | hi clear 11 | 12 | set background=dark 13 | if version > 580 14 | " no guarantees for version 5.8 and below, but this makes it stop 15 | " complaining 16 | hi clear 17 | if exists("syntax_on") 18 | syntax reset 19 | endif 20 | endif 21 | let g:colors_name="molokai" 22 | 23 | if exists("g:molokai_original") 24 | let s:molokai_original = g:molokai_original 25 | else 26 | let s:molokai_original = 0 27 | endif 28 | 29 | 30 | hi Boolean guifg=#AE81FF 31 | hi Character guifg=#E6DB74 32 | hi Number guifg=#AE81FF 33 | hi String guifg=#E6DB74 34 | hi Conditional guifg=#F92672 gui=bold 35 | hi Constant guifg=#AE81FF gui=bold 36 | hi Cursor guifg=#000000 guibg=#F8F8F0 37 | hi Debug guifg=#BCA3A3 gui=bold 38 | hi Define guifg=#66D9EF 39 | hi Delimiter guifg=#8F8F8F 40 | hi DiffAdd guibg=#13354A 41 | hi DiffChange guifg=#89807D guibg=#4C4745 42 | hi DiffDelete guifg=#960050 guibg=#1E0010 43 | hi DiffText guibg=#4C4745 gui=italic,bold 44 | 45 | hi Directory guifg=#A6E22E gui=bold 46 | hi Error guifg=#960050 guibg=#1E0010 47 | hi ErrorMsg guifg=#F92672 guibg=#232526 gui=bold 48 | hi Exception guifg=#A6E22E gui=bold 49 | hi Float guifg=#AE81FF 50 | hi FoldColumn guifg=#465457 guibg=#000000 51 | hi Folded guifg=#465457 guibg=#000000 52 | hi Function guifg=#A6E22E 53 | hi Identifier guifg=#FD971F 54 | hi Ignore guifg=#808080 guibg=bg 55 | hi IncSearch guifg=#C4BE89 guibg=#000000 56 | 57 | hi Keyword guifg=#F92672 gui=bold 58 | hi Label guifg=#E6DB74 gui=none 59 | hi Macro guifg=#C4BE89 gui=italic 60 | hi SpecialKey guifg=#66D9EF gui=italic 61 | 62 | hi MatchParen guifg=#000000 guibg=#FD971F gui=bold 63 | hi ModeMsg guifg=#E6DB74 64 | hi MoreMsg guifg=#E6DB74 65 | "hi Operator guifg=#F92672 66 | hi Operator guifg=#FD971F gui=none 67 | 68 | " complete menu 69 | hi Pmenu guifg=#66D9EF guibg=#000000 70 | hi PmenuSel guibg=#808080 71 | hi PmenuSbar guibg=#080808 72 | hi PmenuThumb guifg=#66D9EF 73 | 74 | hi PreCondit guifg=#A6E22E gui=bold 75 | hi PreProc guifg=#A6E22E 76 | hi Question guifg=#66D9EF 77 | hi Repeat guifg=#F92672 gui=bold 78 | hi Search guifg=#FFFFFF guibg=#455354 79 | " marks column 80 | hi SignColumn guifg=#A6E22E guibg=#232526 81 | hi SpecialChar guifg=#F92672 gui=bold 82 | hi SpecialComment guifg=#465457 gui=bold 83 | hi Special guifg=#66D9EF guibg=bg gui=italic 84 | hi SpecialKey guifg=#888A85 gui=italic 85 | if has("spell") 86 | hi SpellBad guisp=#FF0000 gui=undercurl 87 | hi SpellCap guisp=#7070F0 gui=undercurl 88 | hi SpellLocal guisp=#70F0F0 gui=undercurl 89 | hi SpellRare guisp=#FFFFFF gui=undercurl 90 | endif 91 | hi Statement guifg=#F92672 gui=bold 92 | hi StatusLine guifg=#455354 guibg=fg 93 | hi StatusLineNC guifg=#808080 guibg=#080808 94 | hi StorageClass guifg=#FD971F gui=italic 95 | hi Structure guifg=#66D9EF 96 | hi Tag guifg=#F92672 gui=italic 97 | hi Title guifg=#ef5939 98 | hi Todo guifg=#FFFFFF guibg=bg gui=bold 99 | 100 | hi Typedef guifg=#66D9EF 101 | hi Type guifg=#66D9EF gui=none 102 | hi Underlined guifg=#808080 gui=underline 103 | 104 | hi VertSplit guifg=#808080 guibg=#080808 105 | hi VisualNOS guibg=#403D3D 106 | hi Visual guibg=#403D3D 107 | hi WarningMsg guifg=#FFFFFF guibg=#333333 gui=bold 108 | hi WildMenu guifg=#66D9EF guibg=#000000 109 | 110 | if s:molokai_original == 1 111 | hi Normal guifg=#F8F8F2 guibg=#272822 112 | hi Comment guifg=#75715E 113 | hi CursorLine guibg=#3E3D32 114 | hi CursorColumn guibg=#3E3D32 115 | hi LineNr guifg=#BCBCBC guibg=#3B3A32 116 | hi NonText guifg=#BCBCBC guibg=#3B3A32 117 | else 118 | hi Normal guifg=#F8F8F2 guibg=#121212 119 | hi Comment guifg=#465457 120 | hi CursorLine guibg=#293739 121 | hi CursorColumn guibg=#293739 122 | hi LineNr guifg=#BCBCBC guibg=#232526 123 | hi NonText guifg=#BCBCBC guibg=#232526 124 | end 125 | 126 | " 127 | " Support for 256-color terminal 128 | " 129 | if &t_Co > 255 130 | hi Boolean ctermfg=135 131 | hi Character ctermfg=144 132 | hi Number ctermfg=135 133 | hi String ctermfg=144 134 | hi Conditional ctermfg=161 cterm=bold 135 | hi Constant ctermfg=135 cterm=bold 136 | hi Cursor ctermfg=16 ctermbg=253 137 | hi Debug ctermfg=225 cterm=bold 138 | hi Define ctermfg=81 139 | hi Delimiter ctermfg=241 140 | 141 | hi DiffAdd ctermbg=24 142 | hi DiffChange ctermfg=181 ctermbg=239 143 | hi DiffDelete ctermfg=162 ctermbg=53 144 | hi DiffText ctermbg=102 cterm=bold 145 | 146 | hi Directory ctermfg=118 cterm=bold 147 | hi Error ctermfg=219 ctermbg=89 148 | hi ErrorMsg ctermfg=199 ctermbg=16 cterm=bold 149 | hi Exception ctermfg=118 cterm=bold 150 | hi Float ctermfg=135 151 | hi FoldColumn ctermfg=67 ctermbg=16 152 | hi Folded ctermfg=67 ctermbg=16 153 | hi Function ctermfg=118 154 | hi Identifier ctermfg=208 cterm=none 155 | hi Ignore ctermfg=244 ctermbg=232 156 | hi IncSearch ctermfg=193 ctermbg=16 157 | 158 | hi Keyword ctermfg=161 cterm=bold 159 | hi Label ctermfg=229 cterm=none 160 | hi Macro ctermfg=193 161 | hi SpecialKey ctermfg=81 162 | 163 | hi MatchParen ctermfg=16 ctermbg=208 cterm=bold 164 | hi ModeMsg ctermfg=229 165 | hi MoreMsg ctermfg=229 166 | " hi Operator ctermfg=161 167 | hi Operator ctermfg=208 168 | 169 | " complete menu 170 | hi Pmenu ctermfg=81 ctermbg=16 171 | hi PmenuSel ctermbg=244 172 | hi PmenuSbar ctermbg=232 173 | hi PmenuThumb ctermfg=81 174 | 175 | hi PreCondit ctermfg=118 cterm=bold 176 | hi PreProc ctermfg=118 177 | hi Question ctermfg=81 178 | hi Repeat ctermfg=161 cterm=bold 179 | hi Search ctermfg=253 ctermbg=66 180 | 181 | " marks column 182 | hi SignColumn ctermfg=118 ctermbg=235 183 | hi SpecialChar ctermfg=161 cterm=bold 184 | hi SpecialComment ctermfg=245 cterm=bold 185 | hi Special ctermfg=81 ctermbg=232 186 | hi SpecialKey ctermfg=245 187 | 188 | hi Statement ctermfg=161 cterm=bold 189 | hi StatusLine ctermfg=238 ctermbg=253 190 | hi StatusLineNC ctermfg=244 ctermbg=232 191 | hi StorageClass ctermfg=208 192 | hi Structure ctermfg=81 193 | hi Tag ctermfg=161 194 | hi Title ctermfg=166 195 | hi Todo ctermfg=231 ctermbg=232 cterm=bold 196 | 197 | hi Typedef ctermfg=81 198 | hi Type ctermfg=81 cterm=none 199 | hi Underlined ctermfg=244 cterm=underline 200 | 201 | hi VertSplit ctermfg=244 ctermbg=232 202 | hi VisualNOS ctermbg=238 203 | hi Visual ctermbg=235 204 | hi WarningMsg ctermfg=231 ctermbg=238 cterm=bold 205 | hi WildMenu ctermfg=81 ctermbg=16 206 | 207 | hi Normal ctermfg=252 ctermbg=233 208 | hi Comment ctermfg=59 209 | hi CursorLine ctermbg=234 cterm=none 210 | hi CursorColumn ctermbg=234 211 | hi LineNr ctermfg=250 ctermbg=234 212 | hi NonText ctermfg=250 ctermbg=234 213 | end 214 | -------------------------------------------------------------------------------- /.vim/colors/peaksea.vim: -------------------------------------------------------------------------------- 1 | " Vim color file --- psc (peak sea color) "Lite version" 2 | " Maintainer: Pan, Shi Zhu 3 | " URL: http://vim.sourceforge.net/scripts/script.php?script_id=760 4 | " Last Change: 31 Oct 2008 5 | " Version: 3.3 6 | " 7 | " Comments and e-mails are welcomed, thanks. 8 | " 9 | " The peaksea color is simply a colorscheme with the default settings of 10 | " the original ps_color. Lite version means there's no custom settings 11 | " and fancy features such as integration with reloaded.vim 12 | " 13 | " The full version of ps_color.vim will be maintained until Vim 8. 14 | " By then there will be only the lite version: peaksea.vim 15 | " 16 | " Note: Please set the background option in your .vimrc and/or .gvimrc 17 | " 18 | " It is much better *not* to set 'background' option inside 19 | " a colorscheme file. because ":set background" inside a colorscheme 20 | " may cause colorscheme be sourced twice or in the worst case result an 21 | " infinite loop. 22 | " 23 | " Color Scheme Overview: 24 | " :ru syntax/hitest.vim 25 | " 26 | " Relevant Help: 27 | " :h highlight-groups 28 | " :h psc-cterm-color-table 29 | " 30 | " Colors Order: 31 | " #rrggbb 32 | " 33 | 34 | hi clear 35 | 36 | if exists("syntax_on") 37 | syntax reset 38 | endif 39 | 40 | let g:colors_name = expand(":t:r") 41 | 42 | " I don't want to abuse folding, but here folding is used to avoid confusion. 43 | if &background=='light' 44 | " for background=light {{{2 45 | " LIGHT COLOR DEFINE START 46 | 47 | hi Normal guifg=#000000 guibg=#e0e0e0 gui=NONE 48 | hi Search guifg=NONE guibg=#f8f8f8 gui=NONE 49 | hi Visual guifg=NONE guibg=#a6caf0 gui=NONE 50 | hi Cursor guifg=#f0f0f0 guibg=#008000 gui=NONE 51 | " The idea of CursorIM is pretty good, however, the feature is still buggy 52 | " in the current version (Vim 7.0). 53 | " The following line will be kept commented until the bug fixed. 54 | " 55 | " hi CursorIM guifg=#f0f0f0 guibg=#800080 56 | hi Special guifg=#907000 guibg=NONE gui=NONE 57 | hi Comment guifg=#606000 guibg=NONE gui=NONE 58 | hi Number guifg=#907000 guibg=NONE gui=NONE 59 | hi Constant guifg=#007068 guibg=NONE gui=NONE 60 | hi StatusLine guifg=fg guibg=#a6caf0 gui=NONE 61 | hi LineNr guifg=#686868 guibg=NONE gui=NONE 62 | hi Question guifg=fg guibg=#d0d090 gui=NONE 63 | hi PreProc guifg=#009030 guibg=NONE gui=NONE 64 | hi Statement guifg=#2060a8 guibg=NONE gui=NONE 65 | hi Type guifg=#0850a0 guibg=NONE gui=NONE 66 | hi Todo guifg=#800000 guibg=#e0e090 gui=NONE 67 | " NOTE THIS IS IN THE WARM SECTION 68 | hi Error guifg=#c03000 guibg=NONE gui=NONE 69 | hi Identifier guifg=#a030a0 guibg=NONE gui=NONE 70 | hi ModeMsg guifg=fg guibg=#b0b0e0 gui=NONE 71 | hi VisualNOS guifg=fg guibg=#b0b0e0 gui=NONE 72 | hi SpecialKey guifg=#1050a0 guibg=NONE gui=NONE 73 | hi NonText guifg=#002090 guibg=#d0d0d0 gui=NONE 74 | hi Directory guifg=#a030a0 guibg=NONE gui=NONE 75 | hi ErrorMsg guifg=fg guibg=#f0b090 gui=NONE 76 | hi MoreMsg guifg=#489000 guibg=NONE gui=NONE 77 | hi Title guifg=#a030a0 guibg=NONE gui=NONE 78 | hi WarningMsg guifg=#b02000 guibg=NONE gui=NONE 79 | hi WildMenu guifg=fg guibg=#d0d090 gui=NONE 80 | hi Folded guifg=NONE guibg=#b0e0b0 gui=NONE 81 | hi FoldColumn guifg=fg guibg=#90e090 gui=NONE 82 | hi DiffAdd guifg=NONE guibg=#b0b0e0 gui=NONE 83 | hi DiffChange guifg=NONE guibg=#e0b0e0 gui=NONE 84 | hi DiffDelete guifg=#002090 guibg=#d0d0d0 gui=NONE 85 | hi DiffText guifg=NONE guibg=#c0e080 gui=NONE 86 | hi SignColumn guifg=fg guibg=#90e090 gui=NONE 87 | 88 | hi IncSearch guifg=#f0f0f0 guibg=#806060 gui=NONE 89 | hi StatusLineNC guifg=fg guibg=#c0c0c0 gui=NONE 90 | hi VertSplit guifg=fg guibg=#c0c0c0 gui=NONE 91 | hi Underlined guifg=#6a5acd guibg=NONE gui=underline 92 | hi Ignore guifg=bg guibg=NONE 93 | " NOTE THIS IS IN THE WARM SECTION 94 | if v:version >= 700 95 | if has('spell') 96 | hi SpellBad guifg=NONE guibg=NONE guisp=#c03000 97 | hi SpellCap guifg=NONE guibg=NONE guisp=#2060a8 98 | hi SpellRare guifg=NONE guibg=NONE guisp=#a030a0 99 | hi SpellLocal guifg=NONE guibg=NONE guisp=#007068 100 | endif 101 | hi Pmenu guifg=fg guibg=#e0b0e0 102 | hi PmenuSel guifg=#f0f0f0 guibg=#806060 gui=NONE 103 | hi PmenuSbar guifg=fg guibg=#c0c0c0 gui=NONE 104 | hi PmenuThumb guifg=fg guibg=#c0e080 gui=NONE 105 | hi TabLine guifg=fg guibg=#c0c0c0 gui=NONE 106 | hi TabLineFill guifg=fg guibg=#c0c0c0 gui=NONE 107 | hi TabLineSel guifg=fg guibg=NONE gui=NONE 108 | hi CursorColumn guifg=NONE guibg=#f0b090 109 | hi CursorLine guifg=NONE guibg=NONE gui=underline 110 | hi MatchParen guifg=NONE guibg=#c0e080 111 | endif 112 | 113 | " LIGHT COLOR DEFINE END 114 | 115 | " Vim 7 added stuffs 116 | if v:version >= 700 117 | hi Ignore gui=NONE 118 | 119 | " the gui=undercurl guisp could only support in Vim 7 120 | if has('spell') 121 | hi SpellBad gui=undercurl 122 | hi SpellCap gui=undercurl 123 | hi SpellRare gui=undercurl 124 | hi SpellLocal gui=undercurl 125 | endif 126 | hi TabLine gui=underline 127 | hi TabLineFill gui=underline 128 | hi CursorLine gui=underline 129 | endif 130 | 131 | " For reversed stuffs, clear the reversed prop and set the bold prop again 132 | hi IncSearch gui=bold 133 | hi StatusLine gui=bold 134 | hi StatusLineNC gui=bold 135 | hi VertSplit gui=bold 136 | hi Visual gui=bold 137 | 138 | " Enable the bold property 139 | hi Question gui=bold 140 | hi DiffText gui=bold 141 | hi Statement gui=bold 142 | hi Type gui=bold 143 | hi MoreMsg gui=bold 144 | hi ModeMsg gui=bold 145 | hi NonText gui=bold 146 | hi Title gui=bold 147 | hi DiffDelete gui=bold 148 | hi TabLineSel gui=bold 149 | 150 | " gui define for background=light end here 151 | 152 | if &t_Co==256 153 | " 256color light terminal support here 154 | 155 | hi Normal ctermfg=16 ctermbg=254 cterm=NONE 156 | " Comment/Uncomment the following line to disable/enable transparency 157 | "hi Normal ctermfg=16 ctermbg=NONE cterm=NONE 158 | hi Search ctermfg=NONE ctermbg=231 cterm=NONE 159 | hi Visual ctermfg=NONE ctermbg=153 cterm=NONE 160 | hi Cursor ctermfg=255 ctermbg=28 cterm=NONE 161 | " hi CursorIM ctermfg=255 ctermbg=90 162 | hi Special ctermfg=94 ctermbg=NONE cterm=NONE 163 | hi Comment ctermfg=58 ctermbg=NONE cterm=NONE 164 | hi Number ctermfg=94 ctermbg=NONE cterm=NONE 165 | hi Constant ctermfg=23 ctermbg=NONE cterm=NONE 166 | hi StatusLine ctermfg=fg ctermbg=153 cterm=NONE 167 | hi LineNr ctermfg=242 ctermbg=NONE cterm=NONE 168 | hi Question ctermfg=fg ctermbg=186 cterm=NONE 169 | hi PreProc ctermfg=29 ctermbg=NONE cterm=NONE 170 | hi Statement ctermfg=25 ctermbg=NONE cterm=NONE 171 | hi Type ctermfg=25 ctermbg=NONE cterm=NONE 172 | hi Todo ctermfg=88 ctermbg=186 cterm=NONE 173 | " NOTE THIS IS IN THE WARM SECTION 174 | hi Error ctermfg=130 ctermbg=NONE cterm=NONE 175 | hi Identifier ctermfg=133 ctermbg=NONE cterm=NONE 176 | hi ModeMsg ctermfg=fg ctermbg=146 cterm=NONE 177 | hi VisualNOS ctermfg=fg ctermbg=146 cterm=NONE 178 | hi SpecialKey ctermfg=25 ctermbg=NONE cterm=NONE 179 | hi NonText ctermfg=18 ctermbg=252 cterm=NONE 180 | " Comment/Uncomment the following line to disable/enable transparency 181 | "hi NonText ctermfg=18 ctermbg=NONE cterm=NONE 182 | hi Directory ctermfg=133 ctermbg=NONE cterm=NONE 183 | hi ErrorMsg ctermfg=fg ctermbg=216 cterm=NONE 184 | hi MoreMsg ctermfg=64 ctermbg=NONE cterm=NONE 185 | hi Title ctermfg=133 ctermbg=NONE cterm=NONE 186 | hi WarningMsg ctermfg=124 ctermbg=NONE cterm=NONE 187 | hi WildMenu ctermfg=fg ctermbg=186 cterm=NONE 188 | hi Folded ctermfg=NONE ctermbg=151 cterm=NONE 189 | hi FoldColumn ctermfg=fg ctermbg=114 cterm=NONE 190 | hi DiffAdd ctermfg=NONE ctermbg=146 cterm=NONE 191 | hi DiffChange ctermfg=NONE ctermbg=182 cterm=NONE 192 | hi DiffDelete ctermfg=18 ctermbg=252 cterm=NONE 193 | hi DiffText ctermfg=NONE ctermbg=150 cterm=NONE 194 | hi SignColumn ctermfg=fg ctermbg=114 cterm=NONE 195 | 196 | hi IncSearch ctermfg=255 ctermbg=95 cterm=NONE 197 | hi StatusLineNC ctermfg=fg ctermbg=250 cterm=NONE 198 | hi VertSplit ctermfg=fg ctermbg=250 cterm=NONE 199 | hi Underlined ctermfg=62 ctermbg=NONE cterm=underline 200 | hi Ignore ctermfg=bg ctermbg=NONE 201 | " NOTE THIS IS IN THE WARM SECTION 202 | if v:version >= 700 203 | if has('spell') 204 | if 0 205 | " ctermsp is not supported in Vim7, we ignore it. 206 | hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=130 207 | hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=25 208 | hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=133 209 | hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=23 210 | else 211 | hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=NONE 212 | hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=NONE 213 | hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=NONE 214 | hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=NONE 215 | endif 216 | endif 217 | hi Pmenu ctermfg=fg ctermbg=182 218 | hi PmenuSel ctermfg=255 ctermbg=95 cterm=NONE 219 | hi PmenuSbar ctermfg=fg ctermbg=250 cterm=NONE 220 | hi PmenuThumb ctermfg=fg ctermbg=150 cterm=NONE 221 | hi TabLine ctermfg=fg ctermbg=250 cterm=NONE 222 | hi TabLineFill ctermfg=fg ctermbg=250 cterm=NONE 223 | hi TabLineSel ctermfg=fg ctermbg=NONE cterm=NONE 224 | hi CursorColumn ctermfg=NONE ctermbg=216 225 | hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline 226 | hi MatchParen ctermfg=NONE ctermbg=150 227 | endif 228 | 229 | hi TabLine cterm=underline 230 | hi TabLineFill cterm=underline 231 | hi CursorLine cterm=underline 232 | 233 | " For reversed stuffs, clear the reversed prop and set the bold prop again 234 | hi IncSearch cterm=bold 235 | hi StatusLine cterm=bold 236 | hi StatusLineNC cterm=bold 237 | hi VertSplit cterm=bold 238 | hi Visual cterm=bold 239 | 240 | hi NonText cterm=bold 241 | hi Question cterm=bold 242 | hi Title cterm=bold 243 | hi DiffDelete cterm=bold 244 | hi DiffText cterm=bold 245 | hi Statement cterm=bold 246 | hi Type cterm=bold 247 | hi MoreMsg cterm=bold 248 | hi ModeMsg cterm=bold 249 | hi TabLineSel cterm=bold 250 | 251 | hi lCursor ctermfg=bg ctermbg=fg cterm=NONE 252 | endif " t_Co==256 253 | " }}}2 254 | elseif &background=='dark' 255 | " for background=dark {{{2 256 | " DARK COLOR DEFINE START 257 | 258 | hi Normal guifg=#d0d0d0 guibg=#202020 gui=NONE 259 | hi Comment guifg=#d0d090 guibg=NONE gui=NONE 260 | hi Constant guifg=#80c0e0 guibg=NONE gui=NONE 261 | hi Number guifg=#e0c060 guibg=NONE gui=NONE 262 | hi Identifier guifg=#f0c0f0 guibg=NONE gui=NONE 263 | hi Statement guifg=#c0d8f8 guibg=NONE gui=NONE 264 | hi PreProc guifg=#60f080 guibg=NONE gui=NONE 265 | hi Type guifg=#b0d0f0 guibg=NONE gui=NONE 266 | hi Special guifg=#e0c060 guibg=NONE gui=NONE 267 | hi Error guifg=#f08060 guibg=NONE gui=NONE 268 | hi Todo guifg=#800000 guibg=#d0d090 gui=NONE 269 | hi Search guifg=NONE guibg=#800000 gui=NONE 270 | hi Visual guifg=#000000 guibg=#a6caf0 gui=NONE 271 | hi Cursor guifg=#000000 guibg=#00f000 gui=NONE 272 | " NOTE THIS IS IN THE COOL SECTION 273 | " hi CursorIM guifg=#000000 guibg=#f000f0 gui=NONE 274 | hi StatusLine guifg=#000000 guibg=#a6caf0 gui=NONE 275 | hi LineNr guifg=#b0b0b0 guibg=NONE gui=NONE 276 | hi Question guifg=#000000 guibg=#d0d090 gui=NONE 277 | hi ModeMsg guifg=fg guibg=#000080 gui=NONE 278 | hi VisualNOS guifg=fg guibg=#000080 gui=NONE 279 | hi SpecialKey guifg=#b0d0f0 guibg=NONE gui=NONE 280 | hi NonText guifg=#6080f0 guibg=#101010 gui=NONE 281 | hi Directory guifg=#80c0e0 guibg=NONE gui=NONE 282 | hi ErrorMsg guifg=#d0d090 guibg=#800000 gui=NONE 283 | hi MoreMsg guifg=#c0e080 guibg=NONE gui=NONE 284 | hi Title guifg=#f0c0f0 guibg=NONE gui=NONE 285 | hi WarningMsg guifg=#f08060 guibg=NONE gui=NONE 286 | hi WildMenu guifg=#000000 guibg=#d0d090 gui=NONE 287 | hi Folded guifg=NONE guibg=#004000 gui=NONE 288 | hi FoldColumn guifg=#e0e0e0 guibg=#008000 gui=NONE 289 | hi DiffAdd guifg=NONE guibg=#000080 gui=NONE 290 | hi DiffChange guifg=NONE guibg=#800080 gui=NONE 291 | hi DiffDelete guifg=#6080f0 guibg=#202020 gui=NONE 292 | hi DiffText guifg=#000000 guibg=#c0e080 gui=NONE 293 | hi SignColumn guifg=#e0e0e0 guibg=#008000 gui=NONE 294 | hi IncSearch guifg=#000000 guibg=#d0d0d0 gui=NONE 295 | hi StatusLineNC guifg=#000000 guibg=#c0c0c0 gui=NONE 296 | hi VertSplit guifg=#000000 guibg=#c0c0c0 gui=NONE 297 | hi Underlined guifg=#80a0ff guibg=NONE gui=underline 298 | hi Ignore guifg=#000000 guibg=NONE 299 | " NOTE THIS IS IN THE COOL SECTION 300 | if v:version >= 700 301 | if has('spell') 302 | " the guisp= could only support in Vim 7 303 | hi SpellBad guifg=NONE guibg=NONE guisp=#f08060 304 | hi SpellCap guifg=NONE guibg=NONE guisp=#6080f0 305 | hi SpellRare guifg=NONE guibg=NONE guisp=#f0c0f0 306 | hi SpellLocal guifg=NONE guibg=NONE guisp=#c0d8f8 307 | endif 308 | hi Pmenu guifg=fg guibg=#800080 309 | hi PmenuSel guifg=#000000 guibg=#d0d0d0 gui=NONE 310 | hi PmenuSbar guifg=fg guibg=#000080 gui=NONE 311 | hi PmenuThumb guifg=fg guibg=#008000 gui=NONE 312 | hi TabLine guifg=fg guibg=#008000 gui=NONE 313 | hi TabLineFill guifg=fg guibg=#008000 gui=NONE 314 | hi TabLineSel guifg=fg guibg=NONE gui=NONE 315 | hi CursorColumn guifg=NONE guibg=#800000 gui=NONE 316 | hi CursorLine guifg=NONE guibg=NONE gui=underline 317 | hi MatchParen guifg=NONE guibg=#800080 318 | endif 319 | 320 | " DARK COLOR DEFINE END 321 | 322 | " Vim 7 added stuffs 323 | if v:version >= 700 324 | hi Ignore gui=NONE 325 | 326 | " the gui=undercurl could only support in Vim 7 327 | if has('spell') 328 | hi SpellBad gui=undercurl 329 | hi SpellCap gui=undercurl 330 | hi SpellRare gui=undercurl 331 | hi SpellLocal gui=undercurl 332 | endif 333 | hi TabLine gui=underline 334 | hi TabLineFill gui=underline 335 | hi Underlined gui=underline 336 | hi CursorLine gui=underline 337 | endif 338 | 339 | " gui define for background=dark end here 340 | 341 | if &t_Co==8 || &t_Co==16 342 | " for 8-color and 16-color term 343 | hi Normal ctermfg=LightGrey ctermbg=Black 344 | hi Special ctermfg=Yellow ctermbg=bg 345 | hi Comment ctermfg=DarkYellow ctermbg=bg 346 | hi Constant ctermfg=Blue ctermbg=bg 347 | hi Number ctermfg=Yellow ctermbg=bg 348 | hi LineNr ctermfg=DarkGrey ctermbg=bg 349 | hi PreProc ctermfg=Green ctermbg=bg 350 | hi Statement ctermfg=Cyan ctermbg=bg 351 | hi Type ctermfg=Cyan ctermbg=bg 352 | hi Error ctermfg=Red ctermbg=bg 353 | hi Identifier ctermfg=Magenta ctermbg=bg 354 | hi SpecialKey ctermfg=Cyan ctermbg=bg 355 | hi NonText ctermfg=Blue ctermbg=bg 356 | hi Directory ctermfg=Blue ctermbg=bg 357 | hi MoreMsg ctermfg=Green ctermbg=bg 358 | hi Title ctermfg=Magenta ctermbg=bg 359 | hi WarningMsg ctermfg=Red ctermbg=bg 360 | hi DiffDelete ctermfg=Blue ctermbg=bg 361 | 362 | hi Search ctermfg=NONE ctermbg=DarkRed 363 | hi Visual ctermfg=Black ctermbg=DarkCyan 364 | hi Cursor ctermfg=Black ctermbg=Green 365 | hi StatusLine ctermfg=Black ctermbg=DarkCyan 366 | hi Question ctermfg=Black ctermbg=DarkYellow 367 | hi Todo ctermfg=DarkRed ctermbg=DarkYellow 368 | hi Folded ctermfg=White ctermbg=DarkGreen 369 | hi ModeMsg ctermfg=Grey ctermbg=DarkBlue 370 | hi VisualNOS ctermfg=Grey ctermbg=DarkBlue 371 | hi ErrorMsg ctermfg=DarkYellow ctermbg=DarkRed 372 | hi WildMenu ctermfg=Black ctermbg=DarkYellow 373 | hi FoldColumn ctermfg=White ctermbg=DarkGreen 374 | hi SignColumn ctermfg=White ctermbg=DarkGreen 375 | hi DiffText ctermfg=Black ctermbg=DarkYellow 376 | 377 | if v:version >= 700 378 | if has('spell') 379 | hi SpellBad ctermfg=NONE ctermbg=DarkRed 380 | hi SpellCap ctermfg=NONE ctermbg=DarkBlue 381 | hi SpellRare ctermfg=NONE ctermbg=DarkMagenta 382 | hi SpellLocal ctermfg=NONE ctermbg=DarkGreen 383 | endif 384 | hi Pmenu ctermfg=fg ctermbg=DarkMagenta 385 | hi PmenuSel ctermfg=Black ctermbg=fg 386 | hi PmenuSbar ctermfg=fg ctermbg=DarkBlue 387 | hi PmenuThumb ctermfg=fg ctermbg=DarkGreen 388 | hi TabLine ctermfg=fg ctermbg=DarkGreen cterm=underline 389 | hi TabLineFill ctermfg=fg ctermbg=DarkGreen cterm=underline 390 | hi CursorColumn ctermfg=NONE ctermbg=DarkRed 391 | 392 | hi TabLineSel ctermfg=fg ctermbg=bg 393 | hi CursorLine ctermfg=NONE ctermbg=bg cterm=underline 394 | 395 | hi MatchParen ctermfg=NONE ctermbg=DarkMagenta 396 | endif 397 | if &t_Co==8 398 | " 8 colour terminal support, this assumes 16 colour is available through 399 | " setting the 'bold' attribute, will get bright foreground colour. 400 | " However, the bright background color is not available for 8-color terms. 401 | " 402 | " You can manually set t_Co=16 in your .vimrc to see if your terminal 403 | " supports 16 colours, 404 | hi DiffText cterm=none 405 | hi Visual cterm=none 406 | hi Cursor cterm=none 407 | hi Comment cterm=none 408 | hi Todo cterm=none 409 | hi StatusLine cterm=none 410 | hi Question cterm=none 411 | hi DiffChange cterm=none 412 | hi ModeMsg cterm=none 413 | hi VisualNOS cterm=none 414 | hi ErrorMsg cterm=none 415 | hi WildMenu cterm=none 416 | hi DiffAdd cterm=none 417 | hi Folded cterm=none 418 | hi DiffDelete cterm=none 419 | hi Normal cterm=none 420 | hi PmenuThumb cterm=none 421 | hi Search cterm=bold 422 | hi Special cterm=bold 423 | hi Constant cterm=bold 424 | hi Number cterm=bold 425 | hi LineNr cterm=bold 426 | hi PreProc cterm=bold 427 | hi Statement cterm=bold 428 | hi Type cterm=bold 429 | hi Error cterm=bold 430 | hi Identifier cterm=bold 431 | hi SpecialKey cterm=bold 432 | hi NonText cterm=bold 433 | hi MoreMsg cterm=bold 434 | hi Title cterm=bold 435 | hi WarningMsg cterm=bold 436 | hi FoldColumn cterm=bold 437 | hi SignColumn cterm=bold 438 | hi Directory cterm=bold 439 | hi DiffDelete cterm=bold 440 | else 441 | " Background > 7 is only available with 16 or more colors 442 | 443 | hi WarningMsg cterm=none 444 | hi Search cterm=none 445 | hi Visual cterm=none 446 | hi Cursor cterm=none 447 | hi Special cterm=none 448 | hi Comment cterm=none 449 | hi Constant cterm=none 450 | hi Number cterm=none 451 | hi LineNr cterm=none 452 | hi PreProc cterm=none 453 | hi Todo cterm=none 454 | hi Error cterm=none 455 | hi Identifier cterm=none 456 | hi Folded cterm=none 457 | hi SpecialKey cterm=none 458 | hi Directory cterm=none 459 | hi ErrorMsg cterm=none 460 | hi Normal cterm=none 461 | hi PmenuThumb cterm=none 462 | hi WildMenu cterm=none 463 | hi FoldColumn cterm=none 464 | hi SignColumn cterm=none 465 | hi DiffAdd cterm=none 466 | hi DiffChange cterm=none 467 | hi Question cterm=none 468 | hi StatusLine cterm=none 469 | hi DiffText cterm=none 470 | hi IncSearch cterm=reverse 471 | hi StatusLineNC cterm=reverse 472 | hi VertSplit cterm=reverse 473 | 474 | " Well, well, bold font with color 0-7 is not possible. 475 | " So, the Question, StatusLine, DiffText cannot act as expected. 476 | 477 | hi Statement cterm=none 478 | hi Type cterm=none 479 | hi MoreMsg cterm=none 480 | hi ModeMsg cterm=none 481 | hi NonText cterm=none 482 | hi Title cterm=none 483 | hi VisualNOS cterm=none 484 | hi DiffDelete cterm=none 485 | hi TabLineSel cterm=none 486 | 487 | endif 488 | elseif &t_Co==256 489 | " 256color dark terminal support here 490 | hi Normal ctermfg=252 ctermbg=234 cterm=NONE 491 | " Comment/Uncomment the following line to disable/enable transparency 492 | "hi Normal ctermfg=252 ctermbg=NONE cterm=NONE 493 | hi Comment ctermfg=186 ctermbg=NONE cterm=NONE 494 | hi Constant ctermfg=110 ctermbg=NONE cterm=NONE 495 | hi Number ctermfg=179 ctermbg=NONE cterm=NONE 496 | hi Identifier ctermfg=219 ctermbg=NONE cterm=NONE 497 | hi Statement ctermfg=153 ctermbg=NONE cterm=NONE 498 | hi PreProc ctermfg=84 ctermbg=NONE cterm=NONE 499 | hi Type ctermfg=153 ctermbg=NONE cterm=NONE 500 | hi Special ctermfg=179 ctermbg=NONE cterm=NONE 501 | hi Error ctermfg=209 ctermbg=NONE cterm=NONE 502 | hi Todo ctermfg=88 ctermbg=186 cterm=NONE 503 | hi Search ctermfg=NONE ctermbg=88 cterm=NONE 504 | hi Visual ctermfg=16 ctermbg=153 cterm=NONE 505 | hi Cursor ctermfg=16 ctermbg=46 cterm=NONE 506 | " NOTE THIS IS IN THE COOL SECTION 507 | " hi CursorIM ctermfg=16 ctermbg=201 cterm=NONE 508 | hi StatusLine ctermfg=16 ctermbg=153 cterm=NONE 509 | hi LineNr ctermfg=249 ctermbg=NONE cterm=NONE 510 | hi Question ctermfg=16 ctermbg=186 cterm=NONE 511 | hi ModeMsg ctermfg=fg ctermbg=18 cterm=NONE 512 | hi VisualNOS ctermfg=fg ctermbg=18 cterm=NONE 513 | hi SpecialKey ctermfg=153 ctermbg=NONE cterm=NONE 514 | hi NonText ctermfg=69 ctermbg=233 cterm=NONE 515 | " Comment/Uncomment the following line to disable/enable transparency 516 | "hi NonText ctermfg=69 ctermbg=NONE cterm=NONE 517 | hi Directory ctermfg=110 ctermbg=NONE cterm=NONE 518 | hi ErrorMsg ctermfg=186 ctermbg=88 cterm=NONE 519 | hi MoreMsg ctermfg=150 ctermbg=NONE cterm=NONE 520 | hi Title ctermfg=219 ctermbg=NONE cterm=NONE 521 | hi WarningMsg ctermfg=209 ctermbg=NONE cterm=NONE 522 | hi WildMenu ctermfg=16 ctermbg=186 cterm=NONE 523 | hi Folded ctermfg=NONE ctermbg=22 cterm=NONE 524 | hi FoldColumn ctermfg=254 ctermbg=28 cterm=NONE 525 | hi DiffAdd ctermfg=NONE ctermbg=18 cterm=NONE 526 | hi DiffChange ctermfg=NONE ctermbg=90 cterm=NONE 527 | hi DiffDelete ctermfg=69 ctermbg=234 cterm=NONE 528 | hi DiffText ctermfg=16 ctermbg=150 cterm=NONE 529 | hi SignColumn ctermfg=254 ctermbg=28 cterm=NONE 530 | hi IncSearch ctermfg=16 ctermbg=252 cterm=NONE 531 | hi StatusLineNC ctermfg=16 ctermbg=250 cterm=NONE 532 | hi VertSplit ctermfg=16 ctermbg=250 cterm=NONE 533 | hi Underlined ctermfg=111 ctermbg=NONE cterm=underline 534 | hi Ignore ctermfg=16 ctermbg=NONE 535 | " NOTE THIS IS IN THE COOL SECTION 536 | if v:version >= 700 537 | if has('spell') 538 | " the ctermsp= is not supported in Vim 7 we simply ignored 539 | if 0 540 | hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=209 541 | hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=69 542 | hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=219 543 | hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=153 544 | else 545 | hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=NONE 546 | hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=NONE 547 | hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=NONE 548 | hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=NONE 549 | endif 550 | endif 551 | hi Pmenu ctermfg=fg ctermbg=90 552 | hi PmenuSel ctermfg=16 ctermbg=252 cterm=NONE 553 | hi PmenuSbar ctermfg=fg ctermbg=18 cterm=NONE 554 | hi PmenuThumb ctermfg=fg ctermbg=28 cterm=NONE 555 | hi TabLine ctermfg=fg ctermbg=28 cterm=NONE 556 | hi TabLineFill ctermfg=fg ctermbg=28 cterm=NONE 557 | hi TabLineSel ctermfg=fg ctermbg=NONE cterm=NONE 558 | hi CursorColumn ctermfg=NONE ctermbg=88 cterm=NONE 559 | hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline 560 | hi MatchParen ctermfg=NONE ctermbg=90 561 | hi TabLine cterm=underline 562 | hi TabLineFill cterm=underline 563 | hi Underlined cterm=underline 564 | hi CursorLine cterm=underline 565 | endif 566 | 567 | endif " t_Co 568 | 569 | " }}}2 570 | endif 571 | 572 | " Links: 573 | " 574 | " COLOR LINKS DEFINE START 575 | 576 | hi link String Constant 577 | " Character must be different from strings because in many languages 578 | " (especially C, C++) a 'char' variable is scalar while 'string' is pointer, 579 | " mistaken a 'char' for a 'string' will cause disaster! 580 | hi link Character Number 581 | hi link SpecialChar LineNr 582 | hi link Tag Identifier 583 | hi link cCppOut LineNr 584 | " The following are not standard hi links, 585 | " these are used by DrChip 586 | hi link Warning MoreMsg 587 | hi link Notice Constant 588 | " these are used by Calendar 589 | hi link CalToday PreProc 590 | " these are used by TagList 591 | hi link MyTagListTagName IncSearch 592 | hi link MyTagListTagScope Constant 593 | 594 | " COLOR LINKS DEFINE END 595 | 596 | " vim:et:nosta:sw=2:ts=8: 597 | " vim600:fdm=marker:fdl=1: 598 | -------------------------------------------------------------------------------- /.vim/colors/skittles_dark.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " 3 | " Version: 1.1 4 | " 5 | " Author: Shawn Biddle 6 | " 7 | " Note: Used the molokai color scheme as a template 8 | " to build off then completely recolored almost 9 | " everything to be a bit more colorful while still 10 | " being quite readable 11 | " 12 | 13 | hi clear 14 | 15 | set background=dark 16 | if version > 580 17 | hi clear 18 | if exists("syntax_on") 19 | syntax reset 20 | endif 21 | endif 22 | let g:colors_name="skittles_dark" 23 | 24 | 25 | hi Boolean guifg=#AE81FF ctermfg=141 26 | hi Character guifg=#E6DB74 ctermfg=186 27 | hi Number guifg=#AE81FF ctermfg=141 28 | hi String guifg=#75d142 ctermfg=113 29 | hi Conditional guifg=#C01414 ctermfg=1 30 | hi Constant guifg=#AE81FF ctermfg=141 31 | hi Cursor guifg=#000000 ctermfg=0 guibg=#F8F8F0 ctermbg=15 32 | hi Debug guifg=#BCA3A3 ctermfg=248 33 | 34 | hi Define guifg=#C01414 ctermfg=1 35 | hi Delimiter guifg=#8F8F8F ctermfg=245 36 | hi DiffAdd guibg=#13354A ctermbg=236 37 | hi DiffChange guifg=#89807D ctermfg=244 guibg=#4C4745 ctermbg=238 38 | hi DiffDelete guifg=#960050 ctermfg=89 guibg=#1E0010 ctermbg=233 39 | hi DiffText guibg=#4C4745 ctermbg=238 40 | 41 | hi Directory guifg=#A6E22E ctermfg=148 42 | hi Error guifg=#960050 ctermfg=89 guibg=#1E0010 ctermbg=233 43 | hi ErrorMsg guifg=#8ac6f2 ctermfg=117 guibg=#232526 ctermbg=235 44 | hi Exception guifg=#A6E22E ctermfg=148 45 | hi Float guifg=#AE81FF ctermfg=141 46 | hi FoldColumn guifg=#465457 ctermfg=239 guibg=#000000 ctermbg=0 47 | hi Folded guifg=#465457 ctermfg=239 guibg=#000000 ctermbg=0 48 | hi Function guifg=#0C60A0 ctermfg=25 49 | 50 | hi Identifier guifg=#ffffff ctermfg=15 cterm=none 51 | 52 | hi Ignore guifg=#808080 ctermfg=244 guibg=bg 53 | hi IncSearch guifg=#C4BE89 ctermfg=180 guibg=#000000 ctermbg=0 54 | 55 | hi Keyword guifg=#8ac6f2 ctermfg=117 gui=none 56 | "gui=bold 57 | hi Label guifg=#E6DB74 ctermfg=186 58 | "gui=none 59 | hi Macro guifg=#C4BE89 ctermfg=180 60 | "gui=italic 61 | hi SpecialKey guifg=#222222 ctermfg=235 62 | "gui=italic 63 | hi clear VertSplit 64 | hi link VertSplit SpecialKey 65 | 66 | 67 | hi MatchParen guifg=#000000 ctermfg=0 guibg=#FD971F ctermbg=208 68 | "gui=bold 69 | hi ModeMsg guifg=#E6DB74 ctermfg=186 70 | hi MoreMsg guifg=#E6DB74 ctermfg=186 71 | hi Operator guifg=#FF9900 ctermfg=208 72 | 73 | " complete menu 74 | hi Pmenu guifg=#66D9EF ctermfg=81 guibg=#000000 ctermbg=0 75 | hi PmenuSel guibg=#808080 ctermbg=244 76 | hi PmenuSbar guibg=#080808 ctermbg=0 77 | hi PmenuThumb guifg=#66D9EF ctermfg=81 78 | 79 | hi PreCondit guifg=#A6E22E ctermfg=148 80 | "gui=bold 81 | hi PreProc guifg=#A6E22E ctermfg=148 82 | hi Question guifg=#66D9EF ctermfg=81 83 | "hi Repeat guifg=#C01414 ctermfg=1 84 | hi Repeat guifg=#CF1020 ctermfg=1 85 | "gui=bold 86 | hi Search guifg=#FFFFFF ctermfg=15 guibg=#455354 ctermbg=239 87 | " marks column 88 | hi SignColumn guifg=#A6E22E ctermfg=148 guibg=#232526 ctermbg=235 89 | hi SpecialChar guifg=#FF9900 ctermfg=208 90 | "gui=bold 91 | hi SpecialComment guifg=#465457 ctermfg=239 92 | "gui=bold 93 | hi Special guifg=#66D9EF ctermfg=81 guibg=bg 94 | "gui=italic 95 | if has("spell") 96 | hi SpellBad guisp=#FF0000 gui=undercurl 97 | hi SpellCap guisp=#7070F0 gui=undercurl 98 | hi SpellLocal guisp=#70F0F0 gui=undercurl 99 | hi SpellRare guisp=#FFFFFF gui=undercurl 100 | endif 101 | "hi Statement guifg=#8ac6f2 ctermfg=117 gui=bold 102 | hi Statement guifg=#C01414 ctermfg=1 gui=none 103 | "hi Statement guifg=#CF1020 ctermfg=1 gui=none 104 | "gui=italic 105 | hi clear StatusLine 106 | hi link StatusLine NonText 107 | "StatusLine guifg=#455354 ctermfg=0 guibg=fg 108 | hi StatusLineNC guifg=#808080 ctermfg=244 guibg=#080808 ctermbg=0 109 | hi StorageClass guifg=#FD971F ctermfg=208 110 | "gui=italic 111 | hi Structure guifg=#66D9EF ctermfg=81 112 | hi Tag guifg=#8ac6f2 ctermfg=117 113 | "gui=italic 114 | hi Title guifg=#ef5939 ctermfg=203 115 | hi Todo guifg=#FFFFFF ctermfg=0 ctermbg=3 guibg=bg 116 | "gui=bold 117 | 118 | hi phpDocBlock guifg=#94E1E4 ctermfg=116 guibg=bg 119 | "gui=bold,italic,underline 120 | 121 | hi Typedef guifg=#66D9EF ctermfg=81 122 | hi Type guifg=#66D9EF ctermfg=81 gui=none 123 | hi Underlined guifg=#808080 ctermfg=244 gui=underline 124 | 125 | "gui=bold 126 | hi VisualNOS guibg=#403D3D ctermbg=237 127 | hi Visual guibg=#403D3D ctermbg=237 128 | hi WarningMsg guifg=#FFFFFF ctermfg=15 guibg=#333333 ctermbg=236 129 | "gui=bold 130 | hi WildMenu guifg=#66D9EF ctermfg=81 guibg=#121212 ctermbg=233 131 | 132 | hi Normal guifg=#F8F8F2 ctermfg=248 guibg=#000000 ctermbg=0 133 | hi Comment guifg=#5D8D8F ctermfg=66 gui=none 134 | "gui=italic 135 | hi CursorLine guibg=#121212 ctermbg=233 cterm=none 136 | hi CursorColumn guibg=#121212 ctermbg=233 137 | hi LineNr guifg=#FFFFFF ctermfg=15 guibg=#000000 ctermbg=0 gui=underline 138 | "hi NonText guifg=#BCBCBC ctermfg=250 guibg=#232526 ctermbg=235 139 | hi clear NonText 140 | hi link NonText SpecialKey 141 | 142 | hi link xmlTagName Define 143 | 144 | "hi yamlBaseKey 145 | "gui=bold,underline 146 | hi yamlTab guibg=#FF0000 ctermbg=9 147 | hi User1 guifg=#000000 ctermfg=0 guibg=#84E12E ctermbg=112 148 | "gui=bold 149 | 150 | hi clear htmlTagN 151 | hi link htmlTagN Typedef 152 | -------------------------------------------------------------------------------- /.vim/colors/tango.vim: -------------------------------------------------------------------------------- 1 | " 2 | " Tango Vim Color Scheme 3 | " ======================= 4 | " 5 | " For best results, set up your terminal with a Tango palette. 6 | " Instructions for GNOME Terminal: 7 | " http://uwstopia.nl/blog/2006/07/tango-terminal 8 | " 9 | " author: Michele Campeotto 10 | " 11 | set background=dark 12 | 13 | hi clear 14 | if exists("syntax_on") 15 | syntax reset 16 | endif 17 | 18 | let colors_name = "tango" 19 | 20 | " Default Colors 21 | hi Normal guifg=#eeeeec guibg=#000000 22 | hi NonText guifg=#555753 guibg=#000000 gui=none 23 | hi NonText ctermfg=darkgray 24 | hi Cursor guibg=#d3d7cf 25 | hi lCursor guibg=#d3d7cf 26 | 27 | " Search 28 | hi Search guifg=#eeeeec guibg=#c4a000 29 | hi Search cterm=none ctermfg=grey ctermbg=blue 30 | hi IncSearch guibg=#eeeeec guifg=#729fcf 31 | hi IncSearch cterm=none ctermfg=yellow ctermbg=green 32 | 33 | " Window Elements 34 | hi StatusLine guifg=#eeeeec guibg=#4e9a06 gui=bold 35 | hi StatusLine ctermfg=white ctermbg=green cterm=bold 36 | hi StatusLineNC guifg=#d3d7df guibg=#4e9a06 37 | hi StatusLineNC ctermfg=lightgray ctermbg=darkgreen 38 | hi VertSplit guifg=#eeeeec guibg=#eeeeec 39 | hi Folded guifg=#eeeeec guibg=#75507b 40 | hi Folded ctermfg=white ctermbg=magenta 41 | hi Visual guifg=#d3d7cf guibg=#4e9a06 42 | hi Visual ctermbg=white ctermfg=lightgreen cterm=reverse 43 | 44 | " Specials 45 | hi Todo guifg=#8ae234 guibg=#4e9a06 gui=bold 46 | hi Todo ctermfg=white ctermbg=green 47 | hi Title guifg=#eeeeec gui=bold 48 | hi Title ctermfg=white cterm=bold 49 | 50 | " Syntax 51 | hi Constant guifg=#c4a000 52 | hi Constant ctermfg=darkyellow 53 | hi Number guifg=#729fcf 54 | hi Number ctermfg=darkblue 55 | hi Statement guifg=#4e9a06 gui=bold 56 | hi Statement ctermfg=green 57 | hi Identifier guifg=#8ae234 58 | hi Identifier ctermfg=darkgreen 59 | hi PreProc guifg=#cc0000 60 | hi PreProc ctermfg=darkred 61 | hi Comment guifg=#06989a gui=italic 62 | hi Comment ctermfg=cyan cterm=none 63 | hi Type guifg=#d3d7cf gui=bold 64 | hi Type ctermfg=gray cterm=bold 65 | hi Special guifg=#75507b 66 | hi Special ctermfg=magenta cterm=none 67 | hi Error guifg=#eeeeec guibg=#ef2929 68 | hi Error ctermfg=white ctermbg=red 69 | 70 | " Diff 71 | hi DiffAdd guifg=fg guibg=#3465a4 gui=none 72 | hi DiffAdd ctermfg=gray ctermbg=blue cterm=none 73 | hi DiffChange guifg=fg guibg=#555753 gui=none 74 | hi DiffChange ctermfg=gray ctermbg=darkgray cterm=none 75 | hi DiffDelete guibg=bg 76 | hi DiffDelete ctermfg=gray ctermbg=none cterm=none 77 | hi DiffText guifg=fg guibg=#c4a000 gui=none 78 | hi DiffText ctermfg=gray ctermbg=yellow cterm=none 79 | -------------------------------------------------------------------------------- /.vim/colors/wombat.vim: -------------------------------------------------------------------------------- 1 | " Maintainer: Lars H. Nielsen (dengmao@gmail.com) 2 | " Last Change: January 22 2007 3 | 4 | set background=dark 5 | 6 | hi clear 7 | 8 | if exists("syntax_on") 9 | syntax reset 10 | endif 11 | 12 | let colors_name = "wombat" 13 | 14 | 15 | " Vim >= 7.0 specific colors 16 | if version >= 700 17 | hi CursorLine guibg=#2d2d2d ctermbg=236 18 | hi CursorColumn guibg=#2d2d2d ctermbg=236 19 | hi MatchParen guifg=#f6f3e8 ctermfg=7 guibg=#857b6f ctermbg=243 gui=bold 20 | hi Pmenu guifg=#f6f3e8 ctermfg=7 guibg=#444444 ctermbg=238 21 | hi PmenuSel guifg=#000000 ctermfg=0 guibg=#cae682 ctermbg=186 22 | endif 23 | 24 | " General colors 25 | hi Cursor guifg=NONE guibg=#656565 ctermbg=241 gui=none 26 | hi Normal guifg=#f6f3e8 ctermfg=7 guibg=#131313 ctermbg=233 gui=none 27 | hi NonText guifg=#808080 ctermfg=244 guibg=#303030 ctermbg=236 gui=none 28 | hi LineNr guifg=#857b6f ctermfg=243 guibg=#000000 ctermbg=0 gui=none 29 | hi StatusLine guifg=#f6f3e8 ctermfg=7 guibg=#444444 ctermbg=238 gui=italic 30 | hi StatusLineNC guifg=#857b6f ctermfg=243 guibg=#444444 ctermbg=238 gui=none 31 | hi VertSplit guifg=#444444 ctermfg=238 guibg=#444444 ctermbg=238 gui=none 32 | hi FoldColumn guifg=#465457 ctermfg=239 guibg=#000000 ctermbg=0 33 | hi Folded guibg=#384048 ctermbg=238 guifg=#a0a8b0 ctermfg=248 gui=none 34 | hi Title guifg=#f6f3e8 ctermfg=7 guibg=NONE gui=bold 35 | hi Visual guifg=#f6f3e8 ctermfg=7 guibg=#444444 ctermbg=238 gui=none 36 | hi SpecialKey guifg=#808080 ctermfg=244 guibg=#343434 ctermbg=236 gui=none 37 | 38 | " Syntax highlighting 39 | hi Comment guifg=#99968b ctermfg=246 gui=italic 40 | hi Todo guifg=#8f8f8f ctermfg=245 gui=italic 41 | hi Constant guifg=#e5786d ctermfg=173 gui=none 42 | hi String guifg=#95e454 ctermfg=113 guibg=#000000 ctermbg=0 gui=bold 43 | hi Identifier guifg=#cae682 ctermfg=186 gui=none 44 | hi Function guifg=#cae682 ctermfg=186 gui=none 45 | hi Type guifg=#cae682 ctermfg=186 gui=none 46 | hi Statement guifg=#8ac6f2 ctermfg=117 gui=none 47 | hi Keyword guifg=#8ac6f2 ctermfg=117 gui=none 48 | hi PreProc guifg=#e5786d ctermfg=173 gui=none 49 | hi Number guifg=#e5786d ctermfg=173 gui=none 50 | hi Special guifg=#e7f6da ctermfg=194 gui=none 51 | 52 | hi yamlBaseKey guifg=#FFFFFF ctermfg=15 gui=underline,bold 53 | -------------------------------------------------------------------------------- /.vim/colors/wombat256.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " Maintainer: David Liang (bmdavll at gmail dot com) 3 | " Last Change: November 28 2008 4 | " 5 | " wombat256.vim - a modified version of Wombat by Lars Nielsen that also 6 | " works on xterms with 88 or 256 colors. The algorithm for approximating the 7 | " GUI colors with the xterm palette is from desert256.vim by Henry So Jr. 8 | 9 | set background=dark 10 | 11 | if version > 580 12 | hi clear 13 | if exists("syntax_on") 14 | syntax reset 15 | endif 16 | endif 17 | 18 | let g:colors_name = "wombat256" 19 | 20 | if !has("gui_running") && &t_Co != 88 && &t_Co != 256 21 | finish 22 | endif 23 | 24 | " functions {{{ 25 | " returns an approximate grey index for the given grey level 26 | fun grey_number(x) 27 | if &t_Co == 88 28 | if a:x < 23 29 | return 0 30 | elseif a:x < 69 31 | return 1 32 | elseif a:x < 103 33 | return 2 34 | elseif a:x < 127 35 | return 3 36 | elseif a:x < 150 37 | return 4 38 | elseif a:x < 173 39 | return 5 40 | elseif a:x < 196 41 | return 6 42 | elseif a:x < 219 43 | return 7 44 | elseif a:x < 243 45 | return 8 46 | else 47 | return 9 48 | endif 49 | else 50 | if a:x < 14 51 | return 0 52 | else 53 | let l:n = (a:x - 8) / 10 54 | let l:m = (a:x - 8) % 10 55 | if l:m < 5 56 | return l:n 57 | else 58 | return l:n + 1 59 | endif 60 | endif 61 | endif 62 | endfun 63 | 64 | " returns the actual grey level represented by the grey index 65 | fun grey_level(n) 66 | if &t_Co == 88 67 | if a:n == 0 68 | return 0 69 | elseif a:n == 1 70 | return 46 71 | elseif a:n == 2 72 | return 92 73 | elseif a:n == 3 74 | return 115 75 | elseif a:n == 4 76 | return 139 77 | elseif a:n == 5 78 | return 162 79 | elseif a:n == 6 80 | return 185 81 | elseif a:n == 7 82 | return 208 83 | elseif a:n == 8 84 | return 231 85 | else 86 | return 255 87 | endif 88 | else 89 | if a:n == 0 90 | return 0 91 | else 92 | return 8 + (a:n * 10) 93 | endif 94 | endif 95 | endfun 96 | 97 | " returns the palette index for the given grey index 98 | fun grey_color(n) 99 | if &t_Co == 88 100 | if a:n == 0 101 | return 16 102 | elseif a:n == 9 103 | return 79 104 | else 105 | return 79 + a:n 106 | endif 107 | else 108 | if a:n == 0 109 | return 16 110 | elseif a:n == 25 111 | return 231 112 | else 113 | return 231 + a:n 114 | endif 115 | endif 116 | endfun 117 | 118 | " returns an approximate color index for the given color level 119 | fun rgb_number(x) 120 | if &t_Co == 88 121 | if a:x < 69 122 | return 0 123 | elseif a:x < 172 124 | return 1 125 | elseif a:x < 230 126 | return 2 127 | else 128 | return 3 129 | endif 130 | else 131 | if a:x < 75 132 | return 0 133 | else 134 | let l:n = (a:x - 55) / 40 135 | let l:m = (a:x - 55) % 40 136 | if l:m < 20 137 | return l:n 138 | else 139 | return l:n + 1 140 | endif 141 | endif 142 | endif 143 | endfun 144 | 145 | " returns the actual color level for the given color index 146 | fun rgb_level(n) 147 | if &t_Co == 88 148 | if a:n == 0 149 | return 0 150 | elseif a:n == 1 151 | return 139 152 | elseif a:n == 2 153 | return 205 154 | else 155 | return 255 156 | endif 157 | else 158 | if a:n == 0 159 | return 0 160 | else 161 | return 55 + (a:n * 40) 162 | endif 163 | endif 164 | endfun 165 | 166 | " returns the palette index for the given R/G/B color indices 167 | fun rgb_color(x, y, z) 168 | if &t_Co == 88 169 | return 16 + (a:x * 16) + (a:y * 4) + a:z 170 | else 171 | return 16 + (a:x * 36) + (a:y * 6) + a:z 172 | endif 173 | endfun 174 | 175 | " returns the palette index to approximate the given R/G/B color levels 176 | fun color(r, g, b) 177 | " get the closest grey 178 | let l:gx = grey_number(a:r) 179 | let l:gy = grey_number(a:g) 180 | let l:gz = grey_number(a:b) 181 | 182 | " get the closest color 183 | let l:x = rgb_number(a:r) 184 | let l:y = rgb_number(a:g) 185 | let l:z = rgb_number(a:b) 186 | 187 | if l:gx == l:gy && l:gy == l:gz 188 | " there are two possibilities 189 | let l:dgr = grey_level(l:gx) - a:r 190 | let l:dgg = grey_level(l:gy) - a:g 191 | let l:dgb = grey_level(l:gz) - a:b 192 | let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb) 193 | let l:dr = rgb_level(l:gx) - a:r 194 | let l:dg = rgb_level(l:gy) - a:g 195 | let l:db = rgb_level(l:gz) - a:b 196 | let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db) 197 | if l:dgrey < l:drgb 198 | " use the grey 199 | return grey_color(l:gx) 200 | else 201 | " use the color 202 | return rgb_color(l:x, l:y, l:z) 203 | endif 204 | else 205 | " only one possibility 206 | return rgb_color(l:x, l:y, l:z) 207 | endif 208 | endfun 209 | 210 | " returns the palette index to approximate the 'rrggbb' hex string 211 | fun rgb(rgb) 212 | let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0 213 | let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0 214 | let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0 215 | return color(l:r, l:g, l:b) 216 | endfun 217 | 218 | " sets the highlighting for the given group 219 | fun X(group, fg, bg, attr) 220 | if a:fg != "" 221 | exec "hi ".a:group." guifg=#".a:fg." ctermfg=".rgb(a:fg) 222 | endif 223 | if a:bg != "" 224 | exec "hi ".a:group." guibg=#".a:bg." ctermbg=".rgb(a:bg) 225 | endif 226 | if a:attr != "" 227 | if a:attr == 'italic' 228 | exec "hi ".a:group." gui=".a:attr." cterm=none" 229 | else 230 | exec "hi ".a:group." gui=".a:attr." cterm=".a:attr 231 | endif 232 | endif 233 | endfun 234 | " }}} 235 | 236 | call X("Normal", "cccccc", "151515", "none") 237 | call X("Cursor", "222222", "ecee90", "none") 238 | call X("CursorLine", "", "32322e", "none") 239 | call X("CursorColumn", "", "2d2d2d", "") 240 | "CursorIM 241 | "Question 242 | "IncSearch 243 | call X("Search", "d787ff", "5f5f5f", "") 244 | call X("MatchParen", "ecee90", "857b6f", "bold") 245 | call X("SpecialKey", "6c6c6c", "000000", "none") 246 | call X("Visual", "ecee90", "597418", "none") 247 | call X("LineNr", "857b6f", "121212", "none") 248 | call X("Folded", "a0a8b0", "404048", "none") 249 | call X("Title", "f6f3e8", "", "bold") 250 | call X("VertSplit", "444444", "444444", "none") 251 | call X("StatusLine", "f6f3e8", "444444", "italic") 252 | call X("StatusLineNC", "857b6f", "444444", "none") 253 | "Scrollbar 254 | "Tooltip 255 | "Menu 256 | "WildMenu 257 | call X("Pmenu", "f6f3e8", "444444", "") 258 | call X("PmenuSel", "121212", "caeb82", "") 259 | call X("WarningMsg", "ff0000", "", "") 260 | "call X("ErrorMsg 261 | "call X("ModeMsg 262 | "call X("MoreMsg 263 | "call X("Directory 264 | call X("DiffAdd", "", "507d2a", "bold") 265 | call X("DiffChange", "", "151515", "bold") 266 | call X("DiffDelete", "e34234", "151515", "bold") 267 | call X("DiffText", "", "cc5500", "bold") 268 | 269 | " syntax highlighting 270 | call X("Number", "e5786d", "", "none") 271 | call X("Constant", "e5786d", "", "none") 272 | call X("String", "95e454", "", "italic") 273 | call X("Comment", "c0bc6c", "", "italic") 274 | call X("Identifier", "caeb82", "", "none") 275 | call X("Keyword", "87afff", "", "none") 276 | call X("Statement", "87afff", "", "none") 277 | call X("Function", "caeb82", "", "none") 278 | call X("PreProc", "e5786d", "", "none") 279 | call X("Type", "caeb82", "", "none") 280 | call X("Special", "ffdead", "", "none") 281 | call X("Todo", "857b6f", "", "italic") 282 | "Underlined 283 | "Error 284 | "Ignore 285 | 286 | hi! link VisualNOS Visual 287 | hi! link NonText LineNr 288 | hi! link FoldColumn Folded 289 | 290 | " delete functions {{{ 291 | delf X 292 | delf rgb 293 | delf color 294 | delf rgb_color 295 | delf rgb_level 296 | delf rgb_number 297 | delf grey_color 298 | delf grey_level 299 | delf grey_number 300 | " }}} 301 | 302 | " vim:set ts=4 sw=4 noet fdm=marker: 303 | -------------------------------------------------------------------------------- /.vim/compiler/php.vim: -------------------------------------------------------------------------------- 1 | " Vim compiler file 2 | " Compiler: PHP 3 | " Maintainer: Doug Kearns 4 | " URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/php.vim 5 | " Last Change: 2004 Nov 27 6 | 7 | if exists("current_compiler") 8 | finish 9 | endif 10 | let current_compiler = "php" 11 | 12 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal 13 | command -nargs=* CompilerSet setlocal 14 | endif 15 | 16 | let s:cpo_save = &cpo 17 | set cpo-=C 18 | 19 | CompilerSet makeprg=php\ -lq\ % 20 | 21 | CompilerSet errorformat=%EParse\ error:\ %m\ in\ %f\ on\ line\ %l, 22 | \%WNotice:\ %m\ in\ %f\ on\ line\ %l, 23 | \%EParse\ error:\ %m\ in\ %f\ on\ line\ %l, 24 | \%WNotice:\ %m\ in\ %f\ on\ line\ %l, 25 | \%-G%.%# 26 | 27 | let &cpo = s:cpo_save 28 | unlet s:cpo_save 29 | -------------------------------------------------------------------------------- /.vim/doc/tags: -------------------------------------------------------------------------------- 1 | 'Tlist_Auto_Highlight_Tag' taglist.txt /*'Tlist_Auto_Highlight_Tag'* 2 | 'Tlist_Auto_Open' taglist.txt /*'Tlist_Auto_Open'* 3 | 'Tlist_Auto_Update' taglist.txt /*'Tlist_Auto_Update'* 4 | 'Tlist_Close_On_Select' taglist.txt /*'Tlist_Close_On_Select'* 5 | 'Tlist_Compact_Format' taglist.txt /*'Tlist_Compact_Format'* 6 | 'Tlist_Ctags_Cmd' taglist.txt /*'Tlist_Ctags_Cmd'* 7 | 'Tlist_Display_Prototype' taglist.txt /*'Tlist_Display_Prototype'* 8 | 'Tlist_Display_Tag_Scope' taglist.txt /*'Tlist_Display_Tag_Scope'* 9 | 'Tlist_Enable_Fold_Column' taglist.txt /*'Tlist_Enable_Fold_Column'* 10 | 'Tlist_Exit_OnlyWindow' taglist.txt /*'Tlist_Exit_OnlyWindow'* 11 | 'Tlist_File_Fold_Auto_Close' taglist.txt /*'Tlist_File_Fold_Auto_Close'* 12 | 'Tlist_GainFocus_On_ToggleOpen' taglist.txt /*'Tlist_GainFocus_On_ToggleOpen'* 13 | 'Tlist_Highlight_Tag_On_BufEnter' taglist.txt /*'Tlist_Highlight_Tag_On_BufEnter'* 14 | 'Tlist_Inc_Winwidth' taglist.txt /*'Tlist_Inc_Winwidth'* 15 | 'Tlist_Max_Submenu_Items' taglist.txt /*'Tlist_Max_Submenu_Items'* 16 | 'Tlist_Max_Tag_Length' taglist.txt /*'Tlist_Max_Tag_Length'* 17 | 'Tlist_Process_File_Always' taglist.txt /*'Tlist_Process_File_Always'* 18 | 'Tlist_Show_Menu' taglist.txt /*'Tlist_Show_Menu'* 19 | 'Tlist_Show_One_File' taglist.txt /*'Tlist_Show_One_File'* 20 | 'Tlist_Sort_Type' taglist.txt /*'Tlist_Sort_Type'* 21 | 'Tlist_Use_Horiz_Window' taglist.txt /*'Tlist_Use_Horiz_Window'* 22 | 'Tlist_Use_Right_Window' taglist.txt /*'Tlist_Use_Right_Window'* 23 | 'Tlist_Use_SingleClick' taglist.txt /*'Tlist_Use_SingleClick'* 24 | 'Tlist_WinHeight' taglist.txt /*'Tlist_WinHeight'* 25 | 'Tlist_WinWidth' taglist.txt /*'Tlist_WinWidth'* 26 | :CVSEdit vcscommand.txt /*:CVSEdit* 27 | :CVSEditors vcscommand.txt /*:CVSEditors* 28 | :CVSUnedit vcscommand.txt /*:CVSUnedit* 29 | :CVSWatch vcscommand.txt /*:CVSWatch* 30 | :CVSWatchAdd vcscommand.txt /*:CVSWatchAdd* 31 | :CVSWatchOff vcscommand.txt /*:CVSWatchOff* 32 | :CVSWatchOn vcscommand.txt /*:CVSWatchOn* 33 | :CVSWatchRemove vcscommand.txt /*:CVSWatchRemove* 34 | :CVSWatchers vcscommand.txt /*:CVSWatchers* 35 | :Snippet snippets_emu.txt /*:Snippet* 36 | :TlistAddFiles taglist.txt /*:TlistAddFiles* 37 | :TlistAddFilesRecursive taglist.txt /*:TlistAddFilesRecursive* 38 | :TlistClose taglist.txt /*:TlistClose* 39 | :TlistDebug taglist.txt /*:TlistDebug* 40 | :TlistHighlightTag taglist.txt /*:TlistHighlightTag* 41 | :TlistLock taglist.txt /*:TlistLock* 42 | :TlistMessages taglist.txt /*:TlistMessages* 43 | :TlistOpen taglist.txt /*:TlistOpen* 44 | :TlistSessionLoad taglist.txt /*:TlistSessionLoad* 45 | :TlistSessionSave taglist.txt /*:TlistSessionSave* 46 | :TlistShowPrototype taglist.txt /*:TlistShowPrototype* 47 | :TlistShowTag taglist.txt /*:TlistShowTag* 48 | :TlistToggle taglist.txt /*:TlistToggle* 49 | :TlistUndebug taglist.txt /*:TlistUndebug* 50 | :TlistUnlock taglist.txt /*:TlistUnlock* 51 | :TlistUpdate taglist.txt /*:TlistUpdate* 52 | :VCSAdd vcscommand.txt /*:VCSAdd* 53 | :VCSAnnotate vcscommand.txt /*:VCSAnnotate* 54 | :VCSBlame vcscommand.txt /*:VCSBlame* 55 | :VCSCommit vcscommand.txt /*:VCSCommit* 56 | :VCSDelete vcscommand.txt /*:VCSDelete* 57 | :VCSDiff vcscommand.txt /*:VCSDiff* 58 | :VCSGotoOriginal vcscommand.txt /*:VCSGotoOriginal* 59 | :VCSInfo vcscommand.txt /*:VCSInfo* 60 | :VCSLock vcscommand.txt /*:VCSLock* 61 | :VCSLog vcscommand.txt /*:VCSLog* 62 | :VCSRemove vcscommand.txt /*:VCSRemove* 63 | :VCSRevert vcscommand.txt /*:VCSRevert* 64 | :VCSReview vcscommand.txt /*:VCSReview* 65 | :VCSStatus vcscommand.txt /*:VCSStatus* 66 | :VCSUnlock vcscommand.txt /*:VCSUnlock* 67 | :VCSUpdate vcscommand.txt /*:VCSUpdate* 68 | :VCSVimDiff vcscommand.txt /*:VCSVimDiff* 69 | CreateBundleSnippet snippets_emu.txt /*CreateBundleSnippet* 70 | CreateSnippet snippets_emu.txt /*CreateSnippet* 71 | Tlist_Get_Tag_Prototype_By_Line() taglist.txt /*Tlist_Get_Tag_Prototype_By_Line()* 72 | Tlist_Get_Tagname_By_Line() taglist.txt /*Tlist_Get_Tagname_By_Line()* 73 | Tlist_Set_App() taglist.txt /*Tlist_Set_App()* 74 | Tlist_Update_File_Tags() taglist.txt /*Tlist_Update_File_Tags()* 75 | VCSCommandCVSDiffOpt vcscommand.txt /*VCSCommandCVSDiffOpt* 76 | VCSCommandCVSExec vcscommand.txt /*VCSCommandCVSExec* 77 | VCSCommandCommitOnWrite vcscommand.txt /*VCSCommandCommitOnWrite* 78 | VCSCommandDeleteOnHide vcscommand.txt /*VCSCommandDeleteOnHide* 79 | VCSCommandDiffSplit vcscommand.txt /*VCSCommandDiffSplit* 80 | VCSCommandDisableExtensionMappings vcscommand.txt /*VCSCommandDisableExtensionMappings* 81 | VCSCommandDisableMappings vcscommand.txt /*VCSCommandDisableMappings* 82 | VCSCommandEdit vcscommand.txt /*VCSCommandEdit* 83 | VCSCommandEnableBufferSetup vcscommand.txt /*VCSCommandEnableBufferSetup* 84 | VCSCommandMapPrefix vcscommand.txt /*VCSCommandMapPrefix* 85 | VCSCommandMappings vcscommand.txt /*VCSCommandMappings* 86 | VCSCommandResultBufferNameExtension vcscommand.txt /*VCSCommandResultBufferNameExtension* 87 | VCSCommandResultBufferNameFunction vcscommand.txt /*VCSCommandResultBufferNameFunction* 88 | VCSCommandSVKExec vcscommand.txt /*VCSCommandSVKExec* 89 | VCSCommandSVNDiffExt vcscommand.txt /*VCSCommandSVNDiffExt* 90 | VCSCommandSVNDiffOpt vcscommand.txt /*VCSCommandSVNDiffOpt* 91 | VCSCommandSVNExec vcscommand.txt /*VCSCommandSVNExec* 92 | VCSCommandSplit vcscommand.txt /*VCSCommandSplit* 93 | b:VCSCommandCommand vcscommand.txt /*b:VCSCommandCommand* 94 | b:VCSCommandOriginalBuffer vcscommand.txt /*b:VCSCommandOriginalBuffer* 95 | b:VCSCommandSourceFile vcscommand.txt /*b:VCSCommandSourceFile* 96 | b:VCSCommandVCSType vcscommand.txt /*b:VCSCommandVCSType* 97 | basic-snippet snippets_emu.txt /*basic-snippet* 98 | creating-snippets snippets_emu.txt /*creating-snippets* 99 | cvscommand-changes vcscommand.txt /*cvscommand-changes* 100 | named-tags snippets_emu.txt /*named-tags* 101 | snip-advanced-tag-commands snippets_emu.txt /*snip-advanced-tag-commands* 102 | snip-buffer-specific snippets_emu.txt /*snip-buffer-specific* 103 | snip-bundles snippets_emu.txt /*snip-bundles* 104 | snip-contact-details snippets_emu.txt /*snip-contact-details* 105 | snip-contributors snippets_emu.txt /*snip-contributors* 106 | snip-detailed-explanations snippets_emu.txt /*snip-detailed-explanations* 107 | snip-elem-delimiter snippets_emu.txt /*snip-elem-delimiter* 108 | snip-ftplugin snippets_emu.txt /*snip-ftplugin* 109 | snip-limitations snippets_emu.txt /*snip-limitations* 110 | snip-menu snippets_emu.txt /*snip-menu* 111 | snip-remap-key snippets_emu.txt /*snip-remap-key* 112 | snip-snippet-commands snippets_emu.txt /*snip-snippet-commands* 113 | snip-special-vars snippets_emu.txt /*snip-special-vars* 114 | snip-start-end-tags snippets_emu.txt /*snip-start-end-tags* 115 | snip-tag-name-syntax snippets_emu.txt /*snip-tag-name-syntax* 116 | snippet-commands snippets_emu.txt /*snippet-commands* 117 | snippets_emu-bugs snippets_emu.txt /*snippets_emu-bugs* 118 | snippets_emu-features snippets_emu.txt /*snippets_emu-features* 119 | snippets_emu-options snippets_emu.txt /*snippets_emu-options* 120 | snippets_emu-troubleshooting snippets_emu.txt /*snippets_emu-troubleshooting* 121 | snippets_emu.txt snippets_emu.txt /*snippets_emu.txt* 122 | taglist-commands taglist.txt /*taglist-commands* 123 | taglist-debug taglist.txt /*taglist-debug* 124 | taglist-extend taglist.txt /*taglist-extend* 125 | taglist-faq taglist.txt /*taglist-faq* 126 | taglist-functions taglist.txt /*taglist-functions* 127 | taglist-install taglist.txt /*taglist-install* 128 | taglist-internet taglist.txt /*taglist-internet* 129 | taglist-intro taglist.txt /*taglist-intro* 130 | taglist-keys taglist.txt /*taglist-keys* 131 | taglist-license taglist.txt /*taglist-license* 132 | taglist-menu taglist.txt /*taglist-menu* 133 | taglist-options taglist.txt /*taglist-options* 134 | taglist-requirements taglist.txt /*taglist-requirements* 135 | taglist-session taglist.txt /*taglist-session* 136 | taglist-todo taglist.txt /*taglist-todo* 137 | taglist-using taglist.txt /*taglist-using* 138 | taglist.txt taglist.txt /*taglist.txt* 139 | vcscommand vcscommand.txt /*vcscommand* 140 | vcscommand-buffer-management vcscommand.txt /*vcscommand-buffer-management* 141 | vcscommand-buffer-variables vcscommand.txt /*vcscommand-buffer-variables* 142 | vcscommand-bugs vcscommand.txt /*vcscommand-bugs* 143 | vcscommand-commands vcscommand.txt /*vcscommand-commands* 144 | vcscommand-config vcscommand.txt /*vcscommand-config* 145 | vcscommand-contents vcscommand.txt /*vcscommand-contents* 146 | vcscommand-customize vcscommand.txt /*vcscommand-customize* 147 | vcscommand-events vcscommand.txt /*vcscommand-events* 148 | vcscommand-install vcscommand.txt /*vcscommand-install* 149 | vcscommand-intro vcscommand.txt /*vcscommand-intro* 150 | vcscommand-manual vcscommand.txt /*vcscommand-manual* 151 | vcscommand-mappings vcscommand.txt /*vcscommand-mappings* 152 | vcscommand-mappings-override vcscommand.txt /*vcscommand-mappings-override* 153 | vcscommand-naming vcscommand.txt /*vcscommand-naming* 154 | vcscommand-options vcscommand.txt /*vcscommand-options* 155 | vcscommand-ssh vcscommand.txt /*vcscommand-ssh* 156 | vcscommand-ssh-config vcscommand.txt /*vcscommand-ssh-config* 157 | vcscommand-ssh-env vcscommand.txt /*vcscommand-ssh-env* 158 | vcscommand-ssh-other vcscommand.txt /*vcscommand-ssh-other* 159 | vcscommand-ssh-wrapper vcscommand.txt /*vcscommand-ssh-wrapper* 160 | vcscommand-statusline vcscommand.txt /*vcscommand-statusline* 161 | vcscommand.txt vcscommand.txt /*vcscommand.txt* 162 | -------------------------------------------------------------------------------- /.vim/filetype.vim: -------------------------------------------------------------------------------- 1 | autocmd BufNewFile,BufRead *.git/COMMIT_EDITMSG setf gitcommit 2 | autocmd BufNewFile,BufRead *.git/config,.gitconfig setf gitconfig 3 | autocmd BufNewFile,BufRead git-rebase-todo setf gitrebase 4 | autocmd BufNewFile,BufRead .msg.[0-9]* 5 | \ if getline(1) =~ '^From.*# This line is ignored.$' | 6 | \ setf gitsendemail | 7 | \ endif 8 | autocmd BufNewFile,BufRead *.git/** 9 | \ if getline(1) =~ '^\x\{40\}\>\|^ref: ' | 10 | \ setf git | 11 | \ endif 12 | 13 | augroup markdown 14 | autocmd BufRead,BufNewFile *.mkd setfiletype mkd 15 | augroup END 16 | 17 | -------------------------------------------------------------------------------- /.vim/indent/IndentAnything_html.vim: -------------------------------------------------------------------------------- 1 | 2 | " Source the standard indentation file, since we only want to adjust the 3 | " default indentation. 4 | sou $VIMRUNTIME/indent/html.vim 5 | 6 | " Set the default indentation to be that of the standard indent file. 7 | let b:defaultIndentExpr = &indentexpr 8 | 9 | " Use IndentAnything 10 | setlocal indentexpr=IndentAnything() 11 | 12 | " Echo info about indentations 13 | let b:indent_anything_echo = 1 14 | 15 | " 16 | " Adjust the default indentation for comments. Set the comments for html to 17 | " look like this: 18 | " 19 | " 22 | " 23 | setl comments=sr: 24 | let b:blockCommentStartRE = '' 27 | let b:blockCommentMiddleExtra = 3 28 | 29 | " Specify the syntax names for html comments and strings 30 | let b:blockCommentRE = 'htmlComment' 31 | let b:commentRE = b:blockCommentRE 32 | 33 | let b:stringRE = 'htmlString' 34 | let b:singleQuoteStringRE = b:stringRE 35 | let b:doubleQuoteStringRE = b:stringRE 36 | -------------------------------------------------------------------------------- /.vim/indent/javascript.vim: -------------------------------------------------------------------------------- 1 | " Vim indent file Language: JavaScript 2 | " Author: Preston Koprivica (pkopriv2@gmail.com) 3 | " URL: 4 | " Last Change: April 30, 2010 5 | 6 | " 0. Standard Stuff 7 | " ================= 8 | 9 | " Only load one indent script per buffer 10 | if exists('b:did_indent') 11 | finish 12 | endif 13 | 14 | let b:did_indent = 1 15 | 16 | " Set the global log variable 1 = logging enabled, 0 = logging disabled 17 | if !exists("g:js_indent_log") 18 | let g:js_indent_log = 0 19 | endif 20 | 21 | setlocal indentexpr=GetJsIndent(v:lnum) 22 | setlocal indentkeys= 23 | 24 | 25 | setlocal cindent 26 | setlocal autoindent 27 | 28 | 29 | " 1. Variables 30 | " ============ 31 | 32 | " Inline comments (for anchoring other statements) 33 | let s:js_mid_line_comment = '\s*\(\/\*.*\*\/\)*\s*' 34 | let s:js_end_line_comment = s:js_mid_line_comment . '\s*\(//.*\)*' 35 | let s:js_line_comment = s:js_end_line_comment 36 | 37 | " Comment/String Syntax Key 38 | let s:syn_comment = '\(Comment\|String\|Regexp\)' 39 | 40 | 41 | " 2. Aux. Functions 42 | " ================= 43 | 44 | " = Method: IsInComment 45 | " 46 | " Determines whether the specified position is contained in a comment. "Note: 47 | " This depends on a 48 | function! s:IsInComment(lnum, cnum) 49 | return synIDattr(synID(a:lnum, a:cnum, 1), 'name') =~? s:syn_comment 50 | endfunction 51 | 52 | 53 | " = Method: IsComment 54 | " 55 | " Determines whether a line is a comment or not. 56 | function! s:IsComment(lnum) 57 | let line = getline(a:lnum) 58 | 59 | return s:IsInComment(a:lnum, 1) && s:IsInComment(a:lnum, strlen(line)) "Doesn't absolutely work. Only Probably! 60 | endfunction 61 | 62 | 63 | " = Method: GetNonCommentLine 64 | " 65 | " Grabs the nearest non-commented line 66 | function! s:GetNonCommentLine(lnum) 67 | let lnum = prevnonblank(a:lnum) 68 | 69 | while lnum > 0 70 | if s:IsComment(lnum) 71 | let lnum = prevnonblank(lnum - 1) 72 | else 73 | return lnum 74 | endif 75 | endwhile 76 | 77 | return lnum 78 | endfunction 79 | 80 | " = Method: SearchForPair 81 | " 82 | " Returns the beginning tag of a given pair starting from the given line. 83 | function! s:SearchForPair(lnum, beg, end) 84 | " Save the cursor position. 85 | let curpos = getpos(".") 86 | 87 | " Set the cursor position to the beginning of the line (default 88 | " behavior when using ==) 89 | call cursor(a:lnum, 0) 90 | 91 | " Search for the opening tag 92 | let mnum = searchpair(a:beg, '', a:end, 'bW', 93 | \ 'synIDattr(synID(line("."), col("."), 0), "name") =~? s:syn_comment' ) 94 | 95 | "Restore the cursor position 96 | call cursor(curpos) 97 | 98 | " Finally, return the matched line number 99 | return mnum 100 | endfunction 101 | 102 | 103 | " Object Helpers 104 | " ============== 105 | let s:object_beg = '{[^}]*' . s:js_end_line_comment . '$' 106 | let s:object_end = '^' . s:js_mid_line_comment . '}[;,]\=' 107 | 108 | 109 | function! s:IsObjectBeg(line) 110 | return a:line =~ s:object_beg 111 | endfunction 112 | 113 | function! s:IsObjectEnd(line) 114 | return a:line =~ s:object_end 115 | endfunction 116 | 117 | function! s:GetObjectBeg(lnum) 118 | return s:SearchForPair(a:lnum, '{', '}') 119 | endfunction 120 | 121 | 122 | " Array Helpers 123 | " ============== 124 | let s:array_beg = '\[[^\]]*' . s:js_end_line_comment . '$' 125 | let s:array_end = '^' . s:js_mid_line_comment . '[^\[]*\][;,]*' . s:js_end_line_comment . '$' 126 | 127 | 128 | function! s:IsArrayBeg(line) 129 | return a:line =~ s:array_beg 130 | endfunction 131 | 132 | function! s:IsArrayEnd(line) 133 | return a:line =~ s:array_end 134 | endfunction 135 | 136 | function! s:GetArrayBeg(lnum) 137 | return s:SearchForPair(a:lnum, '\[', '\]') 138 | endfunction 139 | 140 | 141 | " MultiLine Declaration/Invocation Helpers 142 | " ======================================== 143 | let s:paren_beg = '([^)]*' . s:js_end_line_comment . '$' 144 | let s:paren_end = '^' . s:js_mid_line_comment . '[^(]*)[;,]*' 145 | 146 | function! s:IsParenBeg(line) 147 | return a:line =~ s:paren_beg 148 | endfunction 149 | 150 | function! s:IsParenEnd(line) 151 | return a:line =~ s:paren_end 152 | endfunction 153 | 154 | function! s:GetParenBeg(lnum) 155 | return s:SearchForPair(a:lnum, '(', ')') 156 | endfunction 157 | 158 | 159 | 160 | " Continuation Helpers 161 | " ==================== 162 | let s:continuation = '\(+\|\\\)\{1}' . s:js_line_comment . '$' 163 | 164 | function! s:IsContinuationLine(line) 165 | return a:line =~ s:continuation 166 | endfunction 167 | 168 | function! s:GetContinuationBegin(lnum) 169 | let cur = a:lnum 170 | 171 | while s:IsContinuationLine(getline(cur)) 172 | let cur -= 1 173 | endwhile 174 | 175 | return cur + 1 176 | endfunction 177 | 178 | 179 | " Switch Helpers 180 | " ============== 181 | let s:switch_beg_next_line = 'switch\s*(.*)\s*' . s:js_mid_line_comment . s:js_end_line_comment . '$' 182 | let s:switch_beg_same_line = 'switch\s*(.*)\s*' . s:js_mid_line_comment . '{\s*' . s:js_line_comment . '$' 183 | let s:switch_mid = '^.*\(case.*\|default\)\s*:\s*' 184 | 185 | function! s:IsSwitchBeginNextLine(line) 186 | return a:line =~ s:switch_beg_next_line 187 | endfunction 188 | 189 | function! s:IsSwitchBeginSameLine(line) 190 | return a:line =~ s:switch_beg_same_line 191 | endfunction 192 | 193 | function! s:IsSwitchMid(line) 194 | return a:line =~ s:switch_mid 195 | endfunction 196 | 197 | 198 | " Control Helpers 199 | " =============== 200 | let s:cntrl_beg_keys = '\(\(\(if\|for\|with\|while\)\s*(.*)\)\|\(try\|do\)\)\s*' 201 | let s:cntrl_mid_keys = '\(\(\(else\s*if\|catch\)\s*(.*)\)\|\(finally\|else\)\)\s*' 202 | 203 | let s:cntrl_beg = s:cntrl_beg_keys . s:js_end_line_comment . '$' 204 | let s:cntrl_mid = s:cntrl_mid_keys . s:js_end_line_comment . '$' 205 | 206 | let s:cntrl_end = '\(while\s*(.*)\)\s*;\=\s*' . s:js_end_line_comment . '$' 207 | 208 | function! s:IsControlBeg(line) 209 | return a:line =~ s:cntrl_beg 210 | endfunction 211 | 212 | function! s:IsControlMid(line) 213 | return a:line =~ s:cntrl_mid 214 | endfunction 215 | 216 | function! s:IsControlMidStrict(line) 217 | return a:line =~ s:cntrl_mid 218 | endfunction 219 | 220 | function! s:IsControlEnd(line) 221 | return a:line =~ s:cntrl_end 222 | endfunction 223 | 224 | " = Method: Log 225 | " 226 | " Logs a message to the stdout. 227 | function! s:Log(msg) 228 | if g:js_indent_log 229 | echo "LOG: " . a:msg 230 | endif 231 | endfunction 232 | 233 | 234 | " 3. Indenter 235 | " =========== 236 | function! GetJsIndent(lnum) 237 | " Grab the first non-comment line prior to this line 238 | let pnum = s:GetNonCommentLine(a:lnum-1) 239 | 240 | " First line, start at indent = 0 241 | if pnum == 0 242 | call s:Log("No, noncomment lines prior to the current line.") 243 | return 0 244 | endif 245 | 246 | " Grab the second non-comment line prior to this line 247 | let ppnum = s:GetNonCommentLine(pnum-1) 248 | 249 | call s:Log("Line: " . a:lnum) 250 | call s:Log("PLine: " . pnum) 251 | call s:Log("PPLine: " . ppnum) 252 | 253 | " Grab the lines themselves. 254 | let line = getline(a:lnum) 255 | let pline = getline(pnum) 256 | let ppline = getline(ppnum) 257 | 258 | " Determine the current level of indentation 259 | let ind = indent(pnum) 260 | 261 | 262 | " Handle: Object Closers (ie }) 263 | " ============================= 264 | if s:IsObjectEnd(line) && !s:IsComment(a:lnum) 265 | call s:Log("Line matched object end") 266 | 267 | let obeg = s:GetObjectBeg(a:lnum) 268 | let oind = indent(obeg) 269 | let oline = getline(obeg) 270 | 271 | call s:Log("The object beg was found at: " . obeg) 272 | return oind 273 | endif 274 | 275 | if s:IsObjectBeg(pline) 276 | call s:Log("Pline matched object beg") 277 | return ind + &sw 278 | endif 279 | 280 | 281 | " Handle: Array Closer (ie ]) 282 | " ============================ 283 | if s:IsArrayEnd(line) && !s:IsComment(a:lnum) 284 | call s:Log("Line matched array end") 285 | 286 | let abeg = s:GetArrayBeg(a:lnum) 287 | let aind = indent(abeg) 288 | 289 | call s:Log("The array beg was found at: " . abeg) 290 | return aind 291 | endif 292 | 293 | if s:IsArrayBeg(pline) 294 | call s:Log("Pline matched array beg") 295 | return ind + &sw 296 | endif 297 | 298 | " Handle: Parens 299 | " ============== 300 | if s:IsParenEnd(line) && !s:IsComment(a:lnum) 301 | call s:Log("Line matched paren end") 302 | 303 | let abeg = s:GetParenBeg(a:lnum) 304 | let aind = indent(abeg) 305 | 306 | call s:Log("The paren beg was found at: " . abeg) 307 | return aind 308 | endif 309 | 310 | if s:IsParenBeg(pline) 311 | call s:Log("Pline matched paren beg") 312 | return ind + &sw 313 | endif 314 | 315 | 316 | " Handle: Continuation Lines. 317 | " ======================================================== 318 | if s:IsContinuationLine(pline) 319 | call s:Log('Pline is a continuation line.') 320 | 321 | let cbeg = s:GetContinuationBegin(pnum) 322 | let cind = indent(cbeg) 323 | 324 | call s:Log('The continuation block begin found at: ' . cbeg) 325 | return cind + &sw 326 | endif 327 | 328 | if s:IsContinuationLine(ppline) 329 | call s:Log('PPline was a continuation line but pline wasnt.') 330 | return ind - &sw 331 | endif 332 | 333 | " Handle: Switch Control Blocks 334 | " ============================= 335 | if s:IsSwitchMid(pline) 336 | call s:Log("PLine matched switch cntrl mid") 337 | if s:IsSwitchMid(line) || s:IsObjectEnd(line) 338 | call s:Log("Line matched a cntrl mid") 339 | return ind 340 | else 341 | call s:Log("Line didnt match a cntrl mid") 342 | return ind + &sw 343 | endif 344 | endif 345 | 346 | if s:IsSwitchMid(line) 347 | call s:Log("Line matched switch cntrl mid") 348 | return ind - &sw 349 | endif 350 | 351 | 352 | " Handle: Single Line Control Blocks 353 | " ================================== 354 | if s:IsControlBeg(pline) 355 | call s:Log("Pline matched control beginning") 356 | 357 | if s:IsControlMid(line) 358 | call s:Log("Line matched a control mid") 359 | return ind 360 | elseif line =~ '^\s*{\s*$' 361 | call s:Log("Line matched an object beg") 362 | return ind 363 | else 364 | return ind + &sw 365 | endif 366 | 367 | endif 368 | 369 | if s:IsControlMid(pline) 370 | call s:Log("Pline matched a control mid") 371 | 372 | if s:IsControlMid(line) 373 | call s:Log("Line matched a control mid") 374 | return ind 375 | elseif s:IsObjectBeg(line) 376 | call s:Log("Line matched an object beg") 377 | return ind 378 | else 379 | call s:Log("Line didn't match a control mid or object beg." 380 | return ind + &sw 381 | endif 382 | endif 383 | 384 | if s:IsControlMid(line) 385 | call s:Log("Line matched a control mid.") 386 | 387 | if s:IsControlEnd(pline) || s:IsObjectEnd(pline) 388 | call s:Log("PLine matched control end") 389 | return ind 390 | else 391 | call s:Log("Pline didn't match object end") 392 | return ind - &sw 393 | endif 394 | endif 395 | 396 | 397 | if ( s:IsControlBeg(ppline) || s:IsControlMid(ppline) ) && 398 | \ !s:IsObjectBeg(pline) && !s:IsObjectEnd(pline) 399 | call s:Log("PPLine matched single line control beg or mid") 400 | return ind - &sw 401 | endif 402 | 403 | " Handle: No matches 404 | " ================== 405 | "call s:Log("Line didn't match anything. Retaining indent") 406 | return ind 407 | endfunction 408 | -------------------------------------------------------------------------------- /.vim/nerdtree_plugin/shawncplus.vim: -------------------------------------------------------------------------------- 1 | if exists("g:loaded_nerdtree_custom_shawncplus") 2 | finish 3 | endif 4 | let g:loaded_nerdtree_custom_shawncplus = 1 5 | 6 | call NERDTreeAddKeyMap({ 7 | \ 'key': 'gG', 8 | \ 'callback': 'NERDTreeCustomMapsOpenCurrentGitRoot', 9 | \ 'quickhelpText': 'Open current git root' }) 10 | 11 | call NERDTreeAddKeyMap({ 12 | \ 'key': 'gH', 13 | \ 'callback': 'NERDTreeCustomMapsOpenCurrentGitRootNewTab', 14 | \ 'quickhelpText': 'Open current git root in a new tab' }) 15 | 16 | function! NERDTreeCustomMapsOpenCurrentGitRoot() 17 | let gitroot = s:getGitRoot() 18 | if type(gitroot) == type(0) 19 | return 20 | endif 21 | 22 | let gitrootnpath = g:NERDTreePath.New(gitroot) 23 | let n = g:NERDTreeDirNode.New(gitrootnpath) 24 | call n.makeRoot() 25 | call NERDTreeRender() 26 | call n.putCursorHere(0,0) 27 | endfunction 28 | 29 | function! NERDTreeCustomMapsOpenCurrentGitRootNewTab() 30 | let gitroot = s:getGitRoot() 31 | if type(gitroot) == type(0) 32 | return 33 | endif 34 | 35 | exec 'tabnew ' . gitroot 36 | endfunction 37 | 38 | function! s:getGitRoot() 39 | let gitroot = finddir('.git', b:NERDTreeRoot.path.str() . '/;') . '/' 40 | if gitroot != '/' 41 | return substitute(gitroot, '\.git/$', '', '') 42 | endif 43 | return 0 44 | endfunction 45 | -------------------------------------------------------------------------------- /.vim/spell/en.utf-8.add: -------------------------------------------------------------------------------- 1 | WOOT 2 | PHP 3 | diff 4 | endfor 5 | endif 6 | -------------------------------------------------------------------------------- /.vim/spell/en.utf-8.add.spl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shawncplus/dotfiles/d07f5cf7164e8b37fcea9ae2b489058a6e649fcc/.vim/spell/en.utf-8.add.spl -------------------------------------------------------------------------------- /.vim/startup/color.vim: -------------------------------------------------------------------------------- 1 | " Color Settings 2 | "color wombat256 3 | "color xterm16 4 | "color railscasts 5 | "color molokai 6 | "color skittles_dark 7 | color skittles_berry 8 | -------------------------------------------------------------------------------- /.vim/startup/commands.vim: -------------------------------------------------------------------------------- 1 | "============== Custom Commands =============== 2 | command! -nargs=0 Sinit :call Sinit('%:p:h') 3 | command! -nargs=? W :w 4 | augroup AutoMkdir 5 | autocmd! 6 | autocmd BufWritePre * :call EnsureDirExists() 7 | augroup END 8 | 9 | command! DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis | wincmd p | diffthis 10 | 11 | command! JShint 80vnew +setlocal\ buftype=nofile\ bufhidden=hide\ noswapfile | r !jshint # --show-non-errors 12 | command! CR 80vnew +setlocal\ buftype=nofile\ bufhidden=hide\ noswapfile | r !php-cs-fixer fix # --diff --dry-run -vvv 13 | -------------------------------------------------------------------------------- /.vim/startup/functions.vim: -------------------------------------------------------------------------------- 1 | "============== Custom Functions =============== 2 | fun! Format_WhiteSpace_RemoveTrailing() 3 | :%s/\v\s*$//g 4 | endfun 5 | 6 | fun! Format_Inflection_ToCamelCase() 7 | :s/\v([a-z])_([a-z])/\1\u\2/g 8 | endfun 9 | 10 | fun! Format_Inflection_ToUnderscored() 11 | :s/\v([a-z])([A-Z])/\L\1_\2/g 12 | endfun 13 | 14 | fun! CheckTabs() 15 | if search("\t") != 0 16 | echohl ErrorMsg | ec " !WARNING! " 17 | \ | ec "There are tabs in the file, do you want to convert them to spaces? [Y/n]" | echohl None 18 | let choice = nr2char(getchar()) 19 | if choice == 'y' || choice == "\" 20 | retab 2 21 | endif 22 | else 23 | return 24 | endif 25 | endfun 26 | 27 | function! EnsureDirExists () 28 | let required_dir = expand("%:h") 29 | if !isdirectory(required_dir) 30 | call mkdir(required_dir, 'p') 31 | endif 32 | endfunction 33 | 34 | " screen stuff 35 | fun! s:Sinit(filen) 36 | echo expand(a:filen) 37 | exec "ScreenShell cd " . expand(a:filen) . "; \\clear" 38 | endfun 39 | 40 | """ FocusMode 41 | function! ToggleFocusMode() 42 | if (&foldcolumn != 12) 43 | set laststatus=0 44 | set numberwidth=10 45 | set foldcolumn=12 46 | set noruler 47 | hi FoldColumn ctermbg=none 48 | hi LineNr ctermfg=0 ctermbg=none 49 | hi NonText ctermfg=0 50 | set nonu norelativenumber 51 | GitGutterDisable 52 | else 53 | set laststatus=2 54 | set numberwidth=4 55 | set foldcolumn=0 56 | set ruler 57 | set nu relativenumber 58 | GitGutterEnable 59 | colorscheme skittles_berry "re-call your colorscheme 60 | endif 61 | endfunc 62 | nnoremap :call ToggleFocusMode() 63 | -------------------------------------------------------------------------------- /.vim/startup/html.vim: -------------------------------------------------------------------------------- 1 | augroup filetype_html 2 | autocmd! 3 | " Angular and angular bootstrap tag highlighting 4 | autocmd FileType html,twig syn match htmlTagN contained +<\s*[-a-zA-Z0-9]\++hs=s+1 contains=htmlTagName,htmlSpecialTagName,@htmlTagNameCluster,angularTagName 5 | autocmd FileType html,twig syn match htmlTagN contained ++ fold contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent,htmlCssDefinition,@htmlPreproc,@htmlArgCluster,angularArg 7 | autocmd FileType html,twig syn match angularTagName contained "\<\(ng\|accordion\)\(-[a-z]\+\)\?\>" 8 | autocmd FileType html,twig syn match angularArg contained "\<\(ng\|typeahead\)\([-a-z]\+\)\?\>="me=e-1 9 | autocmd FileType html,twig hi angularTagName term=bold cterm=bold ctermfg=161 10 | autocmd FileType html,twig hi angularArg cterm=none ctermfg=161 11 | autocmd FileType html,twig set ai 12 | augroup END 13 | -------------------------------------------------------------------------------- /.vim/startup/js.vim: -------------------------------------------------------------------------------- 1 | autocmd FileType javascript noremap :silent exe "s/\\v^(\\s*)(.+)$/\\1\\2\r\\1console.log(" . expand('') . ", '" . expand('') . "');" 2 | au FileType javascript let b:javascript_fold = 1 3 | au FileType javascript set foldmethod=syntax 4 | 5 | -------------------------------------------------------------------------------- /.vim/startup/mappings.vim: -------------------------------------------------------------------------------- 1 | " Unmap the arrow keys 2 | no ddp 3 | no 4 | no 5 | no ddkP 6 | ino 7 | ino 8 | ino 9 | ino 10 | vno 11 | vno 12 | vno 13 | vno 14 | 15 | "============== Custom Mappings =============== 16 | " general mapping 17 | nmap :tabnext 18 | nmap :tabprevious 19 | map :tabprevious 20 | map :tabnext 21 | imap :tabprevious 22 | imap :tabnext 23 | noremap :set expandtab! 24 | nmap h :tabnew %:h 25 | 26 | "turn off search highlighting 27 | nmap :noh 28 | 29 | "custom comma motion mapping 30 | nmap di, f,dT, 31 | nmap ci, f,cT, 32 | nmap da, f,ld2F,i,l "delete argument 33 | nmap ca, f,ld2F,i,a "delete arg and insert 34 | 35 | " delete surrounding characters 36 | noremap ds{ F{xf}x 37 | noremap cs{ F{xf}xi 38 | noremap ds" F"x,x 39 | noremap cs" F"x,xi 40 | noremap ds' F'x,x 41 | noremap cs' F'x,xi 42 | noremap ds( F(xf)x 43 | noremap cs( F(xf)xi 44 | noremap ds) F(xf)x 45 | noremap cs) F(xf)xi 46 | 47 | nmap cu ct_ 48 | nmap cU cf_ 49 | 50 | " upper or lowercase the current word 51 | nmap g^ gUiW 52 | nmap gv guiW 53 | 54 | " diff 55 | nmap ]c ]czz 56 | nmap [c [czz 57 | 58 | " default to very magic 59 | no / /\v 60 | 61 | " gO to create a new line below cursor in normal mode 62 | nmap g ok 63 | " g to create a new line above cursor (Ctrl to prevent collision with 'go' command) 64 | nmap gO Oj 65 | 66 | "I really hate that things don't auto-center 67 | nmap G Gzz 68 | nmap n nzz 69 | nmap N Nzz 70 | nmap } }zz 71 | nmap { {zz 72 | 73 | "open tag in new tab 74 | map :tab split:exec("tag ".expand("")) 75 | 76 | "quick pairs 77 | imap ' ''i 78 | imap " ""i 79 | imap ( ()i 80 | imap [ []i 81 | 82 | " replace string contents with recently copied text 83 | nmap r" "_di"P 84 | nmap c" "_di"Pa 85 | nmap r' '_di'P 86 | nmap c' '_di'Pa 87 | 88 | autocmd FileType twig imap a[ [{[ ]}]Bhi 89 | 90 | nmap ]h GitGutterNextHunk 91 | nmap [h GitGutterPrevHunk 92 | -------------------------------------------------------------------------------- /.vim/startup/php.vim: -------------------------------------------------------------------------------- 1 | " PHP Stuff 2 | autocmd FileType php let php_folding = 1 3 | autocmd FileType php let php_parent_error_close = 1 4 | autocmd FileType php let php_parent_error_open = 1 5 | autocmd FileType php let php_large_files = 0 6 | 7 | autocmd FileType php noremap \fb :silent! exe "s/$/\rfb(" . expand('') . ", '" . expand('') . "');/e" \| silent! exe "noh" 8 | autocmd FileType php noremap \ft :call append(line('.'), 'FirePHP::getInstance(true)->trace(__FUNCTION__);') 9 | autocmd FileType php set kp=phpdoc 10 | 11 | let g:php_smart_members=1 12 | let g:php_alt_properties=1 13 | let g:php_smart_semicolon=1 14 | let g:php_alt_construct_parents=1 15 | 16 | "============== Custom Menu Items (GUI Only) =============== 17 | autocmd FileType php menu Syntax.PHP.Check :call CheckPHPSyntax() 18 | autocmd FileType php menu Format.Whitespace.Concatenation :%s/\([^\. ]\)\.\([^\. ]*\)\.\([^\. ]\)/\=submatch(1).' . '.submatch(2).' . '.submatch(3)/g 19 | 20 | autocmd FileType php command! Fix :silent !php-cs-fixer fix % 21 | -------------------------------------------------------------------------------- /.vim/startup/settings.vim: -------------------------------------------------------------------------------- 1 | "============== General Settings =============== 2 | set dict=/usr/share/dict/words 3 | set cursorline 4 | set showcmd 5 | set ruler 6 | set incsearch 7 | set wildmenu 8 | syntax enable 9 | set synmaxcol=0 10 | set term=screen-256color 11 | set display=uhex 12 | set shortmess=aAIsT 13 | set cmdheight=2 14 | set nowrap 15 | if &diff 16 | set wrap 17 | endif 18 | set diffopt+=iwhite 19 | let &scrolloff=999-&scrolloff 20 | set smartcase 21 | set relativenumber 22 | set nowritebackup 23 | 24 | set completeopt=menu 25 | set mousemodel=popup 26 | set backspace=2 27 | set number 28 | set nocompatible 29 | 30 | " Hack to make sql in php hilighting suck less 31 | let sql_type_default = 'sqlanywhere' 32 | 33 | set enc=utf-8 34 | set fillchars=vert:¦ 35 | 36 | set expandtab 37 | set tabstop=4 38 | set shiftwidth=4 39 | set foldcolumn=1 40 | set cc=+1,+2 41 | 42 | set linespace=0 43 | set history=1000 44 | set list listchars=tab:› ,trail:-,extends:>,precedes:<,eol:¬ 45 | 46 | set laststatus=2 47 | set ffs=unix,dos 48 | set mouse=a 49 | set vb 50 | set ttym=xterm2 51 | 52 | set wrap 53 | 54 | set tags=./tags 55 | 56 | if version > 720 57 | set undofile 58 | set undodir=~/vimundo/ 59 | endif 60 | 61 | let mapleader='\' 62 | if exists('$TMUX') 63 | let &t_SI = "\Ptmux;\\]50;CursorShape=1\x7\\\" 64 | let &t_EI = "\Ptmux;\\]50;CursorShape=0\x7\\\" 65 | else 66 | let &t_SI = "\]50;CursorShape=1\x7" 67 | let &t_EI = "\]50;CursorShape=0\x7" 68 | endif 69 | 70 | let g:vdebug_options= { 71 | \ "port" : 9000, 72 | \ "server" : 'localhost', 73 | \ "timeout" : 20, 74 | \ "on_close" : 'detach', 75 | \ "break_on_open" : 1, 76 | \ "ide_key" : '', 77 | \ "path_maps" : {}, 78 | \ "debug_window_level" : 0, 79 | \ "debug_file_level" : 0, 80 | \ "debug_file" : "", 81 | \ "watch_window_style" : 'compact', 82 | \ "marker_default" : '*', 83 | \ "marker_closed_tree" : '+', 84 | \ "marker_open_tree" : '━', 85 | \ "continuous_mode" : 0 86 | \} 87 | 88 | 89 | let NERDTreeMinimalUI = 1 90 | let NERDTreeDirArrows = 0 91 | 92 | let g:phpcomplete_parse_docblock_comments = 1 93 | 94 | let g:indent_guides_auto_colors = 0 95 | let g:indent_guides_color_change_percent = 10 96 | autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd ctermbg=0 97 | autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=235 98 | let g:indent_guides_space_guides = 1 99 | let g:indent_guides_guide_size = 1 100 | " 101 | let g:gitgutter_sign_modified = '≈ ' 102 | let g:gitgutter_sign_removed = '⌐ ' 103 | -------------------------------------------------------------------------------- /.vim/startup/vim.vim: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.vim/startup/yaml.vim: -------------------------------------------------------------------------------- 1 | " Yaml indentation and tab correction 2 | autocmd FileType yaml set foldmethod=indent 3 | autocmd FileType yaml set foldcolumn=4 4 | hi link yamlTab Error 5 | autocmd FileType yaml match yamlTab /\t\+/ 6 | autocmd FileType yaml autocmd BufWritePre :call CheckTabs() 7 | -------------------------------------------------------------------------------- /.vim/syntax/git.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: generic git output 3 | " Maintainer: Tim Pope 4 | " Last Change: 2008 Mar 21 5 | 6 | if exists("b:current_syntax") 7 | finish 8 | endif 9 | 10 | syn case match 11 | syn sync minlines=50 12 | 13 | syn include @gitDiff syntax/diff.vim 14 | 15 | syn region gitHead start=/\%^/ end=/^$/ 16 | syn region gitHead start=/\%(^commit \x\{40\}$\)\@=/ end=/^$/ 17 | 18 | " For git reflog and git show ...^{tree}, avoid sync issues 19 | syn match gitHead /^\d\{6\} \%(\w\{4} \)\=\x\{40\}\%( [0-3]\)\=\t.*/ 20 | syn match gitHead /^\x\{40\} \x\{40}\t.*/ 21 | 22 | syn region gitDiff start=/^\%(diff --git \)\@=/ end=/^\%(diff --git \|$\)\@=/ contains=@gitDiff fold 23 | syn region gitDiff start=/^\%(@@ -\)\@=/ end=/^\%(diff --git \|$\)\@=/ contains=@gitDiff 24 | 25 | syn match gitKeyword /^\%(object\|type\|tag\|commit\|tree\|parent\|encoding\)\>/ contained containedin=gitHead nextgroup=gitHash,gitType skipwhite 26 | syn match gitKeyword /^\%(tag\>\|ref:\)/ contained containedin=gitHead nextgroup=gitReference skipwhite 27 | syn match gitKeyword /^Merge:/ contained containedin=gitHead nextgroup=gitHashAbbrev skipwhite 28 | syn match gitMode /^\d\{6\}/ contained containedin=gitHead nextgroup=gitType,gitHash skipwhite 29 | syn match gitIdentityKeyword /^\%(author\|committer\|tagger\)\>/ contained containedin=gitHead nextgroup=gitIdentity skipwhite 30 | syn match gitIdentityHeader /^\%(Author\|Commit\|Tagger\):/ contained containedin=gitHead nextgroup=gitIdentity skipwhite 31 | syn match gitDateHeader /^\%(AuthorDate\|CommitDate\|Date\):/ contained containedin=gitHead nextgroup=gitDate skipwhite 32 | syn match gitIdentity /\S.\{-\} <[^>]*>/ contained nextgroup=gitDate skipwhite 33 | syn region gitEmail matchgroup=gitEmailDelimiter start=// keepend oneline contained containedin=gitIdentity 34 | 35 | syn match gitReflogHeader /^Reflog:/ contained containedin=gitHead nextgroup=gitReflogMiddle skipwhite 36 | syn match gitReflogHeader /^Reflog message:/ contained containedin=gitHead skipwhite 37 | syn match gitReflogMiddle /\S\+@{\d\+} (/he=e-2 nextgroup=gitIdentity 38 | 39 | syn match gitDate /\<\u\l\l \u\l\l \d\=\d \d\d:\d\d:\d\d \d\d\d\d [+-]\d\d\d\d/ contained 40 | syn match gitDate /-\=\d\+ [+-]\d\d\d\d\>/ contained 41 | syn match gitDate /\<\d\+ \l\+ ago\>/ contained 42 | syn match gitType /\<\%(tag\|commit\|tree\|blob\)\>/ contained nextgroup=gitHash skipwhite 43 | syn match gitStage /\<\d\t\@=/ contained 44 | syn match gitReference /\S\+\S\@!/ contained 45 | syn match gitHash /\<\x\{40\}\>/ contained nextgroup=gitIdentity,gitStage skipwhite 46 | syn match gitHash /^\<\x\{40\}\>/ containedin=gitHead contained nextgroup=gitHash skipwhite 47 | syn match gitHashAbbrev /\<\x\{4,39\}\.\.\./he=e-3 contained nextgroup=gitHashAbbrev skipwhite 48 | syn match gitHashAbbrev /\<\x\{40\}\>/ contained nextgroup=gitHashAbbrev skipwhite 49 | 50 | hi def link gitDateHeader gitIdentityHeader 51 | hi def link gitIdentityHeader gitIdentityKeyword 52 | hi def link gitIdentityKeyword Label 53 | hi def link gitReflogHeader gitKeyword 54 | hi def link gitKeyword Keyword 55 | hi def link gitIdentity String 56 | hi def link gitEmailDelimiter Delimiter 57 | hi def link gitEmail Special 58 | hi def link gitDate Number 59 | hi def link gitMode Number 60 | hi def link gitHashAbbrev gitHash 61 | hi def link gitHash Identifier 62 | hi def link gitReflogMiddle gitReference 63 | hi def link gitReference Function 64 | hi def link gitStage gitType 65 | hi def link gitType Type 66 | 67 | let b:current_syntax = "git" 68 | -------------------------------------------------------------------------------- /.vim/syntax/gitcommit.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: git commit file 3 | " Maintainer: Tim Pope 4 | " Filenames: *.git/COMMIT_EDITMSG 5 | " Last Change: 2008 Apr 09 6 | 7 | if exists("b:current_syntax") 8 | finish 9 | endif 10 | 11 | syn case match 12 | syn sync minlines=50 13 | 14 | if has("spell") 15 | syn spell toplevel 16 | endif 17 | 18 | syn include @gitcommitDiff syntax/diff.vim 19 | syn region gitcommitDiff start=/\%(^diff --git \)\@=/ end=/^$\|^#\@=/ contains=@gitcommitDiff 20 | 21 | syn match gitcommitFirstLine "\%^[^#].*" nextgroup=gitcommitBlank skipnl 22 | syn match gitcommitSummary "^.\{0,50\}" contained containedin=gitcommitFirstLine nextgroup=gitcommitOverflow contains=@Spell 23 | syn match gitcommitOverflow ".*" contained contains=@Spell 24 | syn match gitcommitBlank "^[^#].*" contained contains=@Spell 25 | syn match gitcommitComment "^#.*" 26 | syn region gitcommitHead start=/^# / end=/^#$/ contained transparent 27 | syn match gitcommitOnBranch "\%(^# \)\@<=On branch" contained containedin=gitcommitComment nextgroup=gitcommitBranch skipwhite 28 | syn match gitcommitBranch "\S\+" contained 29 | syn match gitcommitHeader "\%(^# \)\@<=.*:$" contained containedin=gitcommitComment 30 | 31 | syn region gitcommitUntracked start=/^# Untracked files:/ end=/^#$\|^#\@!/ contains=gitcommitHeader,gitcommitHead,gitcommitUntrackedFile fold 32 | syn match gitcommitUntrackedFile "\t\@<=.*" contained 33 | 34 | syn region gitcommitDiscarded start=/^# Changed but not updated:/ end=/^#$\|^#\@!/ contains=gitcommitHeader,gitcommitHead,gitcommitDiscardedType fold 35 | syn region gitcommitSelected start=/^# Changes to be committed:/ end=/^#$\|^#\@!/ contains=gitcommitHeader,gitcommitHead,gitcommitSelectedType fold 36 | 37 | syn match gitcommitDiscardedType "\t\@<=[a-z][a-z ]*[a-z]: "he=e-2 contained containedin=gitcommitComment nextgroup=gitcommitDiscardedFile skipwhite 38 | syn match gitcommitSelectedType "\t\@<=[a-z][a-z ]*[a-z]: "he=e-2 contained containedin=gitcommitComment nextgroup=gitcommitSelectedFile skipwhite 39 | syn match gitcommitDiscardedFile ".\{-\}\%($\| -> \)\@=" contained nextgroup=gitcommitDiscardedArrow 40 | syn match gitcommitSelectedFile ".\{-\}\%($\| -> \)\@=" contained nextgroup=gitcommitSelectedArrow 41 | syn match gitcommitDiscardedArrow " -> " contained nextgroup=gitcommitDiscardedFile 42 | syn match gitcommitSelectedArrow " -> " contained nextgroup=gitcommitSelectedFile 43 | 44 | hi def link gitcommitSummary Keyword 45 | hi def link gitcommitComment Comment 46 | hi def link gitcommitUntracked gitcommitComment 47 | hi def link gitcommitDiscarded gitcommitComment 48 | hi def link gitcommitSelected gitcommitComment 49 | hi def link gitcommitOnBranch Comment 50 | hi def link gitcommitBranch Special 51 | hi def link gitcommitDiscardedType gitcommitType 52 | hi def link gitcommitSelectedType gitcommitType 53 | hi def link gitcommitType Type 54 | hi def link gitcommitHeader PreProc 55 | hi def link gitcommitUntrackedFile gitcommitFile 56 | hi def link gitcommitDiscardedFile gitcommitFile 57 | hi def link gitcommitSelectedFile gitcommitFile 58 | hi def link gitcommitFile Constant 59 | hi def link gitcommitDiscardedArrow gitcommitArrow 60 | hi def link gitcommitSelectedArrow gitcommitArrow 61 | hi def link gitcommitArrow gitcommitComment 62 | "hi def link gitcommitOverflow Error 63 | hi def link gitcommitBlank Error 64 | 65 | let b:current_syntax = "gitcommit" 66 | -------------------------------------------------------------------------------- /.vim/syntax/gitconfig.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: git config file 3 | " Maintainer: Tim Pope 4 | " Filenames: gitconfig, .gitconfig, *.git/config 5 | " Last Change: 2008 Jun 04 6 | 7 | if exists("b:current_syntax") 8 | finish 9 | endif 10 | 11 | setlocal iskeyword+=- 12 | setlocal iskeyword-=_ 13 | syn case ignore 14 | syn sync minlines=10 15 | 16 | syn match gitconfigComment "[#;].*" 17 | syn match gitconfigSection "\%(^\s*\)\@<=\[[a-z0-9.-]\+\]" 18 | syn match gitconfigSection '\%(^\s*\)\@<=\[[a-z0-9.-]\+ \+\"\%([^\\"]\|\\.\)*"\]' 19 | syn match gitconfigVariable "\%(^\s*\)\@<=\a\k*\%(\s*\%([=#;]\|$\)\)\@=" nextgroup=gitconfigAssignment skipwhite 20 | syn region gitconfigAssignment matchgroup=gitconfigNone start=+=\s*+ skip=+\\+ end=+\s*$+ contained contains=gitconfigBoolean,gitconfigNumber,gitConfigString,gitConfigEscape,gitConfigError,gitconfigComment keepend 21 | syn keyword gitconfigBoolean true false yes no contained 22 | syn match gitconfigNumber "\d\+" contained 23 | syn region gitconfigString matchgroup=gitconfigDelim start=+"+ skip=+\\+ end=+"+ matchgroup=gitconfigError end=+[^\\"]\%#\@!$+ contained contains=gitconfigEscape,gitconfigEscapeError 24 | syn match gitconfigError +\\.+ contained 25 | syn match gitconfigEscape +\\[\\"ntb]+ contained 26 | syn match gitconfigEscape +\\$+ contained 27 | 28 | hi def link gitconfigComment Comment 29 | hi def link gitconfigSection Keyword 30 | hi def link gitconfigVariable Identifier 31 | hi def link gitconfigBoolean Boolean 32 | hi def link gitconfigNumber Number 33 | hi def link gitconfigString String 34 | hi def link gitconfigDelim Delimiter 35 | hi def link gitconfigEscape Delimiter 36 | hi def link gitconfigError Error 37 | 38 | let b:current_syntax = "gitconfig" 39 | -------------------------------------------------------------------------------- /.vim/syntax/gitrebase.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: git rebase --interactive 3 | " Maintainer: Tim Pope 4 | " Filenames: git-rebase-todo 5 | " Last Change: 2008 Apr 16 6 | 7 | if exists("b:current_syntax") 8 | finish 9 | endif 10 | 11 | syn case match 12 | 13 | syn match gitrebaseHash "\v<\x{7,40}>" contained 14 | syn match gitrebaseCommit "\v<\x{7,40}>" nextgroup=gitrebaseSummary skipwhite 15 | syn match gitrebasePick "\v^p%(ick)=>" nextgroup=gitrebaseCommit skipwhite 16 | syn match gitrebaseEdit "\v^e%(dit)=>" nextgroup=gitrebaseCommit skipwhite 17 | syn match gitrebaseSquash "\v^s%(quash)=>" nextgroup=gitrebaseCommit skipwhite 18 | syn match gitrebaseSummary ".*" contains=gitrebaseHash contained 19 | syn match gitrebaseComment "^#.*" contains=gitrebaseHash 20 | syn match gitrebaseSquashError "\v%^s%(quash)=>" nextgroup=gitrebaseCommit skipwhite 21 | 22 | hi def link gitrebaseCommit gitrebaseHash 23 | hi def link gitrebaseHash Identifier 24 | hi def link gitrebasePick Statement 25 | hi def link gitrebaseEdit PreProc 26 | hi def link gitrebaseSquash Type 27 | hi def link gitrebaseSummary String 28 | hi def link gitrebaseComment Comment 29 | hi def link gitrebaseSquashError Error 30 | 31 | let b:current_syntax = "gitrebase" 32 | -------------------------------------------------------------------------------- /.vim/syntax/gitsendemail.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: git send-email message 3 | " Maintainer: Tim Pope 4 | " Filenames: *.msg.[0-9]* (first line is "From ... # This line is ignored.") 5 | " Last Change: 2007 Dec 16 6 | 7 | if exists("b:current_syntax") 8 | finish 9 | endif 10 | 11 | runtime! syntax/mail.vim 12 | syn case match 13 | 14 | syn match gitsendemailComment "\%^From.*#.*" 15 | syn match gitsendemailComment "^GIT:.*" 16 | 17 | hi def link gitsendemailComment Comment 18 | 19 | let b:current_syntax = "gitsendemail" 20 | -------------------------------------------------------------------------------- /.vim/syntax/html.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: HTML 3 | " Maintainer: Claudio Fleiner 4 | " URL: http://www.fleiner.com/vim/syntax/html.vim 5 | " Last Change: 2006 Jun 19 6 | 7 | " Please check :help html.vim for some comments and a description of the options 8 | 9 | " For version 5.x: Clear all syntax items 10 | " For version 6.x: Quit when a syntax file was already loaded 11 | if !exists("main_syntax") 12 | if version < 600 13 | syntax clear 14 | elseif exists("b:current_syntax") 15 | finish 16 | endif 17 | let main_syntax = 'html' 18 | endif 19 | 20 | " don't use standard HiLink, it will not work with included syntax files 21 | if version < 508 22 | command! -nargs=+ HtmlHiLink hi link 23 | else 24 | command! -nargs=+ HtmlHiLink hi def link 25 | endif 26 | 27 | syntax spell toplevel 28 | 29 | syn case ignore 30 | 31 | " mark illegal characters 32 | syn match htmlError "[<>&]" 33 | 34 | 35 | " tags 36 | syn region htmlString contained start=+"+ end=+"+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc 37 | syn region htmlString contained start=+'+ end=+'+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc 38 | syn match htmlValue contained "=[\t ]*[^'" \t>][^ \t>]*"hs=s+1 contains=javaScriptExpression,@htmlPreproc 39 | syn region htmlEndTag start=++ contains=htmlTagN,htmlTagError 40 | syn region htmlTag start=+<[^/]+ end=+>+ contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent,htmlCssDefinition,@htmlPreproc,@htmlArgCluster 41 | syn match htmlTagN contained +<\s*[-a-zA-Z0-9_]\++hs=s+1 contains=htmlTagName,htmlSpecialTagName,@htmlTagNameCluster 42 | syn match htmlTagN contained +]<"ms=s+1 44 | 45 | 46 | " tag names 47 | syn keyword htmlTagName contained address applet area a base basefont 48 | syn keyword htmlTagName contained big blockquote br caption center 49 | syn keyword htmlTagName contained cite code dd dfn dir div dl dt font 50 | syn keyword htmlTagName contained form hr html img 51 | syn keyword htmlTagName contained input isindex kbd li link map menu 52 | syn keyword htmlTagName contained meta ol option param pre p samp span 53 | syn keyword htmlTagName contained select small strike sub sup 54 | syn keyword htmlTagName contained table td textarea th tr tt ul var xmp 55 | syn match htmlTagName contained "\<\(b\|i\|u\|h[1-6]\|em\|strong\|head\|body\|title\)\>" 56 | 57 | " new html 4.0 tags 58 | syn keyword htmlTagName contained abbr acronym bdo button col label 59 | syn keyword htmlTagName contained colgroup del fieldset iframe ins legend 60 | syn keyword htmlTagName contained object optgroup q s tbody tfoot thead 61 | 62 | " legal arg names 63 | syn keyword htmlArg contained action 64 | syn keyword htmlArg contained align alink alt archive background bgcolor 65 | syn keyword htmlArg contained border bordercolor cellpadding 66 | syn keyword htmlArg contained cellspacing checked class clear code codebase color 67 | syn keyword htmlArg contained cols colspan content coords enctype face 68 | syn keyword htmlArg contained gutter height hspace id 69 | syn keyword htmlArg contained link lowsrc marginheight 70 | syn keyword htmlArg contained marginwidth maxlength method name prompt 71 | syn keyword htmlArg contained rel rev rows rowspan scrolling selected shape 72 | syn keyword htmlArg contained size src start target text type url 73 | syn keyword htmlArg contained usemap ismap valign value vlink vspace width wrap 74 | syn match htmlArg contained "\<\(http-equiv\|href\|title\)="me=e-1 75 | 76 | " Netscape extensions 77 | syn keyword htmlTagName contained frame noframes frameset nobr blink 78 | syn keyword htmlTagName contained layer ilayer nolayer spacer 79 | syn keyword htmlArg contained frameborder noresize pagex pagey above below 80 | syn keyword htmlArg contained left top visibility clip id noshade 81 | syn match htmlArg contained "\" 82 | 83 | " Microsoft extensions 84 | syn keyword htmlTagName contained marquee 85 | 86 | " html 4.0 arg names 87 | syn match htmlArg contained "\<\(accept-charset\|label\)\>" 88 | syn keyword htmlArg contained abbr accept accesskey axis char charoff charset 89 | syn keyword htmlArg contained cite classid codetype compact data datetime 90 | syn keyword htmlArg contained declare defer dir disabled for frame 91 | syn keyword htmlArg contained headers hreflang lang language longdesc 92 | syn keyword htmlArg contained multiple nohref nowrap object profile readonly 93 | syn keyword htmlArg contained rules scheme scope span standby style 94 | syn keyword htmlArg contained summary tabindex valuetype version 95 | 96 | " special characters 97 | syn match htmlSpecialChar "&#\=[0-9A-Za-z]\{1,8};" 98 | 99 | " Comments (the real ones or the old netscape ones) 100 | if exists("html_wrong_comments") 101 | syn region htmlComment start=++ contains=htmlPreStmt,htmlPreError,htmlPreAttr 111 | syn match htmlPreStmt contained "\)" 204 | syn region htmlCssDefinition matchgroup=htmlArg start='style="' keepend matchgroup=htmlString end='"' contains=css.*Attr,css.*Prop,cssComment,cssLength,cssColor,cssURL,cssImportant,cssError,cssString,@htmlPreproc 205 | HtmlHiLink htmlStyleArg htmlString 206 | endif 207 | 208 | if main_syntax == "html" 209 | " synchronizing (does not always work if a comment includes legal 210 | " html tags, but doing it right would mean to always start 211 | " at the first line, which is too slow) 212 | syn sync match htmlHighlight groupthere NONE "<[/a-zA-Z]" 213 | syn sync match htmlHighlight groupthere javaScript "= 508 || !exists("did_html_syn_inits") 220 | if version < 508 221 | let did_html_syn_inits = 1 222 | endif 223 | HtmlHiLink htmlTag Function 224 | HtmlHiLink htmlEndTag Identifier 225 | HtmlHiLink htmlArg Type 226 | HtmlHiLink htmlTagName htmlStatement 227 | HtmlHiLink htmlSpecialTagName Exception 228 | HtmlHiLink htmlValue String 229 | HtmlHiLink htmlSpecialChar Special 230 | 231 | if !exists("html_no_rendering") 232 | HtmlHiLink htmlH1 Title 233 | HtmlHiLink htmlH2 htmlH1 234 | HtmlHiLink htmlH3 htmlH2 235 | HtmlHiLink htmlH4 htmlH3 236 | HtmlHiLink htmlH5 htmlH4 237 | HtmlHiLink htmlH6 htmlH5 238 | HtmlHiLink htmlHead PreProc 239 | HtmlHiLink htmlTitle Title 240 | HtmlHiLink htmlBoldItalicUnderline htmlBoldUnderlineItalic 241 | HtmlHiLink htmlUnderlineBold htmlBoldUnderline 242 | HtmlHiLink htmlUnderlineItalicBold htmlBoldUnderlineItalic 243 | HtmlHiLink htmlUnderlineBoldItalic htmlBoldUnderlineItalic 244 | HtmlHiLink htmlItalicUnderline htmlUnderlineItalic 245 | HtmlHiLink htmlItalicBold htmlBoldItalic 246 | HtmlHiLink htmlItalicBoldUnderline htmlBoldUnderlineItalic 247 | HtmlHiLink htmlItalicUnderlineBold htmlBoldUnderlineItalic 248 | HtmlHiLink htmlLink Underlined 249 | if !exists("html_my_rendering") 250 | hi def htmlBold term=bold cterm=bold gui=bold 251 | hi def htmlBoldUnderline term=bold,underline cterm=bold,underline gui=bold,underline 252 | hi def htmlBoldItalic term=bold,italic cterm=bold,italic gui=bold,italic 253 | hi def htmlBoldUnderlineItalic term=bold,italic,underline cterm=bold,italic,underline gui=bold,italic,underline 254 | hi def htmlUnderline term=underline cterm=underline gui=underline 255 | hi def htmlUnderlineItalic term=italic,underline cterm=italic,underline gui=italic,underline 256 | hi def htmlItalic term=italic cterm=italic gui=italic 257 | endif 258 | endif 259 | 260 | HtmlHiLink htmlPreStmt PreProc 261 | HtmlHiLink htmlPreError Error 262 | HtmlHiLink htmlPreProc PreProc 263 | HtmlHiLink htmlPreAttr String 264 | HtmlHiLink htmlPreProcAttrName PreProc 265 | HtmlHiLink htmlPreProcAttrError Error 266 | HtmlHiLink htmlSpecial Special 267 | HtmlHiLink htmlSpecialChar Special 268 | HtmlHiLink htmlString String 269 | HtmlHiLink htmlStatement Statement 270 | HtmlHiLink htmlComment Comment 271 | HtmlHiLink htmlCommentPart Comment 272 | HtmlHiLink htmlValue String 273 | HtmlHiLink htmlCommentError htmlError 274 | HtmlHiLink htmlTagError htmlError 275 | HtmlHiLink htmlEvent javaScript 276 | HtmlHiLink htmlError Error 277 | 278 | HtmlHiLink javaScript Special 279 | HtmlHiLink javaScriptExpression javaScript 280 | HtmlHiLink htmlCssStyleComment Comment 281 | HtmlHiLink htmlCssDefinition Special 282 | endif 283 | 284 | delcommand HtmlHiLink 285 | 286 | let b:current_syntax = "html" 287 | 288 | if main_syntax == 'html' 289 | unlet main_syntax 290 | endif 291 | 292 | " vim: ts=8 293 | -------------------------------------------------------------------------------- /.vim/syntax/mkd.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: Markdown 3 | " Maintainer: Ben Williams 4 | " URL: http://plasticboy.com/markdown-vim-mode/ 5 | " Version: 9 6 | " Last Change: 2009 May 18 7 | " Remark: Uses HTML syntax file 8 | " Remark: I don't do anything with angle brackets (<>) because that would too easily 9 | " easily conflict with HTML syntax 10 | " TODO: Handle stuff contained within stuff (e.g. headings within blockquotes) 11 | 12 | 13 | " Read the HTML syntax to start with 14 | if version < 600 15 | so :p:h/html.vim 16 | else 17 | runtime! syntax/html.vim 18 | unlet b:current_syntax 19 | endif 20 | 21 | if version < 600 22 | syntax clear 23 | elseif exists("b:current_syntax") 24 | finish 25 | endif 26 | 27 | " don't use standard HiLink, it will not work with included syntax files 28 | if version < 508 29 | command! -nargs=+ HtmlHiLink hi link 30 | else 31 | command! -nargs=+ HtmlHiLink hi def link 32 | endif 33 | 34 | syn spell toplevel 35 | syn case ignore 36 | syn sync linebreaks=1 37 | 38 | "additions to HTML groups 39 | syn region htmlBold start=/\\\@/ contains=htmlBold,@Spell 41 | 42 | " [link](URL) | [link][id] | [link][] 43 | syn region mkdLink matchgroup=mkdDelimiter start="\!\?\[" end="\]\ze\s*[[(]" contains=@Spell nextgroup=mkdURL,mkdID skipwhite oneline 44 | syn region mkdID matchgroup=mkdDelimiter start="\[" end="\]" contained 45 | syn region mkdURL matchgroup=mkdDelimiter start="(" end=")" contained 46 | 47 | " Link definitions: [id]: URL (Optional Title) 48 | " TODO handle automatic links without colliding with htmlTag () 49 | syn region mkdLinkDef matchgroup=mkdDelimiter start="^ \{,3}\zs\[" end="]:" oneline nextgroup=mkdLinkDefTarget skipwhite 50 | syn region mkdLinkDefTarget start="<\?\zs\S" excludenl end="\ze[>[:space:]\n]" contained nextgroup=mkdLinkTitle,mkdLinkDef skipwhite skipnl oneline 51 | syn region mkdLinkTitle matchgroup=mkdDelimiter start=+"+ end=+"+ contained 52 | syn region mkdLinkTitle matchgroup=mkdDelimiter start=+'+ end=+'+ contained 53 | syn region mkdLinkTitle matchgroup=mkdDelimiter start=+(+ end=+)+ contained 54 | 55 | "define Markdown groups 56 | syn match mkdLineContinue ".$" contained 57 | syn match mkdRule /^\s*\*\s\{0,1}\*\s\{0,1}\*$/ 58 | syn match mkdRule /^\s*-\s\{0,1}-\s\{0,1}-$/ 59 | syn match mkdRule /^\s*_\s\{0,1}_\s\{0,1}_$/ 60 | syn match mkdRule /^\s*-\{3,}$/ 61 | syn match mkdRule /^\s*\*\{3,5}$/ 62 | syn match mkdListItem "^\s*[-*+]\s\+" 63 | syn match mkdListItem "^\s*\d\+\.\s\+" 64 | syn match mkdCode /^\s*\n\(\(\s\{4,}[^ ]\|\t\+[^\t]\).*\n\)\+/ 65 | syn match mkdLineBreak / \+$/ 66 | syn region mkdCode start=/\\\@/ end=/$/ contains=mkdLineBreak,mkdLineContinue,@Spell 69 | syn region mkdCode start="]*>" end="" 70 | syn region mkdCode start="]*>" end="" 71 | 72 | "HTML headings 73 | syn region htmlH1 start="^\s*#" end="\($\|#\+\)" contains=@Spell 74 | syn region htmlH2 start="^\s*##" end="\($\|#\+\)" contains=@Spell 75 | syn region htmlH3 start="^\s*###" end="\($\|#\+\)" contains=@Spell 76 | syn region htmlH4 start="^\s*####" end="\($\|#\+\)" contains=@Spell 77 | syn region htmlH5 start="^\s*#####" end="\($\|#\+\)" contains=@Spell 78 | syn region htmlH6 start="^\s*######" end="\($\|#\+\)" contains=@Spell 79 | syn match htmlH1 /^.\+\n=\+$/ contains=@Spell 80 | syn match htmlH2 /^.\+\n-\+$/ contains=@Spell 81 | 82 | "highlighting for Markdown groups 83 | HtmlHiLink mkdString String 84 | HtmlHiLink mkdCode String 85 | HtmlHiLink mkdBlockquote Comment 86 | HtmlHiLink mkdLineContinue Comment 87 | HtmlHiLink mkdListItem Identifier 88 | HtmlHiLink mkdRule Identifier 89 | HtmlHiLink mkdLineBreak Todo 90 | HtmlHiLink mkdLink htmlLink 91 | HtmlHiLink mkdURL htmlString 92 | HtmlHiLink mkdID Identifier 93 | HtmlHiLink mkdLinkDef mkdID 94 | HtmlHiLink mkdLinkDefTarget mkdURL 95 | HtmlHiLink mkdLinkTitle htmlString 96 | 97 | HtmlHiLink mkdDelimiter Delimiter 98 | 99 | let b:current_syntax = "mkd" 100 | 101 | delcommand HtmlHiLink 102 | " vim: ts=8 103 | -------------------------------------------------------------------------------- /.vim/syntax/netrw.vim: -------------------------------------------------------------------------------- 1 | " Language : Netrw Remote-Directory Listing Syntax 2 | " Maintainer : Charles E. Campbell, Jr. 3 | " Last change: Jan 13, 2009 4 | " Version : 15 5 | " --------------------------------------------------------------------- 6 | 7 | " Syntax Clearing: {{{1 8 | if version < 600 9 | syntax clear 10 | elseif exists("b:current_syntax") 11 | finish 12 | endif 13 | 14 | " --------------------------------------------------------------------- 15 | " Directory List Syntax Highlighting: {{{1 16 | syn cluster NetrwGroup contains=netrwHide,netrwSortBy,netrwSortSeq,netrwQuickHelp,netrwVersion,netrwCopyTgt 17 | syn cluster NetrwTreeGroup contains=netrwDir,netrwSymLink,netrwExe 18 | 19 | syn match netrwPlain "\(\S\+ \)*\S\+" contains=@NoSpell 20 | syn match netrwSpecial "\%(\S\+ \)*\S\+[*|=]\ze\%(\s\{2,}\|$\)" contains=netrwClassify,@NoSpell 21 | syn match netrwDir "\.\{1,2}/" contains=netrwClassify,@NoSpell 22 | syn match netrwDir "\%(\S\+ \)*\S\+/" contains=netrwClassify,@NoSpell 23 | syn match netrwSizeDate "\<\d\+\s\d\{1,2}/\d\{1,2}/\d\{4}\s" skipwhite contains=netrwDateSep,@NoSpell nextgroup=netrwTime 24 | syn match netrwSymLink "\%(\S\+ \)*\S\+@\ze\%(\s\{2,}\|$\)" contains=netrwClassify,@NoSpell 25 | syn match netrwExe "\%(\S\+ \)*\S\+\*\ze\%(\s\{2,}\|$\)" contains=netrwClassify,@NoSpell 26 | syn match netrwTreeBar "^\%([-+|] \)*" contains=netrwTreeBarSpace nextgroup=@netrwTreeGroup 27 | syn match netrwTreeBarSpace " " contained 28 | 29 | syn match netrwClassify "[*=|@/]\ze\%(\s\{2,}\|$\)" contained 30 | syn match netrwDateSep "/" contained 31 | syn match netrwTime "\d\{1,2}:\d\{2}:\d\{2}" contained contains=netrwTimeSep 32 | syn match netrwTimeSep ":" 33 | 34 | syn match netrwComment '".*\%(\t\|$\)' contains=@NetrwGroup,@NoSpell 35 | syn match netrwHide '^"\s*\(Hid\|Show\)ing:' skipwhite contains=@NoSpell nextgroup=netrwHidePat 36 | syn match netrwSlash "/" contained 37 | syn match netrwHidePat "[^,]\+" contained skipwhite contains=@NoSpell nextgroup=netrwHideSep 38 | syn match netrwHideSep "," contained skipwhite nextgroup=netrwHidePat 39 | syn match netrwSortBy "Sorted by" contained transparent skipwhite nextgroup=netrwList 40 | syn match netrwSortSeq "Sort sequence:" contained transparent skipwhite nextgroup=netrwList 41 | syn match netrwCopyTgt "Copy/Move Tgt:" contained transparent skipwhite nextgroup=netrwList 42 | syn match netrwList ".*$" contained contains=netrwComma,@NoSpell 43 | syn match netrwComma "," contained 44 | syn region netrwQuickHelp matchgroup=Comment start="Quick Help:\s\+" end="$" contains=netrwHelpCmd,@NoSpell keepend contained 45 | syn match netrwHelpCmd "\S\ze:" contained skipwhite contains=@NoSpell nextgroup=netrwCmdSep 46 | syn match netrwCmdSep ":" contained nextgroup=netrwCmdNote 47 | syn match netrwCmdNote ".\{-}\ze " contained contains=@NoSpell 48 | syn match netrwVersion "(netrw.*)" contained contains=@NoSpell 49 | 50 | " ----------------------------- 51 | " Special filetype highlighting {{{1 52 | " ----------------------------- 53 | if exists("g:netrw_special_syntax") && netrw_special_syntax 54 | syn match netrwBak "\(\S\+ \)*\S\+\.bak\>" contains=netrwTreeBar,@NoSpell 55 | syn match netrwCompress "\(\S\+ \)*\S\+\.\%(gz\|bz2\|Z\|zip\)\>" contains=netrwTreeBar,@NoSpell 56 | if has("unix") 57 | syn match netrwCoreDump "\" contains=netrwTreeBar,@NoSpell 58 | endif 59 | syn match netrwData "\(\S\+ \)*\S\+\.dat\>" contains=netrwTreeBar,@NoSpell 60 | syn match netrwHdr "\(\S\+ \)*\S\+\.h\>" contains=netrwTreeBar,@NoSpell 61 | syn match netrwLib "\(\S\+ \)*\S*\.\%(a\|so\|lib\|dll\)\>" contains=netrwTreeBar,@NoSpell 62 | syn match netrwMakeFile "\<[mM]akefile\>\|\(\S\+ \)*\S\+\.mak\>" contains=netrwTreeBar,@NoSpell 63 | syn match netrwObj "\(\S\+ \)*\S*\.\%(o\|obj\)\>" contains=netrwTreeBar,@NoSpell 64 | syn match netrwTags "\" contains=netrwTreeBar,@NoSpell 65 | syn match netrwTags "\<\(ANmenu\|ANtags\)\>" contains=netrwTreeBar,@NoSpell 66 | syn match netrwTilde "\(\S\+ \)*\S\+\~\>" contains=netrwTreeBar,@NoSpell 67 | syn match netrwTmp "\\|\(\S\+ \)*\S*tmp\>" contains=netrwTreeBar,@NoSpell 68 | endif 69 | 70 | " --------------------------------------------------------------------- 71 | " Highlighting Links: {{{1 72 | if !exists("did_drchip_netrwlist_syntax") 73 | let did_drchip_netrwlist_syntax= 1 74 | hi default link netrwClassify Function 75 | hi default link netrwCmdSep Delimiter 76 | hi default link netrwComment Comment 77 | hi default link netrwDir Directory 78 | hi default link netrwHelpCmd Function 79 | hi default link netrwHidePat Statement 80 | hi default link netrwHideSep netrwComment 81 | hi default link netrwList Statement 82 | hi default link netrwVersion Identifier 83 | hi default link netrwSymLink Question 84 | hi default link netrwExe PreProc 85 | hi default link netrwDateSep Delimiter 86 | 87 | hi default link netrwTreeBar Special 88 | hi default link netrwTimeSep netrwDateSep 89 | hi default link netrwComma netrwComment 90 | hi default link netrwHide netrwComment 91 | hi default link netrwMarkFile Identifier 92 | 93 | " special syntax highlighting (see :he g:netrw_special_syntax) 94 | hi default link netrwBak NonText 95 | hi default link netrwCompress Folded 96 | hi default link netrwCoreDump WarningMsg 97 | hi default link netrwData DiffChange 98 | hi default link netrwLib DiffChange 99 | hi default link netrwMakefile DiffChange 100 | hi default link netrwObj Folded 101 | hi default link netrwTilde Folded 102 | hi default link netrwTmp Folded 103 | hi default link netrwTags Folded 104 | endif 105 | 106 | " Current Syntax: {{{1 107 | let b:current_syntax = "netrwlist" 108 | " --------------------------------------------------------------------- 109 | " vim: ts=8 fdm=marker 110 | -------------------------------------------------------------------------------- /.vim/xterm16-2.43/ChangeLog: -------------------------------------------------------------------------------- 1 | # ChangeLog for xterm16.vim 2 | xterm16-2.43 3 | 2006-09-12 Gautam Iyer 4 | - Added highlighting groups for the Tab line (thanks to Paddy Newman). 5 | 6 | xterm16-2.42 7 | 2006-05-18 Gautam Iyer 8 | - Removed "tags" file from distribution (duh) (Thanks to Suresh 9 | Govindachar / "cga2000" for pointing it out). 10 | - Glaring error in documentation: Old version asked you to set t_Co=16 11 | instead of 256 (thanks to Zdenek Sekera for pointing it out). 12 | - Minor highlighting group bug fixes. 13 | 14 | xterm16-2.41 15 | 2006-04-16 Gautam Iyer 16 | - Forgot to add highlighting groups for 'cursorrow' and 'cursorcollumn' in 17 | some color maps. Thanks to Georg Dahn for pointing this out. 18 | 19 | - In the all blue colormap, Comment and Identifier were similar colors. 20 | This is especially bad in perl programs say. Changed it so that no other 21 | color is similar to Comment, thus comments can easily be found. 22 | 23 | xterm16-2.4 24 | 2006-04-03 Gautam Iyer 25 | - Added an "allblue" colormap: This makes most foreground colors a shade 26 | of blue for least eyestrain. 27 | 28 | - Added a "softlight" colormap: This has a white background for web 29 | hosting / etc. 30 | 31 | - Added extra highlighting groups from Vim-7 (is still backward compatible 32 | to Vim-6.4) 33 | 34 | xterm16-2.2 35 | 2005-05-26 Gautam Iyer 36 | - Added mrxvt and rxvt 256 color support (options xterm16_termtype and 37 | xterm16_ccube). 38 | 39 | - Added the program rgb_level to get the intensities of a uniform rgbi 40 | color cube and a patch to set the mrxvt color cube. 41 | 42 | - Allowed xterm16bg_Group & xterm16fg_Group to contain color names (from 43 | this colorscheme). Thus setting xterm16bg_Normal='none' gives 44 | transparency in mrxvt :) 45 | 46 | - A trivial perl script to generate a custom terminal 6x6x6 color cube, 47 | the Xresources file from xterm16_palette, and CSS files for web hosting. 48 | 49 | - Few minor color modifications to the soft colormap. 50 | -------------------------------------------------------------------------------- /.vim/xterm16-2.43/cpalette.pl: -------------------------------------------------------------------------------- 1 | #! /usr/bin/perl -w 2 | # Prints resources for the color cube. By default use the color cube from 3 | # xterm with resource class mrxvt 4 | 5 | 6 | use strict; 7 | use Getopt::Long qw(:config no_ignore_case bundling); 8 | use Term::ANSIColor qw(:constants); 9 | 10 | my $help = 1; 11 | my $class = 'mrxvt'; 12 | my $ccube = '005f87afd7ff'; 13 | my $xdefaults = 0; 14 | my $genccube = 0; 15 | my $sfile; 16 | 17 | my ($r, $g, $b); 18 | my ($BD, $IT, $UL, $RE) = (RESET.CYAN, RESET.YELLOW, RESET.GREEN, RESET); 19 | 20 | GetOptions( 21 | "help|h" => \$help, 22 | "class|c=s" => \$class, 23 | "ccube|C=s" => \$ccube, 24 | "generate-ccube|g" => \$genccube, 25 | "xdefaults|x" => \$xdefaults, 26 | "substitute|s=s" => \$sfile 27 | ) or die; 28 | 29 | if( $xdefaults) { 30 | # Generate xdefaults 31 | my $i=0; 32 | while(<>) { 33 | print "$class.color", $i++, ":\t$&\n" if( m/^\#[0-9a-f]{6}/); 34 | } 35 | 36 | if( $i > 16 ) 37 | { 38 | print STDERR RED, "Too many colors! Try using the standard colormap\n", 39 | RESET 40 | } 41 | } elsif( $genccube) { 42 | # Generate 6x6x6 color cube 43 | print STDERR GREEN, "Using resource class $class, and color cube $ccube\n", RESET; 44 | 45 | for( $r=0; $r < 6; $r++) { 46 | for( $g=0; $g < 6; $g++) { 47 | for( $b=0; $b < 6; $b++) { 48 | print( "$class.color", $r*36 + $g*6 + $b + 16, ":\t#", 49 | guilevel($r), guilevel( $g), guilevel( $b), "\n"); 50 | } 51 | } 52 | } 53 | } elsif( defined( $sfile)) { 54 | # Substitute all occurence of cname with the hex value 55 | my ($stext, $cname, $cval); 56 | 57 | open( SFILE, "<$sfile") || die "Unable to open $sfile\n"; 58 | $stext = join( '', ); 59 | close( SFILE); 60 | 61 | while( <>) { 62 | if( m/^\s*(#[0-9a-fA-F]{6}),\s+cterm \d+\s+: (\w+)\s*$/) { 63 | ($cval, $cname) = ($1, $2); 64 | $stext =~ s/\b$cname\b/$cval/g; 65 | } 66 | } 67 | print $stext; 68 | } else { 69 | # Print help 70 | print << "EOH" ; 71 | ${BD}cpalette.pl${RE} - Do something usefull with the xterm16_palette 72 | 73 | ${BD}cpalette.pl${RE} ${UL}-h${RE} 74 | ${BD}cpalette.pl${RE} [${UL}--class${RE} ${IT}class${RE}] ${UL}-x${RE} < ${IT}xterm16_palette${RE} 75 | ${BD}cpalette.pl${RE} [${UL}--class${RE} ${IT}class${RE}] [${UL}-C${RE} ${IT}ccube${RE}] $UL-g$RE 76 | ${BD}cpalette.pl${RE} ${UL}-s${RE} ${IT}file${RE} < ${IT}xterm16_palette${RE} 77 | 78 | ${BD}DESCRIPTION${RE} 79 | $UL-C$RE ${IT}ccube$RE, $UL--ccube$RE ${IT}ccube$RE 80 | Specify the intensities of the 6x6x6 color cube. ${IT}ccube$RE is a 12 digit 81 | hex string. The first two digits are the 0th intensity. The next two 82 | the 1st intensity etc. The default is to use the same color cube xterm 83 | uses. 84 | 85 | $UL-c$RE ${IT}class$RE, $UL--class$RE ${IT}class$RE 86 | Use ${IT}class$RE as the resource class for your xdefaults (default mrxvt). 87 | 88 | $UL-g$RE,$UL--generate-ccube$RE 89 | Generate a resource file to set colors 16 - 231 in a terminal (the RGB 90 | color cube). Specify the intensities using $UL-C$RE and the resource class 91 | using $UL-c$RE. 92 | 93 | $UL-h$RE,$UL--help$RE 94 | Print this help 95 | 96 | $UL-s$RE ${IT}file$RE, $UL--substitute$RE ${IT}file$RE 97 | Substitutes all occurences of the colorname in ${IT}file$RE with the hex value 98 | from the palette. You must supply the palette in stdin. The result is 99 | written to stdout. 100 | 101 | $UL-x$RE, $UL--xdefaults$RE 102 | Make xdefaults file. You should supply the resource class using -c and 103 | the palette on stdin. Result is written to stdout. 104 | EOH 105 | } 106 | 107 | sub guilevel { 108 | my $trmlevel = shift; 109 | return substr( $ccube, $trmlevel*2, 2); 110 | } 111 | -------------------------------------------------------------------------------- /.vim/xterm16-2.43/xterm16.ct: -------------------------------------------------------------------------------- 1 | #! /usr/local/bin/ctheme 2 | #xterm16 (CRTColors, default brightness) 3 | set { 4 | 0 000000 5 | 1 cd0000 6 | 2 00cd00 7 | 3 cdcd00 8 | 4 0000ff 9 | 5 cd00cd 10 | 6 00cdcd 11 | 7 c0c0c0 12 | 8 808080 13 | 9 ff0000 14 | a 00ff00 15 | b ffff00 16 | c 007fff 17 | d ff00ff 18 | e 00ffff 19 | f ffffff 20 | } 21 | -------------------------------------------------------------------------------- /.vim/xterm16-2.43/xterm16.schema: -------------------------------------------------------------------------------- 1 | # schema for konsole autogenerated with the schema editor 2 | 3 | title Xterm16 4 | 5 | 6 | # foreground colors 7 | 8 | # note that the default background color is flagged 9 | # to become transparent when an image is present. 10 | 11 | # slot transparent bold 12 | # | red grn blu | | 13 | # V V--color--V V V 14 | color 0 205 205 205 0 0 # 0 - Foreground Color 15 | color 1 0 0 0 0 0 # 1 - Background Color 16 | color 2 0 0 0 0 0 # 2 - Color 0 (black) 17 | color 3 205 0 0 0 0 # 3 - Color 1 (red) 18 | color 4 0 205 0 0 0 # 4 - Color 2 (green) 19 | color 5 205 205 0 0 0 # 5 - Color 3 (yellow) 20 | color 6 0 0 255 0 0 # 6 - Color 4 (blue) 21 | color 7 205 0 205 0 0 # 7 - Color 5 (magenta) 22 | color 8 0 205 205 0 0 # 8 - Color 6 (cyan) 23 | color 9 192 192 192 0 0 # 9 - Color 7 (white) 24 | color 10 255 255 255 0 0 # 10 - Foreground Intensive Color 25 | color 11 128 128 128 1 0 # 11 - Background Intensive Color 26 | color 12 128 128 128 0 0 # 12 - Color 0 Intensive (gray) 27 | color 13 255 0 0 0 0 # 13 - Color 1 Intensive (light red) 28 | color 14 0 255 0 0 0 # 14 - Color 2 Intensive (light green) 29 | color 15 255 255 0 0 0 # 15 - Color 3 Intensive (light yellow) 30 | color 16 0 127 255 0 0 # 16 - Color 4 Intensive (light blue) 31 | color 17 255 0 255 0 0 # 17 - Color 5 Intensive (light magenta) 32 | color 18 0 255 255 0 0 # 18 - Color 6 Intensive (light cyan) 33 | color 19 255 255 255 0 0 # 19 - Color 7 Intensive (white) 34 | -------------------------------------------------------------------------------- /.vim/xterm16-2.43/xterm16.txt: -------------------------------------------------------------------------------- 1 | *xterm16* An adjustable contrast color scheme for GUI & Terminals. 2 | 3 | DESCRIPTION *xterm16.vim* 4 | An adjustable contrast fully customizable color scheme for GUI & 8, 16 or 5 | 256 color terminals, designed to minimize eyestrain. The main features 6 | are: 7 | 8 | - Four color maps: 9 | 'allblue' : A colormap with most foreground colors blueish (to 10 | minimize contrast etc.) 11 | 'soft' : A colormap with foreground colors of similar 12 | intensities to reduce eyestrain. 13 | 'softlight' : A colormap with a bright background (for web 14 | hosting etc.) 15 | 'standard' : A colormap for use on terminals with only 8/16 16 | colors. 17 | The first three colormaps will work only on 256 color capable 18 | terminals or the GUI. The last one will work anywhere. 19 | 20 | - Adjustable brightness / contrast. Lets you easily adjust the 21 | brightness and contrast settings. Extremely useful (for instance) 22 | when there is a glare on your monitor, or for long late dim light 23 | dim light late at night :) 24 | 25 | - Terminal and GUI support. If you use xterm, rxvt or mrxvt (compiled 26 | with 256 colors), then the colors on your terminal will be almost 27 | identical to your GUI colors. On any other terminal emulator, a few 28 | scripts (included) and parts of this help are designed to help you 29 | get the colors you want. 30 | 31 | - LCD / CRT Monitor support. The color response of LCD and CRT 32 | monitors is pretty different. This color scheme has an option to 33 | adjust colors on CRT monitors to give a similar appearance. 34 | 35 | - Customizable colors. If you find any color unreadable or ugly, you 36 | can change it easily. When adjusting the brightness, your custom 37 | colors will be suitably adjusted too! 38 | 39 | - Customizable highlighting groups. If you don't like the highlighting 40 | of any particular group, you can change it to suit your needs. This 41 | is useful for instance if you want the cursor to be brighter than 42 | everything else / etc. 43 | 44 | INSTALLATION *xterm16-installation* 45 | For local installation, put the |xterm16.vim| file in your ~/.vim/colors 46 | directory. To install globally put it in $VIMRUNTIME/colors. Finally add 47 | the following lines to your {.vimrc}: > 48 | 49 | " Select colormap: 'soft', 'softlight', 'standard' or 'allblue' 50 | let xterm16_colormap = 'allblue' 51 | 52 | " Select brightness: 'low', 'med', 'high', 'default' or custom levels. 53 | let xterm16_brightness = 'default' 54 | 55 | colo xterm16 56 | 57 | < You might also want to put |xterm16.txt| in the help directory (~/.vim/doc 58 | or $VIMRUNTIME/doc). 59 | 60 | OPTIONS *xterm16-options* 61 | 62 | Colormap, brightness and contrast options: ~ 63 | |xterm16_brightness| : Set the brightness / contrast 64 | |xterm16_colormap| : Select the colormap (standard / soft) 65 | |:Brightness| : Adjust the brightness / contrast and or colormap 66 | 67 | Customizing colors or highlighting: ~ 68 | |xterm16_custom_color| : Customize some (or all) colors. 69 | |xterm16_custom_group| : Customize some (or all) highlighting groups. 70 | |xterm16_CRTColors| : Setup defaults for CRT monitors. 71 | |xterm16_NoHtmlColors| : Disable remapping of html colors. 72 | |xterm16_example| : An example of these options :) 73 | 74 | Adjusting colors on terminals: ~ 75 | |xterm16_trmcolors| : A short HOWTO to help you get the same colors on 76 | the terminal and GUI. 77 | 78 | Options controlling colors on terminals: ~ 79 | |xterm16_termtype| : Select the terminal emulator (xterm, rxvt) 80 | |xterm16_ccube| : Specify the color cube of the terminal. 81 | |xterm16_NoRemap| : Disable dark blue remapping on 8 color terminals 82 | |xterm16_TermRegexp| : Regexp of terminals where darkblue is unreadable 83 | 84 | PACKAGE CONTENTS *xterm16_filelist* 85 | 86 | |changelog.txt| : List of changes 87 | |cpalette.pl| : Perl script to help you set colors in rxvt/xterm etc 88 | |xterm16.ct| : Help change colors on Linux console. 89 | |xterm16.schema| : Help change colors on KDE's terminal (Konsole). 90 | |xterm16.txt| : This help file 91 | |xterm16.vim| : Actual color scheme script 92 | 93 | ------------------------------------------------------------------------------ 94 | ADJUSTING THE BRIGHTNESS OR CONTRAST *xterm16_brightness* 95 | 96 | The brightness and contrast are controlled by the global variable 97 | |xterm16_brightness|. This color scheme uses three different color 98 | intensities: {low}, {medium} and {high}. These intensities are used 99 | differently in each of the colormaps. See the |xterm16_colormap| section 100 | for an explanation of how these intensities are used. 101 | 102 | The brightness / contrast can be controlled by changing these intensities. 103 | You can do this by setting the global variable |xterm16_brightness|, using 104 | any of the following formats: > 105 | 106 | let xterm16_brightness = '#llmmhh' 107 | let xterm16_brightness = 'lmh' 108 | let xterm16_brightness = 'low|default|med|high' 109 | 110 | < In the first format, 'll' 'mm' and 'hh' are the intensities (2 digit hex) 111 | of the {low}, {medium} and {high} levels respectively. In the second 112 | format 'l', 'm' and 'h' are numbers from 0 - 5 specifying the respective 113 | intensities. This corresponds to the levels in the 6x6x6 color cube used 114 | by a 256 color terminals. The final format selects either a low, medium or 115 | high brightness respectively. These are different depending on the 116 | colormap you are using. In the 'allblue' colormap they are '123' 117 | (#5f87af), '234' (#87afd7) and '345' (#afd7ff) respectively. 118 | 119 | *:Brightness* 120 | You can change the brightness (and optionally the colormap) by using the 121 | command > 122 | 123 | :Brightness [colormap] 124 | 125 | < This is convenient if you want to try out / temporarily change the 126 | brightness or colormap. Once you find a brightness / colormap you like, 127 | set the global variables |xterm16_brightness| and |xterm16_colormap| in 128 | your {.vimrc}. 129 | 130 | CHANGING THE COLORMAP *xterm16_colormap* 131 | 132 | This color scheme comes with four different color maps: 'standard', 133 | 'soft', 'softlight' and 'allblue'. My preference is to use 'allblue' by 134 | default, 'softlight' when there is a glare on my screen, and 'standard' 135 | when I use a terminal with only 8/16 colors (e.g. when I ssh using Putty). 136 | 137 | You can select your colormap by setting the global variable 138 | |xterm16_colormap|. The default is to use the 'allblue' colormap if 139 | possible (in GUI or a terminal supporting 256 colors) and the 'standard' 140 | colormap otherwise. 141 | 142 | The 'standard' colormap uses 8 standard colors (of {medium} intensity), 143 | and the same colors of {high} intensity. Dark grey is of {low} intensity. 144 | 145 | The 'soft' colormap is designed so that all foreground colors appear to be 146 | of similar intensity (to reduce the strain on your eyes). We do this as 147 | follows: The {low} intensity is used for background colors. Some colors 148 | (like green for instance) appear a lot brighter than other colors (like 149 | blue). So we use the {medium} intensity for greenish colors and the {high} 150 | intensity for blueish colors. See |xterm16_brightness| for how to adjust 151 | these intensities to your taste. 152 | 153 | The 'softlight' colormap is designed to be readable on a bright 154 | background. It uses {low}, {medium} and {high} intensities in the same way 155 | as the 'soft' colormap. The {low} levels still represent backgrounds, so 156 | you might want to set it to some high number. For example, setting {low} 157 | to 4, {medium} to 1 and {high} to 2 in the 'softlight' colormap produces 158 | reasonable results. 159 | 160 | Finally the 'allblue' colormap is designed to that almost all colors are 161 | blueish. I have found this to be least strain on the eyes, while still 162 | being able to tell apart different syntax elements. In this colormap the 163 | {low} is again used for background color levels. The {medium} is the 164 | lowest (non-zero) intensity you want foreground colors, and {high} is the 165 | highest intensity you want foreground colors. For example setting the 166 | {low}, {medium} and {high} levels to 1, 1 and 3 produces reasonable (dark) 167 | results. 168 | 169 | NOTE: By default this color scheme is designed for LCD monitors. If you 170 | have a CRT monitor, see |xterm16_CRTColors| for how to adjust the colors 171 | to suit CRT monitors. 172 | 173 | NOTE: On terminals WITHOUT 256 colors, you can only use the 'standard' 174 | colormap. The reason for this is because the 'soft', and 'allblue' color 175 | maps have a few unreadable dark colors (used as backgrounds), and possibly 176 | use more than 16 colors in total. If you change your terminal palette to 177 | that of the 'soft' or 'allblue' colormap, then you'll have trouble reading 178 | text in non-Vim applications. If you want to use the 'soft' or 'allblue' 179 | colormaps (as I recommend), either use a terminal supporting 256 colors 180 | (xterm, rxvt, mrxvt), or modify the source :) 181 | 182 | ------------------------------------------------------------------------------ 183 | CUSTOMIZING COLORS *xterm16_custom_color* 184 | 185 | Different monitors show colors differently. All colors of this color 186 | scheme are readable on my monitor. However if you have trouble with some 187 | colors, you can change them by setting the variable |xterm16_colorname|. 188 | The color names used are different on each colormap. The 'standard' 189 | colormap uses the colors: > 190 | 191 | none black darkred darkgreen darkyellow darkblue darkmagenta darkcyan 192 | grey darkgrey red green yellow blue magenta cyan white 193 | 194 | < The 'soft' and 'softlight' colormaps use the colors: > 195 | 196 | black darkred darkyellow darkcyan darkblue darkgrey grey lightgrey red 197 | lightbrown yellow green bluegreen skyblue magenta cyan purple white 198 | 199 | < The 'allblue' colormap uses the colors: > 200 | 201 | black darkred darkcyan darkblue grey1 grey2 grey3 grey4 grey5 grey 202 | white1 red lightbrown yellow dirtygreen green bluegreen yellowgreen 203 | skyblue lightblue lightcyan darkpurple purple lightpurple 204 | 205 | < (I know this looks like a lot of colors for a colormap that calls itself 206 | 'allblue'. The point is that the colors that usually show up in regular 207 | text / code are all shades of blue (except "Type" and "Special", which are 208 | shades of green). So most code will look pretty much blueish. But error 209 | messages and other vim niceties will be in other colors.) 210 | 211 | The format of this variable is one of > 212 | 213 | let xterm16_blue = '#rrggbb' 214 | let xterm16_blue = 'nnn' 215 | let xterm16_blue = 'Ldddddd' 216 | 217 | < The first format specifies the red / green / blue intensities in two digit 218 | hex. The second format specifies the red / green / blue intensities as a 219 | level between 0-5 number. (This is like specifying the color in a 6x6x6 220 | RGB cube, as used by a 256 color terminals). 221 | 222 | Finally the most useful format is the 'Ldddddd'. Here 'L' is the intensity 223 | level (either 'l', 'm' or 'h' for low medium or high respectively). The 224 | first two digits 'dd' are HALF the percentage intensity of the red 225 | intensity. The second two, green and last two blue. So for instance 226 | 'm005035' corresponds to a color with no red component, a green component 227 | equal to the 'medium' intensity level, and a blue component that is 70% of 228 | the 'medium' intensity level. 229 | 230 | The advantage is that when you change the brightness / contrast, this 231 | color will change accordingly. See |xterm16_example| for an example. 232 | 233 | NOTE: If you set the variable |xterm16_CRTColors| then some of your 234 | default colors will be overridden. If you want to use your custom colors, 235 | and the CRT settings, first set |xterm16_CRTColors| and load this color 236 | scheme. The global variables 'xterm16_colorname' will be set for all 237 | modified colors. Now unset |xterm16_CRTColors|, copy these colors into 238 | your vimrc, and modify any other color you like as desired. 239 | 240 | CUSTOMIZING HIGHLIGHTING GROUPS *xterm16_custom_group* 241 | 242 | If you don't like a few highlighting groups, you can change them by 243 | setting the variables *xterm16fg_GroupName* *xterm16bg_GroupName* and / or 244 | *xterm16attr_GroupName* . These variables control the foreground color, 245 | background color and GUI/cterm attributes of {GroupName} respectively. 246 | {GroupName} is the name of the group whose highlighting you want to 247 | change. For a list of group names see |highlight-groups| and |group-name|. 248 | 249 | The format of these variables is the same as the format for colors. In 250 | addition you can also use a named color from the colormap. See 251 | |xterm16_custom_color| above. As an example: > 252 | 253 | let xterm16bg_Cursor = '#00ff00' " Make cursor bright green 254 | 255 | CRT MONITORS *xterm16_CRTColors* 256 | 257 | By default the colors in this color scheme are designed for LCD monitors. 258 | If you have a CRT monitor, set the vim variable |xterm16_CRTColors| in 259 | your .vimrc. This will adjust the colors to suit CRT monitors. With an 260 | unspecified brightness and 'standard' colormap, this will produce exactly 261 | the same colors as the original version of xterm16. If the colors still 262 | look unreadable and you want to change them, read the section on 263 | |xterm16_custom_color|. 264 | 265 | NOTE: Setting this variable will override some (maybe all) of your 266 | customized colors. See the note at the end of |xterm16_custom_color|. 267 | 268 | NOTE: Setting this variable will have no effect under the 'allblue' 269 | colormap. This colormap does not look too different under CRT monitors. 270 | Also modifications will probably render a few shades of blue used by this 271 | colormap indistinguishable. 272 | 273 | HTML HIGHLIGHTING GROUPS *xterm16_NoHtmlColors* 274 | 275 | Html groups use cterm attributes (which SUCK), so we change them here. The 276 | GUI attributes are OK, and are unchanged. If you do not want your precious 277 | html groups touched, set the variable |xterm16_NoHtmlColors| in your 278 | {.vimrc} 279 | 280 | If html colors don't work correctly, set the variable |html_no_rendering| 281 | 282 | *xterm16_example* 283 | As an example, the following will produce exactly the same colors as the 284 | original version of xterm16: > 285 | 286 | let g:xterm16_colormap = 'standard' 287 | let g:xterm16_brightness = '#80cdff' 288 | let g:xterm16_darkblue = 'h000050' 289 | let g:xterm16_blue = 'h002550' 290 | let g:xterm16_grey = 'm474747' 291 | 292 | < NOTE: This is done by default if you set the variable |xterm16_CRTColors|, 293 | and use a terminal with less than 256 colors (or use the 'standard' 294 | colormap). 295 | 296 | ------------------------------------------------------------------------------ 297 | ADJUSTING COLORS ON TERMINALS *xterm16_trmcolors* 298 | 299 | Depending on which terminal emulator you use, you might have to tweak the 300 | settings a little to get good results on your terminal emulator. On 256 301 | color capable terminals, you might have to make vim aware that your 302 | terminal has 256 colors. On terminals that are only capable of using 16 303 | colors, you will have to adjust the palette. 304 | 305 | If you use recent versions of xterm, rxvt or mrxvt, or your terminal 306 | emulator claims to support 256 colors, then read the help topic 307 | |xterm16-256cterm|. If not, read the help topic |xterm16-16cterm|. 308 | 309 | *xterm16-256cterm* 310 | Terminals which support 256 colors: ~ 311 | 312 | Some terminal emulators like xterm, rxvt and mrxvt support 256 colors if 313 | compiled in. A simple way to check if 256 colors are supported in your 314 | terminal is to type the following the bash prompt: > 315 | 316 | $ echo -e "\e[38;5;196mred\e[38;5;46mgreen\e[38;5;21mblue\e[0m" 317 | 318 | < If you see the words red, green and blue in the correct colors, then 319 | you've got 256 colors. If not, I recommend compiling 256 color support in 320 | (use --enable-256-colors at compile time for xterm / mrxvt). If this is 321 | not possible, try looking under |xterm16-16cterm|. 322 | 323 | Once you know your terminal is 256 color capable, check to see if Vim is 324 | aware of this. Start up vim in your terminal emulator and type > 325 | 326 | :echo &t_Co 327 | 328 | < If vim reports "256", then you need not make any modifications. If vim 329 | reports 8 or 16, then add the following code snippet to your {.vimrc}: > 330 | 331 | au VimEnter * 332 | \ if &term == 'xterm' | 333 | \ set t_Co=256 | 334 | \ endif 335 | 336 | < Replace 'xterm' above with the value of $TERM. 337 | 338 | NOTE: You can also fix this by modifying the terminfo files on your 339 | system. See the man pages of terminfo, infocmp and tic. 340 | 341 | NOTE: rxvt users will need to set the variable |xterm16_termtype| and or 342 | |xterm16_ccube| to get colors which are identical to those on the GUI. 343 | 344 | NOTE: If in addition you want to adjust the default colors of your 345 | terminal (for consistency with other applications) read the section on 346 | |xterm16-modcolors|. 347 | 348 | *xterm16-transparent* 349 | Finally, if you use a terminal that supports pseudo transparency (like 350 | mrxvt), and want your vim to appear transparent use: > 351 | 352 | if $DISPLAY != '' && !has('gui_running') && $MRXVT_TABTITLE != '' 353 | let xterm16bg_Normal = 'none' 354 | endif 355 | 356 | < This might not work on 16 color terms, but you're welcome to try :). This 357 | definitely works on mrxvt versions 0.4.1 or later. 358 | 359 | *xterm16-16cterm* 360 | Terminals with only 8 or 16 color support: ~ 361 | 362 | If your terminal emulator does not support 256 colors, you will have to 363 | manually modify the terminal palette to obtain the colors in this color 364 | scheme. NOTE: You can only use the 'standard' colormap in such terminals. 365 | See the section on |xterm16_colormap| for details. 366 | 367 | First I suggest attempting to at least get 16 colors (and not settle for 368 | only 8 colors). This looks a little nicer than using bold fonts. Read the 369 | section on in the vim help under |xfree-xterm|, and hope that works. 370 | 371 | *xterm16-modcolors* 372 | Now to modify your terminal colors, the first thing you need to do is to 373 | figure out the colors this color scheme is using. To do this, load this 374 | color scheme in gvim, and adjust the brightness / contrast to your taste. 375 | Don't forget to use the 'standard' colormap. Now the global variable 376 | |xterm16_palette| contains all the colors that are currently being used. 377 | 378 | If you use xterm, or some fork of rxvt (like mrxvt, aterm, wterm etc), 379 | follow the instructions in |xterm16-xdefaults|. For konsole or 380 | gnome-terminal see |xterm16-konsole| and |xterm16-gnome-terminal| 381 | respectively. Finally for the Linux console, see |xterm16-ctheme|. 382 | 383 | *xterm16-xdefaults* 384 | For xterm or some fork of rxvt, do the following: Once the colors are 385 | adjusted to your taste, edit the file ~/.Xdefaults or ~/.Xresources (or 386 | ~/.mrxvtrc for mrxvt). Paste in the contents of the vim variable 387 | |xterm16_palette| (use =xterm16_palette for instance). Now filter 388 | those lines through the supplied perl script *cpalette.pl* by typing > 389 | 390 | :'<,'>!perl -w /path/to/cpalette.pl -x --class trmname 391 | 392 | < where trmname is the resource class of your terminal. Generally this is 393 | the same as the terminal name. For xterm use "xterm.vt100" as the class, 394 | and for mrxvt use "Mrxvt" as the class. (|cpalette.pl| can do a few other 395 | things. Type "cpalette.pl -h" for options). 396 | 397 | If your terminal gets it's resources via the X window system [using 398 | XGetDefaults()], then you have to merge the above file with your current 399 | resource using > 400 | 401 | $ xrdb -merge ~/.Xresources 402 | 403 | < If your terminal directly reads the resource file, then just restart the 404 | terminal and you should be fine :). See the terminal version / man file to 405 | figure out if you need to merge your resources or not. 406 | 407 | *xterm16-konsole* 408 | For konsole, the file *xterm16.schema* contains the colors of this color 409 | scheme with 'standard' colormap, default brightness and CRTColors. If you 410 | use a different colormap / brightness, get the palette from the variable 411 | |xterm16_palette|, and modify the file appropriately. You'll need to 412 | convert the palette from to decimal. The following few lines might help: > 413 | 414 | " Brightness 134 (high), colormap standard 415 | let palette = '#000000 #af0000 #00af00 #afaf00 #0000af #af00af #00afaf #9a9a9a #5f5f5f #d70000 #00d700 #d7d700 #0000d7 #d700d7 #00d7d7 #d7d7d7' 416 | 417 | let i = 0 418 | while i < 16 419 | echo 'Color' i '0x'.strpart(palette,i*8+1,2)+0 ' ' 420 | \ '0x'.strpart(palette,i*8+3,2)+0 ' ' 421 | \ '0x'.strpart(palette,i*8+5,2)+0 422 | let i = i + 1 423 | endwhile 424 | 425 | < To change the default colors on Konsole, add the file |xterm16.schema| to 426 | ~/.kde/share/apps/konsole. Select the "Xterm 16 Colors" schema from the 427 | schema menu. 428 | 429 | *xterm16-gnome-terminal* 430 | For gnome-terminal you can change the colors by running gconf-editor and 431 | selecting the apps - gnome-terminal - profiles - Default menu, and change 432 | the palette option to the string (all in one line!) > 433 | 434 | #000000:#af0000:#00af00:#afaf00:#0000af:#af00af:#00afaf:#9a9a9a:#5f5f5f:#d70000:#00d700:#d7d700:#0000d7:#d700d7:#00d7d7:#d7d7d7 435 | 436 | < If you changed the brightness / colormap, you might want to replace the 437 | above line with your current colormap (obtained from the variable 438 | |xterm16_palette|). 439 | 440 | *xterm16-ctheme* 441 | ctheme can be used to change the colors on your Linux console (neat huh?). 442 | Find more information about it at > 443 | 444 | http://www.sourceforge.net/projects/ctheme/ 445 | 446 | < The file *xterm16.ct* contains the colors of this color scheme with 447 | 'standard' colormap, default brightness and CRTColors. If you use a 448 | different colormap / brightness, get the palette from the variable 449 | |xterm16_palette|, and modify the file appropriately. 450 | 451 | If necessary, change the first line of |xterm16.ct| to point to the 452 | correct location of ctheme, then run it with your ctheme. Thanks to 453 | Juhapekka Tolvanen (http://iki.fi/juhtolv) for providing 454 | this theme, and informing me of the existence of ctheme! 455 | 456 | ------------------------------------------------------------------------------ 457 | COLOR SCHEME PALETTE *xterm16_palette* 458 | 459 | The global variable |xterm16_palette| contains the 16 color palette 460 | currently used by the color scheme. This is mainly so that you can easily 461 | obtain the palette, and use it to change the colors on your favourite 462 | terminal emulator. 463 | 464 | CHANGING THE TERMINAL COLOR CUBE *xterm16_termtype* *xterm16_ccube* 465 | 466 | The terminals that support 256 colors all have a 6x6x6 RGB color cube 467 | between the colors 16 to 231. Unfortunately, not all of them have the same 468 | color cube. Rxvt uses a uniform RGB color cube, but xterm and mrxvt do 469 | not. 470 | 471 | This color scheme tries to guess which terminal you're using, and use the 472 | appropriate color cube. The guessing is done as follows: 473 | 474 | 1. If the environment variable MRXVT_TABTITLE is defined, then we 475 | assume you're using mrxvt. 476 | 2. Otherwise, if your TERM variable is set to something beginning with 477 | "rxvt", then we assume you're using rxvt. 478 | 3. Otherwise we assume you're using xterm. 479 | 480 | If the above will lead to an incorrect guess, set the vim variable 481 | |xterm16_termtype| to the terminal emulator you're using (currently only 482 | 'rxvt' and 'xterm' are supported). 483 | 484 | If you use a different terminal with 256 colors, then you can get the 485 | colors right by setting the variable |xterm16_ccube|. The value of 486 | |xterm16_ccube| should be a 12 digit hex number (without the leading 0x). 487 | The first two digits are the intensity of the term level 0 (generally this 488 | is 00). The next two are the intensity of the term level 1, etc. The last 489 | two correspond to the level 5. (Remember the terminal colors are a 6x6x6 490 | RGB cube). 491 | 492 | You will probably have to read the source of your terminal emulator to 493 | figure out the intensities of the colors in the 6x6x6 color cube. However, 494 | if your terminal supports setting colors 16 - 231 using .Xdefaults or 495 | something, then you can use the supplied perl script |cpalette.pl| to 496 | generate a color cube of your choice. For example: > 497 | 498 | perl -w cpalette.pl --class xterm --ccube 002a557faad4 -g >> ~/.Xdefaults 499 | 500 | < will make the xterm color cube the same as the rxvt color cube. 501 | 502 | UNREADABLE CONSOLE COLORS *xterm16_NoRemap* *xterm16_TermRegexp* 503 | 504 | On a Linux console (and some other 8 color terminals), the dark blue 505 | (PreProc) is unreadable so we remap it. To disable this feature, set the 506 | variable |xterm16_NoRemap| in your {.vimrc} 507 | 508 | If this color gives you trouble on other terminals, and you want it 509 | changed elsewhere too set the variable |xterm16_TermRegexp| to a regexp 510 | matching all troublesome terminals. 511 | 512 | NOTE: This is only true in the 'standard' colormap. The 'soft' colormap 513 | does not use dark blue as a foreground, and hence no remapping is done. 514 | 515 | ------------------------------------------------------------------------------ 516 | > 517 | Maintainer : Gautam Iyer 518 | Modified : Thu 18 May 2006 04:28:25 PM CDT 519 | vim: ft=help:tw=78:iskeyword=!-~,^*,^|,^":ai: 520 | -------------------------------------------------------------------------------- /.vimrc: -------------------------------------------------------------------------------- 1 | "Pathogen 2 | call pathogen#runtime_append_all_bundles() 3 | 4 | python from powerline.vim import setup as powerline_setup 5 | python powerline_setup() 6 | python del powerline_setup 7 | 8 | 9 | "============== Custom scripts =============== 10 | source ~/.vim/after/syntaxcheck.vim 11 | 12 | 13 | "============== Filetype stuff =============== 14 | filetype plugin on 15 | filetype indent on 16 | 17 | "============== Script configs =============== 18 | let NERDTreeMinimalUI=1 19 | let NERDTreeDirArrows=1 20 | 21 | " Load custom settings 22 | source ~/.vim/startup/color.vim 23 | source ~/.vim/startup/commands.vim 24 | source ~/.vim/startup/functions.vim 25 | source ~/.vim/startup/mappings.vim 26 | source ~/.vim/startup/settings.vim 27 | 28 | " Syntax-specific settings 29 | source ~/.vim/startup/js.vim 30 | source ~/.vim/startup/php.vim 31 | source ~/.vim/startup/vim.vim 32 | source ~/.vim/startup/yaml.vim 33 | source ~/.vim/startup/html.vim 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | My configs for vim, git, tmux, and a plethora of BASH stuff. For a general idea of what it looks like/how it acts see https://youtube.com/sabiddle 2 | 3 | # Requirements 4 | 5 | Depending on the install options you pick you'll need git and additionally 6 | 7 | If you choose to install vim configs: 8 | * Vim 7.4+ (7.3 if you don't want line numbers and relative line numbers at the same time like I do) 9 | 10 | If you choose to install my tmux configs: 11 | * python and pip (On Ubuntu 14.04 you may into an ImportError bug, if so see this [LaunchPad](https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1306991#yui_3_10_3_1_1427949292045_394) link for a workaround) 12 | * tmux 1.9a (This will be distro dependent so you'll have to install it yourself. If you stay on 1.8 you'll get weirdness, just upgrade) 13 | 14 | # Installing 15 | 16 | 1. Clone the repo 17 | 2. `cd` into it and run `./install` 18 | 3. It'll ask which parts you want to install (git configs, vim configs, tmux configs) 19 | 4. After it's done close your terminal and reopen it 3 times... ok, just once. 20 | -------------------------------------------------------------------------------- /bin/ctags-watch: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Arg 1: repos path, Arg 2: tag path, Arg 3: deployed file path 4 | # Ex: $HOME/repos/app-*, Ex: $HOME/.vim/tags/foo, Ex: /var/www/ 5 | while true; do 6 | if inotifywait -e move,create,delete,modify --exclude=".*sw[px]|4913|.git/.*" -r $1; then 7 | ctags --fields=+aimS --languages=php --langmap=php:.inc.php --file-scope=no -f $2 -R $3 8 | fi 9 | done 10 | -------------------------------------------------------------------------------- /bin/git_diff_wrapper: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if [ "$2" = "/dev/null" ]; then 3 | vim $1 4 | else 5 | vimdiff "$1" "$2" 6 | fi 7 | -------------------------------------------------------------------------------- /bin/readcsv: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | sudo sh -c "column -s, -t < ${1}" | less -#5 -N -S 3 | -------------------------------------------------------------------------------- /install: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | INSTALLDIR=${1:-$HOME} 3 | 4 | if [ "$1" == "-h" ] || [ "$1" == "-?" ] || [ "$1" == "--help" ]; then 5 | echo "$0 " 6 | echo "Existing dotfiles will be moved to .old" 7 | exit 8 | fi 9 | 10 | for i in .bash .bash_logout .bashrc bin completion 11 | do 12 | mv $INSTALLDIR/$i $INSTALLDIR/$i.old 2> /dev/null 13 | ln -s $PWD/$i $INSTALLDIR/$i; 14 | done; 15 | 16 | echo -n "Do you want to use my vim configs? [N/y]" 17 | read -n 1 use_vim_configs 18 | 19 | if [ "$use_vim_configs" == "Y" ] || [ "$use_vim_configs" == "y" ]; then 20 | mv $INSTALLDIR/.vim $INSTALLDIR/.vim.old 21 | mv $INSTALLDIR/.vimrc $INSTALLDIR/.vimrc.old 22 | ln -s $PWD/.vim $INSTALLDIR/.vim 2> /dev/null 23 | ln -s $PWD/.vimrc $INSTALLDIR/.vimrc 2> /dev/null 24 | fi 25 | echo 26 | 27 | echo -en "\nDo you want to use my git configs? [N/y]" 28 | read -n 1 use_git_configs 29 | 30 | if [ "$use_git_configs" == "Y" ] || [ "$use_git_configs" == "y" ]; then 31 | echo -e "\nGit config settings" 32 | echo -n "Name: " 33 | read git_name 34 | echo -ne "\nEmail: " 35 | read git_email 36 | 37 | cp $PWD/.gitconfig $INSTALLDIR/.gitconfig 38 | sed -i "s/%%GITNAME%%/$git_name/" $INSTALLDIR/.gitconfig 39 | sed -i "s/%%GITEMAIL%%/$git_email/" $INSTALLDIR/.gitconfig 40 | fi 41 | 42 | if [ ! -d $INSTALLDIR/.node-completion ]; then 43 | mkdir $INSTALLDIR/.node-completion 44 | fi 45 | 46 | echo -en "\nDo you want to use my tmux configs? [N/y]" 47 | read -n 1 use_tmux_configs 48 | 49 | if [ "$use_tmux_configs" == "Y" ] || [ "$use_tmux_configs" == "y" ]; then 50 | if [ ! -d $HOME/repos ]; then 51 | mkdir $HOME/repos 52 | fi 53 | 54 | if [ ! -d $HOME/repos/powerline ]; then 55 | echo -e "\nCloning shawncplus's powerline fork" 56 | git clone -b feature/shawncplus https://github.com/shawncplus/powerline.git $HOME/repos/powerline 57 | fi 58 | 59 | mv $INSTALLDIR/.config $INSTALLDIR/.config.old 2> /dev/null 60 | mv $INSTALLDIR/.tmux.conf $INSTALLDIR/.tmux.conf.old 2> /dev/null 61 | ln -s $PWD/.config $INSTALLDIR/.config 62 | ln -s $PWD/.tmux.conf $INSTALLDIR/.tmux.conf 63 | mkdir -p $HOME/.local/bin/ 64 | pip install --user --editable=$HOME/repos/powerline/ && ln -s $HOME/repos/powerline/scripts/powerline $HOME/.local/bin/ 65 | pip install --user pytz 66 | fi 67 | 68 | echo -e "\nInitializing submodules..." 69 | git submodule init && git submodule update 70 | 71 | echo "Done. Conflicting existing dotfiles were moved to .old" 72 | --------------------------------------------------------------------------------