├── .gitignore ├── README.md ├── battery ├── ctags ├── emacs └── emacsrc ├── git ├── git_template │ └── hooks │ │ ├── post-checkout │ │ ├── post-commit │ │ ├── post-merge │ │ ├── pre-commit │ │ └── pre-push ├── gitconfig └── gitignore_global ├── images ├── vim window.jpg └── zsh session.jpg ├── install.sh ├── iterm2 ├── Iceberg.terminal ├── Iceberg.terminal.xml ├── com.googlecode.iterm2.plist ├── iceberg.itermcolors ├── new_seul256.itermcolors └── seoul256.itermcolors ├── online-status ├── packages.txt ├── ruby ├── gemrc ├── irbrc └── rubocop.yml ├── scripts ├── git_commit_file_analysis.sh └── screenfetch-dev.sh ├── tmux ├── vim ├── .netrwhist ├── after │ ├── plugin │ │ └── ctrlp.vim │ └── syntax │ │ ├── css │ │ └── vim-coloresque.vim │ │ ├── html.vim │ │ ├── less.vim │ │ ├── sass.vim │ │ ├── scss.vim │ │ ├── stylus.vim │ │ └── vim.vim ├── autoload │ └── plug.vim ├── bundle │ ├── .DS_Store │ └── .vundle │ │ └── script-names.vim-scripts.org.json ├── colors │ ├── .DS_Store │ ├── base16-ocean.vim │ ├── darcksoul.vim │ ├── ddd.vim │ ├── railscasts.vim │ ├── seoul256.vim │ └── zenesque.vim ├── compiler │ ├── eruby.vim │ ├── rspec.vim │ ├── ruby.vim │ └── rubyunit.vim ├── ctrlp_cache │ ├── hist │ │ └── cache.txt │ └── mru │ │ └── cache.txt ├── doc │ ├── .DS_Store │ ├── conque_term.txt │ ├── snipMate.txt │ ├── tags │ └── tcomment.txt ├── ftdetect │ ├── d.vim │ └── ruby.vim ├── ftplugin │ ├── eruby.vim │ ├── html_snip_helper.vim │ ├── ruby.vim │ ├── snippet.vim │ ├── snippets.vim │ └── xml.vim ├── gvimrc ├── indent │ ├── d.vim │ ├── eruby.vim │ └── ruby.vim ├── init.lua ├── init.vim ├── plugin │ └── .DS_Store ├── plugins.lua ├── snippets │ ├── .DS_Store │ ├── _.snippets │ ├── autoit.snippets │ ├── c.snippets │ ├── css.snippets │ ├── erlang.snippets │ ├── eruby.snippets │ ├── html.snippets │ ├── javascript.snippets │ ├── ruby.snippets │ ├── sh.snippets │ ├── snippet.snippets │ ├── tex.snippets │ ├── vim.snippets │ └── zsh.snippets ├── spell │ ├── en.utf-8.add │ ├── en.utf-8.add.spl │ ├── en.utf-8.spl │ └── en.utf-8.sug ├── syntax │ ├── conque_term.vim │ ├── d.vim │ ├── eruby.vim │ ├── nerdtree.vim │ ├── rspec.vim │ ├── ruby.vim │ ├── snippet.vim │ └── snippets.vim └── vimrc └── zsh ├── themes └── excess.zsh-theme └── zshrc /.gitignore: -------------------------------------------------------------------------------- 1 | **.orig 2 | *.rbc 3 | *.sassc 4 | .DS_Store 5 | .rspec 6 | .sass-cache 7 | .swp 8 | .vagrant 9 | /.bundle 10 | /.idea 11 | /coverage/ 12 | /db/*.sqlite3 13 | /log/* 14 | /public/assets 15 | /public/rmc_frontend 16 | /public/system/* 17 | /spec/tmp/* 18 | /tmp/* 19 | /vendor/bundle 20 | _local_* 21 | capybara-*.html 22 | pickle-email-*.html 23 | rerun.txt 24 | tags 25 | 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Anton's Dotfiles 2 | ## Preview 3 | ## What's inside 4 | A lot of stuff. Seriously, a lot of stuff. Check them out in the file browser above and see what components may mesh up with you. Fork it, remove what you don't use, and build on what you do use. 5 | 6 | ## Including tools/programms 7 | * zsh 8 | * git 9 | * nvim 10 | * tmux 11 | * ruby 12 | * iterm 13 | * ctags 14 | * [tmate](http://tmate.io) 15 | 16 | ## Feedback 17 | Suggestions/improvements [welcome](https://github.com/davydovanton/dotfiles/issues)! 18 | 19 | 20 | ## Instalation 21 | ### vim 22 | ``` 23 | $ ln -s ~/bin/dotfiles/vim/snippets ~/.config/nvim 24 | ``` 25 | -------------------------------------------------------------------------------- /battery: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | usage() { 4 | cat < good battery level default: green or 1;32 15 | -m middle battery level default: yellow or 1;33 16 | -w warn battery level default: red or 0;31 17 | EOF 18 | } 19 | 20 | if [[ $1 == '-h' || $1 == '--help' || $1 == '-?' ]]; then 21 | usage 22 | exit 0 23 | fi 24 | 25 | # For default behavior 26 | setDefaults() { 27 | pmset_on=0 28 | output_tmux=0 29 | ascii=0 30 | ascii_bar='==========' 31 | good_color="1;32" 32 | middle_color="1;33" 33 | warn_color="0;31" 34 | connected=0 35 | } 36 | 37 | setDefaults 38 | 39 | battery_info() { 40 | ioreg -n AppleSmartBattery -r | \ 41 | grep -o '"[^"]*" = [^ ]*' | \ 42 | sed -e 's/= //g' -e 's/"//g' | \ 43 | sort 44 | } 45 | 46 | battery_charge() { 47 | battery_info | \ 48 | while read key value; do 49 | case $key in 50 | "MaxCapacity") 51 | export maxcap=$value;; 52 | "CurrentCapacity") 53 | export curcap=$value;; 54 | esac 55 | if [[ -n "$maxcap" && -n $curcap ]]; then 56 | CAPACITY=$(( 100 * curcap / maxcap)) 57 | printf "%d" $CAPACITY 58 | break 59 | fi 60 | done 61 | } 62 | 63 | battery_external_connected() { 64 | battery_info | grep "ExternalConnected" | cut -f2 -d' ' 65 | } 66 | 67 | if [[ ! $(battery_external_connected) = "No" ]]; then 68 | connected=1 69 | fi 70 | 71 | 72 | run_battery() { 73 | if ((pmset_on)); then 74 | BATTERY_STATUS="$(pmset -g batt | grep -o '[0-9]*%' | tr -d %)" 75 | else 76 | BATTERY_STATUS="$(battery_charge)" 77 | fi 78 | 79 | [[ -z "$BATTERY_STATUS" ]] && exit 1 80 | } 81 | 82 | # Apply the correct color to the battery status prompt 83 | apply_colors() { 84 | # Green 85 | if [[ $BATTERY_STATUS -ge 75 ]]; then 86 | if ((output_tmux)); then 87 | COLOR="#[fg=$good_color]" 88 | else 89 | COLOR=$good_color 90 | fi 91 | 92 | # Yellow 93 | elif [[ $BATTERY_STATUS -ge 25 ]] && [[ $BATTERY_STATUS -lt 75 ]]; then 94 | if ((output_tmux)); then 95 | COLOR="#[fg=$middle_color]" 96 | else 97 | COLOR=$middle_color 98 | fi 99 | 100 | # Red 101 | elif [[ $BATTERY_STATUS -lt 25 ]]; then 102 | if ((output_tmux)); then 103 | COLOR="#[fg=$warn_color]" 104 | else 105 | COLOR=$warn_color 106 | fi 107 | fi 108 | } 109 | 110 | print_status() { 111 | # Print the battery status 112 | if ((connected)); then 113 | GRAPH="⚡" 114 | 115 | elif ((ascii)); then 116 | barlength=${#ascii_bar} 117 | 118 | # Divides BATTTERY_STATUS by 10 to get a decimal number; i.e 7.6 119 | n=$(echo "scale = 1; $BATTERY_STATUS / 10" | bc) 120 | 121 | # Round the number to the nearest whole number 122 | rounded_n=$(printf "%.0f" "$n") 123 | 124 | # Creates the bar 125 | GRAPH=$(printf "[%-${barlength}s]" "${ascii_bar:0:rounded_n}") 126 | 127 | else 128 | GRAPH=$(spark 0 ${BATTERY_STATUS} 100 | awk '{print substr($0,4,3)}') 129 | fi 130 | 131 | if ((output_tmux)); then 132 | printf "%s%s %s%s" "$COLOR" "[$BATTERY_STATUS%]" "$GRAPH" "#[default]" 133 | else 134 | printf "\e[0;%sm%s %s \e[m\n" "$COLOR" "[$BATTERY_STATUS%]" "$GRAPH" 135 | fi 136 | } 137 | 138 | # Read args 139 | while getopts ":g:m:w:tap" opt; do 140 | case $opt in 141 | g) 142 | good_color=$OPTARG 143 | ;; 144 | m) 145 | middle_color=$OPTARG 146 | ;; 147 | w) 148 | warn_color=$OPTARG 149 | ;; 150 | t) 151 | output_tmux=1 152 | good_color="green" 153 | middle_color="yellow" 154 | warn_color="red" 155 | ;; 156 | a) 157 | ascii=1 158 | ;; 159 | p) 160 | pmset_on=1 161 | ;; 162 | \?) 163 | echo "Invalid option: -$OPTARG" 164 | exit 1 165 | ;; 166 | :) 167 | echo "Option -$OPTARG requires an argument" 168 | exit 1 169 | ;; 170 | esac 171 | done 172 | 173 | 174 | run_battery 175 | apply_colors 176 | print_status 177 | -------------------------------------------------------------------------------- /ctags: -------------------------------------------------------------------------------- 1 | --recurse=yes 2 | --exclude=.svn/ 3 | --exclude=.git/ 4 | --exclude="*/_*cache/*" 5 | --exclude="*/_*logs{0,1}/*" 6 | --exclude="*/_*data/*" 7 | --tag-relative 8 | -Rf./.git/tags 9 | 10 | --langdef=js 11 | --langmap=js:.js 12 | --regex-JavaScript=/([A-Za-z0-9._$\(\)]+)[ \t]*[:=][ \t]*function[ \t]*\(/\1/m,method/ 13 | --regex-JavaScript=/([A-Za-z0-9._$\#\(\)]+)[ \t]*[:][ \t]*([A-Za-z0-9._\-\#\'\"]+)[ \t]*/\1/p,property/ 14 | --regex-JavaScript=/([A-Za-z0-9._$\#\(\)]+)[ \t]*[:][ \t]*([A-Za-z0-9\'\"._\-\#\(]+)[ \t]*\{/\1/p,property/ 15 | --regex-JavaScript=/var ([A-Za-z0-9._$\#]+)[ \t]*[=][ \t]*([A-Za-z0-9._'"\$\#\[\{]+)[,|;]/\1/v,variable/ 16 | --regex-JavaScript=/([A-Za-z0-9._$\#]+)[ \t]*[=][ \t]*([A-Za-z0-9._'"\$\#]+)extend\(/\1/c,class/ 17 | 18 | --regex-ruby=/(^|[:;])[ \t]*([A-Z][[:alnum:]_]+) *=/\2/c,class,constant/ 19 | --regex-ruby=/(^|;)[ \t]*(has_many|belongs_to|has_one|has_and_belongs_to_many)\(? *:([[:alnum:]_]+)/\3/f,function,association/ 20 | --regex-ruby=/(^|;)[ \t]*(named_)?scope\(? *:([[:alnum:]_]+)/\3/f,function,named_scope/ 21 | --regex-ruby=/(^|;)[ \t]*expose\(? *:([[:alnum:]_]+)/\2/f,function,exposure/ 22 | --regex-ruby=/(^|;)[ \t]*event\(? *:([[:alnum:]_]+)/\2/f,function,aasm_event/ 23 | --regex-ruby=/(^|;)[ \t]*event\(? *:([[:alnum:]_]+)/\2!/f,function,aasm_event/ 24 | --regex-ruby=/(^|;)[ \t]*event\(? *:([[:alnum:]_]+)/\2?/f,function,aasm_event/ 25 | 26 | --langdef=coffee 27 | --langmap=coffee:.coffee 28 | --regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]+=.*->.*$/\1/f,function/ 29 | --regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/ 30 | -------------------------------------------------------------------------------- /emacs/emacsrc: -------------------------------------------------------------------------------- 1 | ;; this loads the package manager 2 | (require 'package) 3 | 4 | ;; here there's a variable named package-archives, and we are adding the MELPA repository to it 5 | (add-to-list 'package-archives 6 | '("melpa" . "http://melpa.milkbox.net/packages/") t) 7 | 8 | ;; loads packages and activates them 9 | (package-initialize) 10 | 11 | (require 'evil) 12 | (evil-mode t) 13 | 14 | ;; Hide top menu 15 | (menu-bar-mode -1) 16 | 17 | ;; Changelog 18 | (setq user-mail-address "antondavydov.o@gmail.com") 19 | -------------------------------------------------------------------------------- /git/git_template/hooks/post-checkout: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | /usr/local/bin/ctags -R * 4 | -------------------------------------------------------------------------------- /git/git_template/hooks/post-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | call_flog() { 4 | echo "Flog:" 5 | flog $file | head -2 6 | flog $file | grep '^\s*\d[1-9].\d.\+:\d\+$' 7 | } 8 | 9 | call_reek() { 10 | echo "\nReek:" 11 | reek $file 12 | } 13 | 14 | call_rubocop() { 15 | echo "\nRuboCop:" 16 | rubocop $file | tail -n +4 | sed '$d' 17 | } 18 | 19 | call_spellcheker() { 20 | echo "\nCodespell:" 21 | /Users/anton/bin/codespell/codespell.py $file 22 | } 23 | 24 | analyse_for_ruby_file() { 25 | ruby_file='^.+\.rb$' 26 | test_or_config_file='^(spec|test|config|db).+\.rb$' 27 | schema_file='^.+schema.rb$' 28 | if [[ ${file} =~ $ruby_file ]]; then 29 | echo "\033[33;36mCHECKING: \033[33;12m" $file "\033[0m" 30 | 31 | if ! [[ ${file} =~ $test_file ]]; then 32 | call_flog $file 33 | call_reek $file 34 | fi 35 | if ! [[ ${file} =~ $schema_file ]]; then 36 | call_rubocop $file 37 | fi 38 | fi 39 | } 40 | 41 | files=`git diff-tree --no-commit-id --name-only -r HEAD` 42 | for file in $files 43 | do 44 | analyse_for_ruby_file $file 45 | call_spellcheker $file 46 | echo "\n" 47 | done 48 | 49 | /usr/local/bin/ctags -R * 50 | -------------------------------------------------------------------------------- /git/git_template/hooks/post-merge: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /git/git_template/hooks/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davydovanton/dotfiles/a99d34047a95373c0b4d00af4882e59f4ee02556/git/git_template/hooks/pre-commit -------------------------------------------------------------------------------- /git/git_template/hooks/pre-push: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davydovanton/dotfiles/a99d34047a95373c0b4d00af4882e59f4ee02556/git/git_template/hooks/pre-push -------------------------------------------------------------------------------- /git/gitconfig: -------------------------------------------------------------------------------- 1 | [user] 2 | name = Anton Davydov 3 | email = antondavydov.o@gmail.com 4 | [core] 5 | excludesfile = /Users/anton/.gitignore_global 6 | editor = nvim 7 | pager = less -R 8 | whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol 9 | [color] 10 | ui = 1 11 | [merge] 12 | tool = vimdiff 13 | keepBackup = false 14 | [help] 15 | autocorrect = 1 16 | [filter "media"] 17 | clean = git media clean %f 18 | smudge = git media smudge %f 19 | required = true 20 | [alias] 21 | lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit 22 | [init] 23 | templatedir = ~/.git_template 24 | [diff] 25 | tool = vimdiff 26 | [difftool] 27 | prompt = false 28 | [push] 29 | default = matching 30 | [filter "lfs"] 31 | clean = git-lfs clean %f 32 | smudge = git-lfs smudge %f 33 | required = true 34 | [http "https://git.cluster.davydovanton.com"] 35 | sslCAInfo = /Users/anton/.flynn/ca-certs/default.pem 36 | [credential "https://git.cluster.davydovanton.com"] 37 | helper = /usr/local/bin/flynn git-credentials 38 | -------------------------------------------------------------------------------- /git/gitignore_global: -------------------------------------------------------------------------------- 1 | *~ 2 | # OSX taken from: https://github.com/github/gitignore/blob/master/Global/OSX.gitignore 3 | # ---------------------------------------------------------------------------------------------- 4 | .DS_Store 5 | ._* 6 | # Files that might appear on external disk 7 | .Spotlight-V100 8 | .Trashes 9 | 10 | # Folder config file 11 | Desktop.ini 12 | 13 | # Tags taken from: https://github.com/github/gitignore/blob/master/Global/Tags.gitignore 14 | # ---------------------------------------------------------------------------------------------- 15 | # Ignore tags created by etags and ctags 16 | TAGS 17 | tags 18 | 19 | # Vim taken from: https://github.com/github/gitignore/blob/master/Global/Vim.gitignore 20 | # ---------------------------------------------------------------------------------------------- 21 | .*.sw[a-z] 22 | *.un~ 23 | Session.vim 24 | 25 | # SASS 26 | # ---------------------------------------------------------------------------------------------- 27 | .sass-cache 28 | 29 | # LANGS 30 | build 31 | 32 | # redis dump 33 | dump.rdb 34 | 35 | # ENV files 36 | .env.development 37 | -------------------------------------------------------------------------------- /images/vim window.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davydovanton/dotfiles/a99d34047a95373c0b4d00af4882e59f4ee02556/images/vim window.jpg -------------------------------------------------------------------------------- /images/zsh session.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davydovanton/dotfiles/a99d34047a95373c0b4d00af4882e59f4ee02556/images/zsh session.jpg -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | INSTALLATION_DIR=~/bin 4 | 5 | printf "\033[2K\033[00;32mCreating a backup file of your vim files...\n\033[0m\n" 6 | 7 | cp ~/.vimrc ~/.vimrc.orig 8 | cp ~/.zshrc ~/.zshrc.orig 9 | 10 | printf "\033[2K\033[00;32mBackup created! \033[0m\n\n" 11 | 12 | printf "\033[2K\033[00;32mDownloading project...\033[0m\n\n" 13 | cd $INSTALLATION_DIR 14 | git clone git@github.com:davydovanton/dotfiles.git 15 | cd dotfiles 16 | 17 | CURRENT_DIR=`pwd` 18 | 19 | ln -sf $CURRENT_DIR/git/git_template ~/.git_template 20 | 21 | ln -sf $CURRENT_DIR/vim ~/.vim 22 | ln -sf $CURRENT_DIR/vim/vimrc ~/.vimrc 23 | ln -sf $CURRENT_DIR/vim/gvimrc ~/.gvimrc 24 | 25 | ln -sf $CURRENT_DIR/emacs/emacsrc ~/.emacs 26 | 27 | curl -L http://install.ohmyz.sh | sh 28 | cp -sf $CURRENT_DIR/zsh/themes/excess.zsh-theme ~/.oh-my-zsh/themes/excess.zsh-theme 29 | ln -sf $CURRENT_DIR/zsh/zshrc ~/.zshrc 30 | 31 | ln -sf $CURRENT_DIR/ctags ~/.ctags 32 | ln -sf $CURRENT_DIR/tmux ~/.tmux.conf 33 | 34 | ln -sf $CURRENT_DIR/ruby/rubocop.yml ~/.rubocop.yml 35 | ln -sf $CURRENT_DIR/ruby/gemrc ~/.gemrc 36 | ln -sf $CURRENT_DIR/ruby/irbrc ~/.irbrc 37 | 38 | cp -sf $CURRENT_DIR/iterm2/com.googlecode.iterm2.plist ~/Library/Preferences/com.googlecode.iterm2.plist 39 | 40 | ln -sf $CURRENT_DIR/git/gitconfig ~/.gitconfig 41 | ln -sf $CURRENT_DIR/git/gitignore_global ~/.gitignore_global 42 | ln -sf $CURRENT_DIR/git/hooks/post-commit ~/.git/hooks/post-commit 43 | 44 | printf "\033[2K\033[00;32mInstalling vim plugins...\033[0m\n\n" 45 | git submodule update --init 46 | 47 | printf "\n\r\033[2K\033[00;32mInstallation finished.\nEnjoy your vim :)\033[0m\n" 48 | -------------------------------------------------------------------------------- /iterm2/Iceberg.terminal: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ANSIBlackColor 6 | 7 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 8 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECkw 9 | LjA4NjI3NDUxMjExIDAuMDkwMTk2MDgwNTEgMC4xMzMzMzMzNDAzABACgALSEBESE1ok 10 | Y2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJj 11 | aGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSE5bYo6Qkpeiq7O2v9HU2QAAAAAAAAEBAAAA 12 | AAAAABkAAAAAAAAAAAAAAAAAAADb 13 | 14 | ANSIBlueColor 15 | 16 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 17 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 18 | LjUxNzY0NzA1ODggMC42Mjc0NTA5ODA0IDAuNzc2NDcwNTg4MgAQAoAC0hAREhNaJGNs 19 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 20 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 21 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 22 | 23 | ANSIBrightBlackColor 24 | 25 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 26 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBMw 27 | LjIxNDIgMC4yMTQyIDAuMzQAEAKAAtIQERITWiRjbGFzc25hbWVYJGNsYXNzZXNXTlND 28 | b2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290gAEIERojLTI3 29 | O0FITltieHp8gYyVnaCpu77DAAAAAAAAAQEAAAAAAAAAGQAAAAAAAAAAAAAAAAAAAMU= 30 | 31 | ANSIBrightBlueColor 32 | 33 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 34 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBkw 35 | LjY0MDggMC43NDQ2MzMzMzMzIDAuODkAEAKAAtIQERITWiRjbGFzc25hbWVYJGNsYXNz 36 | ZXNXTlNDb2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290gAEI 37 | ERojLTI3O0FITltifoCCh5Kbo6avwcTJAAAAAAAAAQEAAAAAAAAAGQAAAAAAAAAAAAAA 38 | AAAAAMs= 39 | 40 | ANSIBrightCyanColor 41 | 42 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 43 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBQw 44 | LjcxMzQgMC44NDY1MSAwLjg3ABACgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05T 45 | Q29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0y 46 | NztBSE5bYnl7fYKNlp6hqry/xAAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAADG 47 | 48 | ANSIBrightGreenColor 49 | 50 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 51 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBQw 52 | LjgwMTk1IDAuODYgMC42Mjc4ABACgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05T 53 | Q29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0y 54 | NztBSE5bYnl7fYKNlp6hqry/xAAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAADG 55 | 56 | ANSIBrightMagentaColor 57 | 58 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 59 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBIw 60 | Ljc4MzQ1IDAuNzExIDAuOQAQAoAC0hAREhNaJGNsYXNzbmFtZVgkY2xhc3Nlc1dOU0Nv 61 | bG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hpdmVy0RcYVHJvb3SAAQgRGiMtMjc7 62 | QUhOW2J3eXuAi5Scn6i6vcIAAAAAAAABAQAAAAAAAAAZAAAAAAAAAAAAAAAAAAAAxA== 63 | 64 | ANSIBrightRedColor 65 | 66 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 67 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBIw 68 | Ljk1IDAuNjA4IDAuNjE5NAAQAoAC0hAREhNaJGNsYXNzbmFtZVgkY2xhc3Nlc1dOU0Nv 69 | bG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hpdmVy0RcYVHJvb3SAAQgRGiMtMjc7 70 | QUhOW2J3eXuAi5Scn6i6vcIAAAAAAAABAQAAAAAAAAAZAAAAAAAAAAAAAAAAAAAAxA== 71 | 72 | ANSIBrightWhiteColor 73 | 74 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 75 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBIw 76 | LjkxMiAwLjkyMDggMC45NgAQAoAC0hAREhNaJGNsYXNzbmFtZVgkY2xhc3Nlc1dOU0Nv 77 | bG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hpdmVy0RcYVHJvb3SAAQgRGiMtMjc7 78 | QUhOW2J3eXuAi5Scn6i6vcIAAAAAAAABAQAAAAAAAAAZAAAAAAAAAAAAAAAAAAAAxA== 79 | 80 | ANSIBrightYellowColor 81 | 82 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 83 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBQw 84 | LjkzIDAuNzQ1NTUgMC42MTM4ABACgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05T 85 | Q29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0y 86 | NztBSE5bYnl7fYKNlp6hqry/xAAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAADG 87 | 88 | ANSICyanColor 89 | 90 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 91 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECYw 92 | LjUzNzI1NDkwMiAwLjcyMTU2ODYyNzUgMC43NjA3ODQzMTM3ABACgALSEBESE1okY2xh 93 | c3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2 94 | ZXLRFxhUcm9vdIABCBEaIy0yNztBSE5bYouNj5SfqLCzvM7R1gAAAAAAAAEBAAAAAAAA 95 | ABkAAAAAAAAAAAAAAAAAAADY 96 | 97 | ANSIGreenColor 98 | 99 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 100 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 101 | LjcwNTg4MjM1MjkgMC43NDUwOTgwMzkyIDAuNTA5ODAzOTIxNgAQAoAC0hAREhNaJGNs 102 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 103 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 104 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 105 | 106 | ANSIMagentaColor 107 | 108 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 109 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 110 | LjYyNzQ1MDk4MDQgMC41NzY0NzA1ODgyIDAuNzgwMzkyMTU2OQAQAoAC0hAREhNaJGNs 111 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 112 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 113 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 114 | 115 | ANSIRedColor 116 | 117 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 118 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 119 | Ljg4NjI3NDUwOTggMC40NzA1ODgyMzUzIDAuNDcwNTg4MjM1MwAQAoAC0hAREhNaJGNs 120 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 121 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 122 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 123 | 124 | ANSIWhiteColor 125 | 126 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 127 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 128 | LjgxNTY4NjM0NTEgMC44MjM1Mjk0ODE5IDAuODU4ODIzNTk3NAAQAoAC0hAREhNaJGNs 129 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 130 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 131 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 132 | 133 | ANSIYellowColor 134 | 135 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 136 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 137 | Ljg4NjI3NDUwOTggMC42NDMxMzcyNTQ5IDAuNDcwNTg4MjM1MwAQAoAC0hAREhNaJGNs 138 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 139 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 140 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 141 | 142 | BackgroundBlur 143 | 0.19588955965909091 144 | BackgroundColor 145 | 146 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 147 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEC8w 148 | LjA2OTExNTMxODM2IDAuMDczMzU1NDEzOTcgMC4wOTgwNzI4NTY2NiAwLjk1ABABgALS 149 | EBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tl 150 | eWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSE5bYpSWmJ2osbm8xdfa3wAAAAAA 151 | AAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAADh 152 | 153 | CursorColor 154 | 155 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 156 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 157 | LjgxNTY4NjM0NTEgMC44MjM1Mjk0ODE5IDAuODU4ODIzNTk3NAAQAoAC0hAREhNaJGNs 158 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 159 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 160 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 161 | 162 | Font 163 | 164 | YnBsaXN0MDDUAQIDBAUGGBlYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 165 | AAGGoKQHCBESVSRudWxs1AkKCwwNDg8QVk5TU2l6ZVhOU2ZGbGFnc1ZOU05hbWVWJGNs 166 | YXNzI0AmAAAAAAAAEBCAAoADXxAVU291cmNlQ29kZVByby1SZWd1bGFy0hMUFRZaJGNs 167 | YXNzbmFtZVgkY2xhc3Nlc1ZOU0ZvbnSiFRdYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2 168 | ZXLRGhtUcm9vdIABCBEaIy0yNzxCS1JbYmlydHZ4kJWgqbCzvM7R1gAAAAAAAAEBAAAA 169 | AAAAABwAAAAAAAAAAAAAAAAAAADY 170 | 171 | Linewrap 172 | 173 | ProfileCurrentVersion 174 | 2.02 175 | SelectionColor 176 | 177 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 178 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECYw 179 | LjE1Mjk0MTE4MjMgMC4xNjA3ODQzMTkgMC4yNjY2NjY2ODA2ABACgALSEBESE1okY2xh 180 | c3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2 181 | ZXLRFxhUcm9vdIABCBEaIy0yNztBSE5bYouNj5SfqLCzvM7R1gAAAAAAAAEBAAAAAAAA 182 | ABkAAAAAAAAAAAAAAAAAAADY 183 | 184 | TextBoldColor 185 | 186 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 187 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 188 | LjgxNTY4NjM0NTEgMC44MjM1Mjk0ODE5IDAuODU4ODIzNTk3NAAQAoAC0hAREhNaJGNs 189 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 190 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 191 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 192 | 193 | TextColor 194 | 195 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 196 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 197 | Ljc3NjQ3MDU4ODIgMC43ODQzMTM3MjU1IDAuODE5NjA3ODQzMQAQAYAC0hAREhNaJGNs 198 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 199 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 200 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 201 | 202 | name 203 | Iceberg 204 | type 205 | Window Settings 206 | 207 | 208 | -------------------------------------------------------------------------------- /iterm2/Iceberg.terminal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ANSIBlackColor 6 | 7 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 8 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECkw 9 | LjA4NjI3NDUxMjExIDAuMDkwMTk2MDgwNTEgMC4xMzMzMzMzNDAzABACgALSEBESE1ok 10 | Y2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJj 11 | aGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSE5bYo6Qkpeiq7O2v9HU2QAAAAAAAAEBAAAA 12 | AAAAABkAAAAAAAAAAAAAAAAAAADb 13 | 14 | ANSIBlueColor 15 | 16 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 17 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 18 | LjUxNzY0NzA1ODggMC42Mjc0NTA5ODA0IDAuNzc2NDcwNTg4MgAQAoAC0hAREhNaJGNs 19 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 20 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 21 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 22 | 23 | ANSIBrightBlackColor 24 | 25 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 26 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBMw 27 | LjIxNDIgMC4yMTQyIDAuMzQAEAKAAtIQERITWiRjbGFzc25hbWVYJGNsYXNzZXNXTlND 28 | b2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290gAEIERojLTI3 29 | O0FITltieHp8gYyVnaCpu77DAAAAAAAAAQEAAAAAAAAAGQAAAAAAAAAAAAAAAAAAAMU= 30 | 31 | ANSIBrightBlueColor 32 | 33 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 34 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBkw 35 | LjY0MDggMC43NDQ2MzMzMzMzIDAuODkAEAKAAtIQERITWiRjbGFzc25hbWVYJGNsYXNz 36 | ZXNXTlNDb2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290gAEI 37 | ERojLTI3O0FITltifoCCh5Kbo6avwcTJAAAAAAAAAQEAAAAAAAAAGQAAAAAAAAAAAAAA 38 | AAAAAMs= 39 | 40 | ANSIBrightCyanColor 41 | 42 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 43 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBQw 44 | LjcxMzQgMC44NDY1MSAwLjg3ABACgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05T 45 | Q29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0y 46 | NztBSE5bYnl7fYKNlp6hqry/xAAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAADG 47 | 48 | ANSIBrightGreenColor 49 | 50 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 51 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBQw 52 | LjgwMTk1IDAuODYgMC42Mjc4ABACgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05T 53 | Q29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0y 54 | NztBSE5bYnl7fYKNlp6hqry/xAAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAADG 55 | 56 | ANSIBrightMagentaColor 57 | 58 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 59 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBIw 60 | Ljc4MzQ1IDAuNzExIDAuOQAQAoAC0hAREhNaJGNsYXNzbmFtZVgkY2xhc3Nlc1dOU0Nv 61 | bG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hpdmVy0RcYVHJvb3SAAQgRGiMtMjc7 62 | QUhOW2J3eXuAi5Scn6i6vcIAAAAAAAABAQAAAAAAAAAZAAAAAAAAAAAAAAAAAAAAxA== 63 | 64 | ANSIBrightRedColor 65 | 66 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 67 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBIw 68 | Ljk1IDAuNjA4IDAuNjE5NAAQAoAC0hAREhNaJGNsYXNzbmFtZVgkY2xhc3Nlc1dOU0Nv 69 | bG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hpdmVy0RcYVHJvb3SAAQgRGiMtMjc7 70 | QUhOW2J3eXuAi5Scn6i6vcIAAAAAAAABAQAAAAAAAAAZAAAAAAAAAAAAAAAAAAAAxA== 71 | 72 | ANSIBrightWhiteColor 73 | 74 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 75 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBIw 76 | LjkxMiAwLjkyMDggMC45NgAQAoAC0hAREhNaJGNsYXNzbmFtZVgkY2xhc3Nlc1dOU0Nv 77 | bG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hpdmVy0RcYVHJvb3SAAQgRGiMtMjc7 78 | QUhOW2J3eXuAi5Scn6i6vcIAAAAAAAABAQAAAAAAAAAZAAAAAAAAAAAAAAAAAAAAxA== 79 | 80 | ANSIBrightYellowColor 81 | 82 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 83 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBQw 84 | LjkzIDAuNzQ1NTUgMC42MTM4ABACgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05T 85 | Q29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0y 86 | NztBSE5bYnl7fYKNlp6hqry/xAAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAADG 87 | 88 | ANSICyanColor 89 | 90 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 91 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECYw 92 | LjUzNzI1NDkwMiAwLjcyMTU2ODYyNzUgMC43NjA3ODQzMTM3ABACgALSEBESE1okY2xh 93 | c3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2 94 | ZXLRFxhUcm9vdIABCBEaIy0yNztBSE5bYouNj5SfqLCzvM7R1gAAAAAAAAEBAAAAAAAA 95 | ABkAAAAAAAAAAAAAAAAAAADY 96 | 97 | ANSIGreenColor 98 | 99 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 100 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 101 | LjcwNTg4MjM1MjkgMC43NDUwOTgwMzkyIDAuNTA5ODAzOTIxNgAQAoAC0hAREhNaJGNs 102 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 103 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 104 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 105 | 106 | ANSIMagentaColor 107 | 108 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 109 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 110 | LjYyNzQ1MDk4MDQgMC41NzY0NzA1ODgyIDAuNzgwMzkyMTU2OQAQAoAC0hAREhNaJGNs 111 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 112 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 113 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 114 | 115 | ANSIRedColor 116 | 117 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 118 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 119 | Ljg4NjI3NDUwOTggMC40NzA1ODgyMzUzIDAuNDcwNTg4MjM1MwAQAoAC0hAREhNaJGNs 120 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 121 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 122 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 123 | 124 | ANSIWhiteColor 125 | 126 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 127 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 128 | LjgxNTY4NjM0NTEgMC44MjM1Mjk0ODE5IDAuODU4ODIzNTk3NAAQAoAC0hAREhNaJGNs 129 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 130 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 131 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 132 | 133 | ANSIYellowColor 134 | 135 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 136 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 137 | Ljg4NjI3NDUwOTggMC42NDMxMzcyNTQ5IDAuNDcwNTg4MjM1MwAQAoAC0hAREhNaJGNs 138 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 139 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 140 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 141 | 142 | BackgroundBlur 143 | 0.19588955965909091 144 | BackgroundColor 145 | 146 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 147 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEC8w 148 | LjA2OTExNTMxODM2IDAuMDczMzU1NDEzOTcgMC4wOTgwNzI4NTY2NiAwLjk1ABABgALS 149 | EBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tl 150 | eWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSE5bYpSWmJ2osbm8xdfa3wAAAAAA 151 | AAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAADh 152 | 153 | CursorColor 154 | 155 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 156 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 157 | LjgxNTY4NjM0NTEgMC44MjM1Mjk0ODE5IDAuODU4ODIzNTk3NAAQAoAC0hAREhNaJGNs 158 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 159 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 160 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 161 | 162 | Font 163 | 164 | YnBsaXN0MDDUAQIDBAUGGBlYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 165 | AAGGoKQHCBESVSRudWxs1AkKCwwNDg8QVk5TU2l6ZVhOU2ZGbGFnc1ZOU05hbWVWJGNs 166 | YXNzI0AmAAAAAAAAEBCAAoADXxAVU291cmNlQ29kZVByby1SZWd1bGFy0hMUFRZaJGNs 167 | YXNzbmFtZVgkY2xhc3Nlc1ZOU0ZvbnSiFRdYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2 168 | ZXLRGhtUcm9vdIABCBEaIy0yNzxCS1JbYmlydHZ4kJWgqbCzvM7R1gAAAAAAAAEBAAAA 169 | AAAAABwAAAAAAAAAAAAAAAAAAADY 170 | 171 | Linewrap 172 | 173 | ProfileCurrentVersion 174 | 2.02 175 | SelectionColor 176 | 177 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 178 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECYw 179 | LjE1Mjk0MTE4MjMgMC4xNjA3ODQzMTkgMC4yNjY2NjY2ODA2ABACgALSEBESE1okY2xh 180 | c3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2 181 | ZXLRFxhUcm9vdIABCBEaIy0yNztBSE5bYouNj5SfqLCzvM7R1gAAAAAAAAEBAAAAAAAA 182 | ABkAAAAAAAAAAAAAAAAAAADY 183 | 184 | TextBoldColor 185 | 186 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 187 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 188 | LjgxNTY4NjM0NTEgMC44MjM1Mjk0ODE5IDAuODU4ODIzNTk3NAAQAoAC0hAREhNaJGNs 189 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 190 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 191 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 192 | 193 | TextColor 194 | 195 | YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS 196 | AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw 197 | Ljc3NjQ3MDU4ODIgMC43ODQzMTM3MjU1IDAuODE5NjA3ODQzMQAQAYAC0hAREhNaJGNs 198 | YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp 199 | dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KMjpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA 200 | AAAZAAAAAAAAAAAAAAAAAAAA2Q== 201 | 202 | name 203 | Iceberg 204 | type 205 | Window Settings 206 | 207 | 208 | -------------------------------------------------------------------------------- /iterm2/iceberg.itermcolors: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Ansi 0 Color 6 | 7 | Blue Component 8 | 0.0 9 | Green Component 10 | 0.0 11 | Red Component 12 | 0.0 13 | 14 | Ansi 1 Color 15 | 16 | Blue Component 17 | 0.37254901960784315 18 | Green Component 19 | 0.37254901960784315 20 | Red Component 21 | 0.99607843137254903 22 | 23 | Ansi 10 Color 24 | 25 | Blue Component 26 | 0.52977806329727173 27 | Green Component 28 | 0.672210693359375 29 | Red Component 30 | 0.47725984454154968 31 | 32 | Ansi 11 Color 33 | 34 | Blue Component 35 | 0.69206869602203369 36 | Green Component 37 | 0.8399653434753418 38 | Red Component 39 | 0.82161557674407959 40 | 41 | Ansi 12 Color 42 | 43 | Blue Component 44 | 0.83449238538742065 45 | Green Component 46 | 0.68919539451599121 47 | Red Component 48 | 0.53378462791442871 49 | 50 | Ansi 13 Color 51 | 52 | Blue Component 53 | 0.53980922698974609 54 | Green Component 55 | 0.62489771842956543 56 | Red Component 57 | 0.89262229204177856 58 | 59 | Ansi 14 Color 60 | 61 | Blue Component 62 | 0.67317330837249756 63 | Green Component 64 | 0.68789660930633545 65 | Red Component 66 | 0.38178431987762451 67 | 68 | Ansi 15 Color 69 | 70 | Blue Component 71 | 0.79284101724624634 72 | Green Component 73 | 0.81206071376800537 74 | Red Component 75 | 0.81617259979248047 76 | 77 | Ansi 2 Color 78 | 79 | Blue Component 80 | 0.52941176470588236 81 | Green Component 82 | 0.84313725490196079 83 | Red Component 84 | 0.69019607843137254 85 | 86 | Ansi 3 Color 87 | 88 | Blue Component 89 | 0.37323266267776489 90 | Green Component 91 | 0.6455344557762146 92 | Red Component 93 | 0.83577555418014526 94 | 95 | Ansi 4 Color 96 | 97 | Blue Component 98 | 0.84313725490196079 99 | Green Component 100 | 0.68627450980392157 101 | Red Component 102 | 0.52941176470588236 103 | 104 | Ansi 5 Color 105 | 106 | Blue Component 107 | 0.4274592399597168 108 | Green Component 109 | 0.3565603494644165 110 | Red Component 111 | 0.80287587642669678 112 | 113 | Ansi 6 Color 114 | 115 | Blue Component 116 | 0.69019607843137254 117 | Green Component 118 | 0.68627450980392157 119 | Red Component 120 | 0.52941176470588236 121 | 122 | Ansi 7 Color 123 | 124 | Blue Component 125 | 0.81568627450980391 126 | Green Component 127 | 0.81568627450980391 128 | Red Component 129 | 0.81568627450980391 130 | 131 | Ansi 8 Color 132 | 133 | Blue Component 134 | 0.0 135 | Green Component 136 | 0.0 137 | Red Component 138 | 0.0 139 | 140 | Ansi 9 Color 141 | 142 | Blue Component 143 | 0.45219385623931885 144 | Green Component 145 | 0.44138213992118835 146 | Red Component 147 | 0.91699659824371338 148 | 149 | Background Color 150 | 151 | Blue Component 152 | 0.10980392156862745 153 | Green Component 154 | 0.10980392156862745 155 | Red Component 156 | 0.10980392156862745 157 | 158 | Bold Color 159 | 160 | Blue Component 161 | 0.7764706015586853 162 | Green Component 163 | 0.78431373834609985 164 | Red Component 165 | 0.77254903316497803 166 | 167 | Cursor Color 168 | 169 | Blue Component 170 | 0.7764706015586853 171 | Green Component 172 | 0.78431373834609985 173 | Red Component 174 | 0.77254903316497803 175 | 176 | Cursor Text Color 177 | 178 | Blue Component 179 | 0.12941177189350128 180 | Green Component 181 | 0.12156862765550613 182 | Red Component 183 | 0.11372549086809158 184 | 185 | Foreground Color 186 | 187 | Blue Component 188 | 0.81624037027359009 189 | Green Component 190 | 0.8162265419960022 191 | Red Component 192 | 0.81625097990036011 193 | 194 | Selected Text Color 195 | 196 | Blue Component 197 | 0.18823529411764706 198 | Green Component 199 | 0.18823529411764706 200 | Red Component 201 | 0.18823529411764706 202 | 203 | Selection Color 204 | 205 | Blue Component 206 | 0.37512439489364624 207 | Green Component 208 | 0.37464174628257751 209 | Red Component 210 | 0.16475556790828705 211 | 212 | 213 | 214 | -------------------------------------------------------------------------------- /iterm2/new_seul256.itermcolors: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Ansi 0 Color 6 | 7 | Blue Component 8 | 0.0 9 | Green Component 10 | 0.0 11 | Red Component 12 | 0.0 13 | 14 | Ansi 1 Color 15 | 16 | Blue Component 17 | 0.22055299580097198 18 | Green Component 19 | 0.23406368494033813 20 | Red Component 21 | 0.72970873117446899 22 | 23 | Ansi 10 Color 24 | 25 | Blue Component 26 | 0.52977806329727173 27 | Green Component 28 | 0.672210693359375 29 | Red Component 30 | 0.47725984454154968 31 | 32 | Ansi 11 Color 33 | 34 | Blue Component 35 | 0.69206869602203369 36 | Green Component 37 | 0.8399653434753418 38 | Red Component 39 | 0.82161557674407959 40 | 41 | Ansi 12 Color 42 | 43 | Blue Component 44 | 0.83449238538742065 45 | Green Component 46 | 0.68919539451599121 47 | Red Component 48 | 0.53378462791442871 49 | 50 | Ansi 13 Color 51 | 52 | Blue Component 53 | 0.53980922698974609 54 | Green Component 55 | 0.62489771842956543 56 | Red Component 57 | 0.89262229204177856 58 | 59 | Ansi 14 Color 60 | 61 | Blue Component 62 | 0.67317330837249756 63 | Green Component 64 | 0.68789660930633545 65 | Red Component 66 | 0.38178431987762451 67 | 68 | Ansi 15 Color 69 | 70 | Blue Component 71 | 0.79284101724624634 72 | Green Component 73 | 0.81206071376800537 74 | Red Component 75 | 0.81617259979248047 76 | 77 | Ansi 2 Color 78 | 79 | Blue Component 80 | 0.3756447434425354 81 | Green Component 82 | 0.52839154005050659 83 | Red Component 84 | 0.36508485674858093 85 | 86 | Ansi 3 Color 87 | 88 | Blue Component 89 | 0.37323266267776489 90 | Green Component 91 | 0.6455344557762146 92 | Red Component 93 | 0.83577555418014526 94 | 95 | Ansi 4 Color 96 | 97 | Blue Component 98 | 0.83449238538742065 99 | Green Component 100 | 0.68919539451599121 101 | Red Component 102 | 0.53378462791442871 103 | 104 | Ansi 5 Color 105 | 106 | Blue Component 107 | 0.4274592399597168 108 | Green Component 109 | 0.3565603494644165 110 | Red Component 111 | 0.80287587642669678 112 | 113 | Ansi 6 Color 114 | 115 | Blue Component 116 | 0.67317330837249756 117 | Green Component 118 | 0.68789660930633545 119 | Red Component 120 | 0.38178431987762451 121 | 122 | Ansi 7 Color 123 | 124 | Blue Component 125 | 0.79284101724624634 126 | Green Component 127 | 0.81206071376800537 128 | Red Component 129 | 0.81617259979248047 130 | 131 | Ansi 8 Color 132 | 133 | Blue Component 134 | 0.0 135 | Green Component 136 | 0.0 137 | Red Component 138 | 0.0 139 | 140 | Ansi 9 Color 141 | 142 | Blue Component 143 | 0.45219385623931885 144 | Green Component 145 | 0.44138213992118835 146 | Red Component 147 | 0.91699659824371338 148 | 149 | Background Color 150 | 151 | Blue Component 152 | 0.089119061085972895 153 | Green Component 154 | 0.086658860114624855 155 | Red Component 156 | 0.088978216678794839 157 | 158 | Bold Color 159 | 160 | Blue Component 161 | 0.7764706015586853 162 | Green Component 163 | 0.78431373834609985 164 | Red Component 165 | 0.77254903316497803 166 | 167 | Cursor Color 168 | 169 | Blue Component 170 | 0.7764706015586853 171 | Green Component 172 | 0.78431373834609985 173 | Red Component 174 | 0.77254903316497803 175 | 176 | Cursor Text Color 177 | 178 | Blue Component 179 | 0.12941177189350128 180 | Green Component 181 | 0.12156862765550613 182 | Red Component 183 | 0.11372549086809158 184 | 185 | Foreground Color 186 | 187 | Blue Component 188 | 0.81624037027359009 189 | Green Component 190 | 0.8162265419960022 191 | Red Component 192 | 0.81625097990036011 193 | 194 | Selected Text Color 195 | 196 | Blue Component 197 | 0.7764706015586853 198 | Green Component 199 | 0.78431373834609985 200 | Red Component 201 | 0.77254903316497803 202 | 203 | Selection Color 204 | 205 | Blue Component 206 | 0.37512439489364624 207 | Green Component 208 | 0.37464174628257751 209 | Red Component 210 | 0.16475556790828705 211 | 212 | 213 | 214 | -------------------------------------------------------------------------------- /iterm2/seoul256.itermcolors: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Ansi 0 Color 6 | 7 | Blue Component 8 | 0.0 9 | Green Component 10 | 0.0 11 | Red Component 12 | 0.0 13 | 14 | Ansi 1 Color 15 | 16 | Blue Component 17 | 0.22055299580097198 18 | Green Component 19 | 0.23406368494033813 20 | Red Component 21 | 0.72970873117446899 22 | 23 | Ansi 10 Color 24 | 25 | Blue Component 26 | 0.52977806329727173 27 | Green Component 28 | 0.672210693359375 29 | Red Component 30 | 0.47725984454154968 31 | 32 | Ansi 11 Color 33 | 34 | Blue Component 35 | 0.69206869602203369 36 | Green Component 37 | 0.8399653434753418 38 | Red Component 39 | 0.82161557674407959 40 | 41 | Ansi 12 Color 42 | 43 | Blue Component 44 | 0.83449238538742065 45 | Green Component 46 | 0.68919539451599121 47 | Red Component 48 | 0.53378462791442871 49 | 50 | Ansi 13 Color 51 | 52 | Blue Component 53 | 0.53980922698974609 54 | Green Component 55 | 0.62489771842956543 56 | Red Component 57 | 0.89262229204177856 58 | 59 | Ansi 14 Color 60 | 61 | Blue Component 62 | 0.67317330837249756 63 | Green Component 64 | 0.68789660930633545 65 | Red Component 66 | 0.38178431987762451 67 | 68 | Ansi 15 Color 69 | 70 | Blue Component 71 | 0.79284101724624634 72 | Green Component 73 | 0.81206071376800537 74 | Red Component 75 | 0.81617259979248047 76 | 77 | Ansi 2 Color 78 | 79 | Blue Component 80 | 0.3756447434425354 81 | Green Component 82 | 0.52839154005050659 83 | Red Component 84 | 0.36508485674858093 85 | 86 | Ansi 3 Color 87 | 88 | Blue Component 89 | 0.37323266267776489 90 | Green Component 91 | 0.6455344557762146 92 | Red Component 93 | 0.83577555418014526 94 | 95 | Ansi 4 Color 96 | 97 | Blue Component 98 | 0.83449238538742065 99 | Green Component 100 | 0.68919539451599121 101 | Red Component 102 | 0.53378462791442871 103 | 104 | Ansi 5 Color 105 | 106 | Blue Component 107 | 0.4274592399597168 108 | Green Component 109 | 0.3565603494644165 110 | Red Component 111 | 0.80287587642669678 112 | 113 | Ansi 6 Color 114 | 115 | Blue Component 116 | 0.67317330837249756 117 | Green Component 118 | 0.68789660930633545 119 | Red Component 120 | 0.38178431987762451 121 | 122 | Ansi 7 Color 123 | 124 | Blue Component 125 | 0.79284101724624634 126 | Green Component 127 | 0.81206071376800537 128 | Red Component 129 | 0.81617259979248047 130 | 131 | Ansi 8 Color 132 | 133 | Blue Component 134 | 0.0 135 | Green Component 136 | 0.0 137 | Red Component 138 | 0.0 139 | 140 | Ansi 9 Color 141 | 142 | Blue Component 143 | 0.45219385623931885 144 | Green Component 145 | 0.44138213992118835 146 | Red Component 147 | 0.91699659824371338 148 | 149 | Background Color 150 | 151 | Blue Component 152 | 0.15055646002292633 153 | Green Component 154 | 0.14731092751026154 155 | Red Component 156 | 0.1504797488451004 157 | 158 | Bold Color 159 | 160 | Blue Component 161 | 0.7764706015586853 162 | Green Component 163 | 0.78431373834609985 164 | Red Component 165 | 0.77254903316497803 166 | 167 | Cursor Color 168 | 169 | Blue Component 170 | 0.7764706015586853 171 | Green Component 172 | 0.78431373834609985 173 | Red Component 174 | 0.77254903316497803 175 | 176 | Cursor Text Color 177 | 178 | Blue Component 179 | 0.12941177189350128 180 | Green Component 181 | 0.12156862765550613 182 | Red Component 183 | 0.11372549086809158 184 | 185 | Foreground Color 186 | 187 | Blue Component 188 | 0.81624037027359009 189 | Green Component 190 | 0.8162265419960022 191 | Red Component 192 | 0.81625097990036011 193 | 194 | Selected Text Color 195 | 196 | Blue Component 197 | 0.7764706015586853 198 | Green Component 199 | 0.78431373834609985 200 | Red Component 201 | 0.77254903316497803 202 | 203 | Selection Color 204 | 205 | Blue Component 206 | 0.37512439489364624 207 | Green Component 208 | 0.37464174628257751 209 | Red Component 210 | 0.16475556790828705 211 | 212 | 213 | 214 | -------------------------------------------------------------------------------- /online-status: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | export status='●'; 4 | 5 | if ping -c 1 www.google.com &> /dev/null 6 | then 7 | export colour=154; 8 | else 9 | export colour=160; 10 | fi 11 | echo "#[bg=default,fg=colour"$colour"] "$status" $TMUX_PLS_LEFT_LIGHT#[default]" 12 | -------------------------------------------------------------------------------- /packages.txt: -------------------------------------------------------------------------------- 1 | aircrack-ng 2 | brew-cask 3 | check 4 | coreutils 5 | ctags 6 | emacs 7 | fcgi 8 | gawk 9 | gcc 10 | ghc 11 | git 12 | gnupg 13 | go 14 | irssi 15 | libksba 16 | libxml2 17 | libyaml 18 | macvim 19 | mpg123 20 | mplayer 21 | mutt 22 | mysql 23 | neovim 24 | ngrep 25 | nmap 26 | node 27 | ode 28 | ossp-uuid 29 | portaudio 30 | postgresql 31 | primecoin 32 | python3 33 | reattach-to-user-namespace 34 | redis 35 | sdl_mixer 36 | sdl_net 37 | sdl_ttf 38 | ski 39 | spark 40 | the_silver_searcher 41 | tig 42 | tmate 43 | tor 44 | tree 45 | unar 46 | unixodbc 47 | vifm 48 | vim 49 | w3m 50 | weechat 51 | wemux 52 | wget 53 | wxmac 54 | xolominer 55 | zsh 56 | -------------------------------------------------------------------------------- /ruby/gemrc: -------------------------------------------------------------------------------- 1 | --- 2 | :update_sources: true 3 | :sources: 4 | - http://rubygems.org 5 | :benchmark: false 6 | :bulk_threshold: 1000 7 | :backtrace: false 8 | :verbose: true 9 | gem: --no-ri --no-rdoc 10 | 11 | -------------------------------------------------------------------------------- /ruby/irbrc: -------------------------------------------------------------------------------- 1 | # encoding: utf-8 2 | require 'rubygems' 3 | # require 'interactive_editor' 4 | 5 | IRB.conf[:SAVE_HISTORY] = 1000 6 | IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history" 7 | IRB.conf[:PROMPT_MODE] = :SIMPLE 8 | IRB.conf[:USE_READLINE] = false 9 | -------------------------------------------------------------------------------- /ruby/rubocop.yml: -------------------------------------------------------------------------------- 1 | LineLength: 2 | Enabled: false 3 | 4 | PercentLiteralDelimiters: 5 | Enabled: false 6 | 7 | MethodLength: 8 | Enabled: false 9 | 10 | HashAlignment: 11 | Enabled: false 12 | 13 | ParameterAlignment: 14 | Enabled: false 15 | 16 | ClassAndModuleChildren: 17 | Enabled: false 18 | 19 | ClassLength: 20 | Enabled: false 21 | 22 | RaiseArgs: 23 | Enabled: false 24 | 25 | RescueException: 26 | Enabled: false 27 | 28 | Documentation: 29 | Enabled: false 30 | 31 | Lambda: 32 | Enabled: false 33 | 34 | LambdaCall: 35 | Enabled: false 36 | 37 | # Common configuration. 38 | AllCops: 39 | # Include gemspec and Rakefile 40 | Include: 41 | - '**/*.gemspec' 42 | - '**/*.podspec' 43 | - '**/*.jbuilder' 44 | - '**/*.rake' 45 | - '**/Gemfile' 46 | - '**/Rakefile' 47 | - '**/Capfile' 48 | - '**/Guardfile' 49 | - '**/Podfile' 50 | - '**/Thorfile' 51 | - '**/Vagrantfile' 52 | Exclude: 53 | 54 | Layout/SpaceInsideBlockBraces: 55 | Enabled: false 56 | 57 | Layout/SpaceBeforeBlockBraces: 58 | Enabled: false 59 | # Allow safe assignment in conditions. 60 | Style/ParenthesesAroundCondition: 61 | AllowSafeAssignment: true 62 | -------------------------------------------------------------------------------- /scripts/git_commit_file_analysis.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | call_flog() { 4 | echo "Flog:" 5 | flog $file | head -2 6 | flog $file | grep '^\s*\d[1-9].\d.\+:\d\+$' 7 | } 8 | 9 | call_reek() { 10 | echo "\nReek:" 11 | reek $file 12 | } 13 | 14 | call_rubocop() { 15 | echo "\nRuboCop:" 16 | rubocop $file | tail -n +4 | sed '$d' 17 | } 18 | 19 | call_spellcheker() { 20 | echo "\nCodespell:" 21 | /Users/anton/bin/codespell/codespell.py $file 22 | } 23 | 24 | analyse_for_ruby_file() { 25 | ruby_file='^.+\.rb$' 26 | test_or_config_file='^(spec|test|config|db).+\.rb$' 27 | schema_file='^.+schema.rb$' 28 | if [[ ${file} =~ $ruby_file ]]; then 29 | echo "\033[33;36mCHECKING: \033[33;12m" $file "\033[0m" 30 | 31 | if ! [[ ${file} =~ $test_file ]]; then 32 | call_flog $file 33 | call_reek $file 34 | fi 35 | if ! [[ ${file} =~ $schema_file ]]; then 36 | call_rubocop $file 37 | fi 38 | fi 39 | } 40 | 41 | files=`git diff-tree --no-commit-id --name-only -r HEAD` 42 | for file in $files 43 | do 44 | analyse_for_ruby_file $file 45 | call_spellcheker $file 46 | echo "\n" 47 | done 48 | 49 | /usr/local/bin/ctags -R * 50 | -------------------------------------------------------------------------------- /tmux: -------------------------------------------------------------------------------- 1 | ########################## 2 | # Plugins 3 | ########################### 4 | # 5 | # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) 6 | run -b '~/.tmux/plugins/tpm/tpm' 7 | 8 | # List of plugins 9 | set -g @plugin 'tmux-plugins/tpm' 10 | set -g @plugin 'tmux-plugins/tmux-sensible' 11 | 12 | set -g @plugin 'tmux-plugins/tmux-battery' 13 | 14 | 15 | ########################## 16 | # General 17 | ########################### 18 | 19 | set-option -g set-titles on 20 | 21 | set-option -g default-command "reattach-to-user-namespace -l $SHELL" 22 | 23 | # start window index of 1 24 | set-option -g base-index 1 25 | setw -g pane-base-index 1 26 | 27 | # vim-tmux-navigator plugin 28 | # Smart pane switching with awareness of vim splits 29 | bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|nvim|vim?)(diff)?$' && tmux send-keys C-h) || tmux select-pane -L" 30 | bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|nvim|vim?)(diff)?$' && tmux send-keys C-j) || tmux select-pane -D" 31 | bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|nvim|vim?)(diff)?$' && tmux send-keys C-k) || tmux select-pane -U" 32 | bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|nvim|vim?)(diff)?$' && tmux send-keys C-l) || tmux select-pane -R" 33 | # bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|nvim|vim?)(diff)?$' && tmux send-keys 'C-\\') || tmux select-pane -l" 34 | 35 | # UTF-8 36 | #set-option -g status-utf8 on 37 | 38 | # supposedly fixes pausing in vim 39 | set-option -sg escape-time 1 40 | 41 | # Mouse 42 | # ==== 43 | # Make mouse useful in copy mode 44 | set -g mouse on 45 | # Scroll History 46 | set -g history-limit 30000 47 | # Set ability to capture on start and restore on exit window data when running an application 48 | setw -g alternate-screen on 49 | # Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access. 50 | set -s escape-time 50 51 | # ==== 52 | 53 | # vi 54 | # ==== 55 | setw -g mode-keys vi 56 | set -g status-keys vi 57 | 58 | # setup 'v' to begin selection as in vim 59 | bind-key -T copy-mode-vi v send-keys -X begin-selection 60 | 61 | # update default binding of `Enter` to also use copy-pipe (os x) 62 | unbind-key -T copy-mode-vi Enter 63 | bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" 64 | bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" 65 | 66 | # map vi movement keys as pane movement keys 67 | bind h select-pane -L 68 | bind j select-pane -D 69 | bind k select-pane -U 70 | bind l select-pane -R 71 | 72 | # use vi left and right to cycle thru panes 73 | bind -r C-h select-window -t :- 74 | bind -r C-l select-window -t :+ 75 | 76 | # resize panes using vi keys 77 | bind -r H resize-pane -L 5 78 | bind -r J resize-pane -D 5 79 | bind -r K resize-pane -U 5 80 | bind -r L resize-pane -R 5 81 | # ==== 82 | 83 | # act like GNU screen 84 | unbind C-b 85 | set -g prefix C-a 86 | # Allow C-A a to send C-A to application 87 | bind C-a send-prefix 88 | bind r source-file ~/.tmux.conf \; display-message "Config reloaded." 89 | 90 | # Reload key 91 | bind r source-file ~/.tmux.conf 92 | 93 | # look good 94 | set-option -g default-terminal "screen-256color-bce" 95 | set -g history-limit 5000 96 | setw -g xterm-keys on 97 | 98 | # Rebinding the pane splitting bindings 99 | # unbind % # Remove default bindings since we're replacing 100 | bind | split-window -h 101 | bind - split-window -v 102 | 103 | # Open panes in new window 104 | unbind v 105 | unbind n 106 | bind v send-keys " ~/tmux-panes -h" C-m 107 | bind n send-keys " ~/tmux-panes -v" C-m 108 | 109 | # Set window notifications 110 | setw -g monitor-activity on 111 | set -g visual-activity on 112 | 113 | # disable bell 114 | #set-option -g bell-on-alert off 115 | set-option -g bell-action none 116 | set-option -g visual-bell off 117 | set-option -g visual-activity off 118 | #set-option -g visual-content off 119 | # it's work!!! 120 | setw -g monitor-activity off 121 | set -g visual-activity off 122 | 123 | # panes 124 | 125 | bind-key -r J resize-pane -D 5 126 | bind-key -r K resize-pane -U 5 127 | bind-key -r H resize-pane -L 5 128 | bind-key -r L resize-pane -R 5 129 | 130 | ########################## 131 | # Status Bar 132 | ########################### 133 | 134 | # enable UTF-8 support in status bar 135 | #set -g status-utf8 on 136 | 137 | # set refresh interval for status bar 138 | set -g status-interval 30 139 | 140 | # show session, window, pane in left status bar 141 | set -g status-left-length 30 142 | set -g status-left '#S #I:#P' 143 | 144 | # https://github.com/tmux-plugins/tmux-online-status#configure-icons 145 | set -g status-interval 30 146 | set -g @online_icon "on" 147 | set -g @offline_icon "off" 148 | 149 | # show hostname, date, time, and battery in right status bar 150 | # set-option -g status-right '#(/usr/local/bin/battery -t) | %H:%M %d/%m/%y#(/usr/local/bin/online-status -t)' 151 | set-option -g status-right '#{battery_icon} #{battery_percentage} | %H:%M %d/%m/%y#(/usr/local/bin/online-status -t)' 152 | set -g status-right-length 30 153 | 154 | # wm window title string (uses statusbar variables) 155 | set -g set-titles-string "tmux.#I.#W" 156 | set-window-option -g automatic-rename off 157 | 158 | # Refresh the status bar every 30 seconds. 159 | set-option -g status-interval 30 160 | set-option -g display-time 1000 161 | 162 | # # The status bar itself. 163 | set -g status-justify centre 164 | 165 | ########################### 166 | # Colors 167 | ########################### 168 | 169 | # color status bar 170 | set-option -g status-bg colour235 171 | set-option -g status-fg colour245 172 | 173 | set-option -g message-bg colour235 174 | set-option -g message-fg white 175 | 176 | # highlight current window 177 | set-window-option -g window-status-current-fg black 178 | set-window-option -g window-status-current-bg blue 179 | 180 | set-window-option -g window-status-fg white 181 | set-window-option -g window-status-bg colour235 182 | 183 | # set color of active pane 184 | set -g pane-border-fg colour236 185 | set -g pane-border-bg black 186 | set -g pane-active-border-fg blue 187 | set -g pane-active-border-bg black 188 | -------------------------------------------------------------------------------- /vim/.netrwhist: -------------------------------------------------------------------------------- 1 | let g:netrw_dirhistmax =10 2 | let g:netrw_dirhist_cnt =4 3 | let g:netrw_dirhist_1='/Users/anton/work/gems/sidekiq' 4 | let g:netrw_dirhist_2='/Users/anton/.rvm/gems/ruby-2.2.0/gems/redis-3.2.1' 5 | let g:netrw_dirhist_3='/Users/anton/.rvm/gems/ruby-2.2.2/gems/redis-3.2.1' 6 | let g:netrw_dirhist_4='/Users/anton/.rvm/gems/ruby-2.2.2/gems/bundler-1.9.6' 7 | -------------------------------------------------------------------------------- /vim/after/plugin/ctrlp.vim: -------------------------------------------------------------------------------- 1 | if !exists('g:loaded_ctrlp') || !g:loaded_ctrlp 2 | finish 3 | endif 4 | 5 | let s:save_cpo = &cpo 6 | set cpo&vim 7 | 8 | command! CtrlPCmdPalette call ctrlp#init(ctrlp#cmdpalette#id()) 9 | 10 | let &cpo = s:save_cpo 11 | unlet s:save_cpo 12 | -------------------------------------------------------------------------------- /vim/after/syntax/html.vim: -------------------------------------------------------------------------------- 1 | syn include syntax/css/vim-coloresque.vim 2 | -------------------------------------------------------------------------------- /vim/after/syntax/less.vim: -------------------------------------------------------------------------------- 1 | syn include syntax/css/vim-coloresque.vim 2 | -------------------------------------------------------------------------------- /vim/after/syntax/sass.vim: -------------------------------------------------------------------------------- 1 | syn include syntax/css/vim-coloresque.vim 2 | -------------------------------------------------------------------------------- /vim/after/syntax/scss.vim: -------------------------------------------------------------------------------- 1 | syn include syntax/css/vim-coloresque.vim 2 | -------------------------------------------------------------------------------- /vim/after/syntax/stylus.vim: -------------------------------------------------------------------------------- 1 | syn include syntax/css/vim-coloresque.vim 2 | -------------------------------------------------------------------------------- /vim/after/syntax/vim.vim: -------------------------------------------------------------------------------- 1 | syn include syntax/css/vim-coloresque.vim 2 | -------------------------------------------------------------------------------- /vim/bundle/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davydovanton/dotfiles/a99d34047a95373c0b4d00af4882e59f4ee02556/vim/bundle/.DS_Store -------------------------------------------------------------------------------- /vim/colors/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davydovanton/dotfiles/a99d34047a95373c0b4d00af4882e59f4ee02556/vim/colors/.DS_Store -------------------------------------------------------------------------------- /vim/colors/base16-ocean.vim: -------------------------------------------------------------------------------- 1 | " Base16 Ocean (https://github.com/chriskempson/base16) 2 | " Scheme: Chris Kempson (http://chriskempson.com) 3 | 4 | " This enables the coresponding base16-shell script to run so that 5 | " :colorscheme works in terminals supported by base16-shell scripts 6 | " User must set this variable in .vimrc 7 | " let g:base16_shell_path=base16-builder/output/shell/ 8 | if !has('gui_running') 9 | if exists("g:base16_shell_path") 10 | execute "silent !/bin/sh ".g:base16_shell_path."/base16-ocean.".&background.".sh" 11 | endif 12 | endif 13 | 14 | " GUI color definitions 15 | let s:gui00 = "2b303b" 16 | let s:gui01 = "343d46" 17 | let s:gui02 = "4f5b66" 18 | let s:gui03 = "65737e" 19 | let s:gui04 = "a7adba" 20 | let s:gui05 = "c0c5ce" 21 | let s:gui06 = "dfe1e8" 22 | let s:gui07 = "eff1f5" 23 | let s:gui08 = "bf616a" 24 | let s:gui09 = "d08770" 25 | let s:gui0A = "ebcb8b" 26 | let s:gui0B = "a3be8c" 27 | let s:gui0C = "96b5b4" 28 | let s:gui0D = "8fa1b3" 29 | let s:gui0E = "b48ead" 30 | let s:gui0F = "ab7967" 31 | 32 | " Terminal color definitions 33 | let s:cterm00 = "00" 34 | let s:cterm03 = "08" 35 | let s:cterm05 = "07" 36 | let s:cterm07 = "15" 37 | let s:cterm08 = "01" 38 | let s:cterm0A = "03" 39 | let s:cterm0B = "02" 40 | let s:cterm0C = "06" 41 | let s:cterm0D = "04" 42 | let s:cterm0E = "05" 43 | if exists('base16colorspace') && base16colorspace == "256" 44 | let s:cterm01 = "18" 45 | let s:cterm02 = "19" 46 | let s:cterm04 = "20" 47 | let s:cterm06 = "21" 48 | let s:cterm09 = "16" 49 | let s:cterm0F = "17" 50 | else 51 | let s:cterm01 = "10" 52 | let s:cterm02 = "11" 53 | let s:cterm04 = "12" 54 | let s:cterm06 = "13" 55 | let s:cterm09 = "09" 56 | let s:cterm0F = "14" 57 | endif 58 | 59 | " Theme setup 60 | hi clear 61 | syntax reset 62 | let g:colors_name = "base16-ocean" 63 | 64 | " Highlighting function 65 | fun hi(group, guifg, guibg, ctermfg, ctermbg, attr) 66 | if a:guifg != "" 67 | exec "hi " . a:group . " guifg=#" . s:gui(a:guifg) 68 | endif 69 | if a:guibg != "" 70 | exec "hi " . a:group . " guibg=#" . s:gui(a:guibg) 71 | endif 72 | if a:ctermfg != "" 73 | exec "hi " . a:group . " ctermfg=" . s:cterm(a:ctermfg) 74 | endif 75 | if a:ctermbg != "" 76 | exec "hi " . a:group . " ctermbg=" . s:cterm(a:ctermbg) 77 | endif 78 | if a:attr != "" 79 | exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr 80 | endif 81 | endfun 82 | 83 | " Return GUI color for light/dark variants 84 | fun s:gui(color) 85 | if &background == "dark" 86 | return a:color 87 | endif 88 | 89 | if a:color == s:gui00 90 | return s:gui07 91 | elseif a:color == s:gui01 92 | return s:gui06 93 | elseif a:color == s:gui02 94 | return s:gui05 95 | elseif a:color == s:gui03 96 | return s:gui04 97 | elseif a:color == s:gui04 98 | return s:gui03 99 | elseif a:color == s:gui05 100 | return s:gui02 101 | elseif a:color == s:gui06 102 | return s:gui01 103 | elseif a:color == s:gui07 104 | return s:gui00 105 | endif 106 | 107 | return a:color 108 | endfun 109 | 110 | " Return terminal color for light/dark variants 111 | fun s:cterm(color) 112 | if &background == "dark" 113 | return a:color 114 | endif 115 | 116 | if a:color == s:cterm00 117 | return s:cterm07 118 | elseif a:color == s:cterm01 119 | return s:cterm06 120 | elseif a:color == s:cterm02 121 | return s:cterm05 122 | elseif a:color == s:cterm03 123 | return s:cterm04 124 | elseif a:color == s:cterm04 125 | return s:cterm03 126 | elseif a:color == s:cterm05 127 | return s:cterm02 128 | elseif a:color == s:cterm06 129 | return s:cterm01 130 | elseif a:color == s:cterm07 131 | return s:cterm00 132 | endif 133 | 134 | return a:color 135 | endfun 136 | 137 | " Vim editor colors 138 | call hi("Bold", "", "", "", "", "bold") 139 | call hi("Debug", s:gui08, "", s:cterm08, "", "") 140 | call hi("Directory", s:gui0D, "", s:cterm0D, "", "") 141 | call hi("ErrorMsg", s:gui08, s:gui00, s:cterm08, s:cterm00, "") 142 | call hi("Exception", s:gui08, "", s:cterm08, "", "") 143 | call hi("FoldColumn", "", s:gui01, "", s:cterm01, "") 144 | call hi("Folded", s:gui03, s:gui01, s:cterm03, s:cterm01, "") 145 | call hi("IncSearch", s:gui01, s:gui09, s:cterm01, s:cterm09, "none") 146 | call hi("Italic", "", "", "", "", "none") 147 | call hi("Macro", s:gui08, "", s:cterm08, "", "") 148 | call hi("MatchParen", s:gui00, s:gui03, s:cterm00, s:cterm03, "") 149 | call hi("ModeMsg", s:gui0B, "", s:cterm0B, "", "") 150 | call hi("MoreMsg", s:gui0B, "", s:cterm0B, "", "") 151 | call hi("Question", s:gui0D, "", s:cterm0D, "", "") 152 | call hi("Search", s:gui03, s:gui0A, s:cterm03, s:cterm0A, "") 153 | call hi("SpecialKey", s:gui03, "", s:cterm03, "", "") 154 | call hi("TooLong", s:gui08, "", s:cterm08, "", "") 155 | call hi("Underlined", s:gui08, "", s:cterm08, "", "") 156 | call hi("Visual", "", s:gui02, "", s:cterm02, "") 157 | call hi("VisualNOS", s:gui08, "", s:cterm08, "", "") 158 | call hi("WarningMsg", s:gui08, "", s:cterm08, "", "") 159 | call hi("WildMenu", s:gui08, "", s:cterm08, "", "") 160 | call hi("Title", s:gui0D, "", s:cterm0D, "", "none") 161 | call hi("Conceal", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "") 162 | call hi("Cursor", s:gui00, s:gui05, s:cterm00, s:cterm05, "") 163 | call hi("NonText", s:gui03, "", s:cterm03, "", "") 164 | call hi("Normal", s:gui05, s:gui00, s:cterm05, s:cterm00, "") 165 | call hi("LineNr", s:gui03, s:gui01, s:cterm03, s:cterm01, "") 166 | call hi("SignColumn", s:gui03, s:gui01, s:cterm03, s:cterm01, "") 167 | call hi("SpecialKey", s:gui03, "", s:cterm03, "", "") 168 | call hi("StatusLine", s:gui04, s:gui02, s:cterm04, s:cterm02, "none") 169 | call hi("StatusLineNC", s:gui03, s:gui01, s:cterm03, s:cterm01, "none") 170 | call hi("VertSplit", s:gui02, s:gui02, s:cterm02, s:cterm02, "none") 171 | call hi("ColorColumn", "", s:gui01, "", s:cterm01, "none") 172 | call hi("CursorColumn", "", s:gui01, "", s:cterm01, "none") 173 | call hi("CursorLine", "", s:gui01, "", s:cterm01, "none") 174 | call hi("CursorLineNr", s:gui03, s:gui01, s:cterm03, s:cterm01, "") 175 | call hi("PMenu", s:gui04, s:gui01, s:cterm04, s:cterm01, "none") 176 | call hi("PMenuSel", s:gui01, s:gui04, s:cterm01, s:cterm04, "") 177 | call hi("TabLine", s:gui03, s:gui01, s:cterm03, s:cterm01, "none") 178 | call hi("TabLineFill", s:gui03, s:gui01, s:cterm03, s:cterm01, "none") 179 | call hi("TabLineSel", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "none") 180 | 181 | " Standard syntax highlighting 182 | call hi("Boolean", s:gui09, "", s:cterm09, "", "") 183 | call hi("Character", s:gui08, "", s:cterm08, "", "") 184 | call hi("Comment", s:gui03, "", s:cterm03, "", "") 185 | call hi("Conditional", s:gui0E, "", s:cterm0E, "", "") 186 | call hi("Constant", s:gui09, "", s:cterm09, "", "") 187 | call hi("Define", s:gui0E, "", s:cterm0E, "", "none") 188 | call hi("Delimiter", s:gui0F, "", s:cterm0F, "", "") 189 | call hi("Float", s:gui09, "", s:cterm09, "", "") 190 | call hi("Function", s:gui0D, "", s:cterm0D, "", "") 191 | call hi("Identifier", s:gui08, "", s:cterm08, "", "none") 192 | call hi("Include", s:gui0D, "", s:cterm0D, "", "") 193 | call hi("Keyword", s:gui0E, "", s:cterm0E, "", "") 194 | call hi("Label", s:gui0A, "", s:cterm0A, "", "") 195 | call hi("Number", s:gui09, "", s:cterm09, "", "") 196 | call hi("Operator", s:gui05, "", s:cterm05, "", "none") 197 | call hi("PreProc", s:gui0A, "", s:cterm0A, "", "") 198 | call hi("Repeat", s:gui0A, "", s:cterm0A, "", "") 199 | call hi("Special", s:gui0C, "", s:cterm0C, "", "") 200 | call hi("SpecialChar", s:gui0F, "", s:cterm0F, "", "") 201 | call hi("Statement", s:gui08, "", s:cterm08, "", "") 202 | call hi("StorageClass", s:gui0A, "", s:cterm0A, "", "") 203 | call hi("String", s:gui0B, "", s:cterm0B, "", "") 204 | call hi("Structure", s:gui0E, "", s:cterm0E, "", "") 205 | call hi("Tag", s:gui0A, "", s:cterm0A, "", "") 206 | call hi("Todo", s:gui0A, s:gui01, s:cterm0A, s:cterm01, "") 207 | call hi("Type", s:gui0A, "", s:cterm0A, "", "none") 208 | call hi("Typedef", s:gui0A, "", s:cterm0A, "", "") 209 | 210 | " C highlighting 211 | call hi("cOperator", s:gui0C, "", s:cterm0C, "", "") 212 | call hi("cPreCondit", s:gui0E, "", s:cterm0E, "", "") 213 | 214 | " CSS highlighting 215 | call hi("cssBraces", s:gui05, "", s:cterm05, "", "") 216 | call hi("cssClassName", s:gui0E, "", s:cterm0E, "", "") 217 | call hi("cssColor", s:gui0C, "", s:cterm0C, "", "") 218 | 219 | " Diff highlighting 220 | call hi("DiffAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "") 221 | call hi("DiffChange", s:gui03, s:gui01, s:cterm03, s:cterm01, "") 222 | call hi("DiffDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "") 223 | call hi("DiffText", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "") 224 | call hi("DiffAdded", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "") 225 | call hi("DiffFile", s:gui08, s:gui00, s:cterm08, s:cterm00, "") 226 | call hi("DiffNewFile", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "") 227 | call hi("DiffLine", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "") 228 | call hi("DiffRemoved", s:gui08, s:gui00, s:cterm08, s:cterm00, "") 229 | 230 | " Git highlighting 231 | call hi("gitCommitOverflow", s:gui08, "", s:cterm08, "", "") 232 | call hi("gitCommitSummary", s:gui0B, "", s:cterm0B, "", "") 233 | 234 | " GitGutter highlighting 235 | call hi("GitGutterAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "") 236 | call hi("GitGutterChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "") 237 | call hi("GitGutterDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "") 238 | call hi("GitGutterChangeDelete", s:gui0E, s:gui01, s:cterm0E, s:cterm01, "") 239 | 240 | " HTML highlighting 241 | call hi("htmlBold", s:gui0A, "", s:cterm0A, "", "") 242 | call hi("htmlItalic", s:gui0E, "", s:cterm0E, "", "") 243 | call hi("htmlEndTag", s:gui05, "", s:cterm05, "", "") 244 | call hi("htmlTag", s:gui05, "", s:cterm05, "", "") 245 | 246 | " JavaScript highlighting 247 | call hi("javaScript", s:gui05, "", s:cterm05, "", "") 248 | call hi("javaScriptBraces", s:gui05, "", s:cterm05, "", "") 249 | call hi("javaScriptNumber", s:gui09, "", s:cterm09, "", "") 250 | 251 | " Markdown highlighting 252 | call hi("markdownCode", s:gui0B, "", s:cterm0B, "", "") 253 | call hi("markdownError", s:gui05, s:gui00, s:cterm05, s:cterm00, "") 254 | call hi("markdownCodeBlock", s:gui0B, "", s:cterm0B, "", "") 255 | call hi("markdownHeadingDelimiter", s:gui0D, "", s:cterm0D, "", "") 256 | 257 | " NERDTree highlighting 258 | call hi("NERDTreeDirSlash", s:gui0D, "", s:cterm0D, "", "") 259 | call hi("NERDTreeExecFile", s:gui05, "", s:cterm05, "", "") 260 | 261 | " PHP highlighting 262 | call hi("phpMemberSelector", s:gui05, "", s:cterm05, "", "") 263 | call hi("phpComparison", s:gui05, "", s:cterm05, "", "") 264 | call hi("phpParent", s:gui05, "", s:cterm05, "", "") 265 | 266 | " Python highlighting 267 | call hi("pythonOperator", s:gui0E, "", s:cterm0E, "", "") 268 | call hi("pythonRepeat", s:gui0E, "", s:cterm0E, "", "") 269 | 270 | " Ruby highlighting 271 | call hi("rubyAttribute", s:gui0D, "", s:cterm0D, "", "") 272 | call hi("rubyConstant", s:gui0A, "", s:cterm0A, "", "") 273 | call hi("rubyInterpolation", s:gui0B, "", s:cterm0B, "", "") 274 | call hi("rubyInterpolationDelimiter", s:gui0F, "", s:cterm0F, "", "") 275 | call hi("rubyRegexp", s:gui0C, "", s:cterm0C, "", "") 276 | call hi("rubySymbol", s:gui0B, "", s:cterm0B, "", "") 277 | call hi("rubyStringDelimiter", s:gui0B, "", s:cterm0B, "", "") 278 | 279 | " SASS highlighting 280 | call hi("sassidChar", s:gui08, "", s:cterm08, "", "") 281 | call hi("sassClassChar", s:gui09, "", s:cterm09, "", "") 282 | call hi("sassInclude", s:gui0E, "", s:cterm0E, "", "") 283 | call hi("sassMixing", s:gui0E, "", s:cterm0E, "", "") 284 | call hi("sassMixinName", s:gui0D, "", s:cterm0D, "", "") 285 | 286 | " Signify highlighting 287 | call hi("SignifySignAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "") 288 | call hi("SignifySignChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "") 289 | call hi("SignifySignDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "") 290 | 291 | " Spelling highlighting 292 | call hi("SpellBad", "", s:gui00, "", s:cterm00, "undercurl") 293 | call hi("SpellLocal", "", s:gui00, "", s:cterm00, "undercurl") 294 | call hi("SpellCap", "", s:gui00, "", s:cterm00, "undercurl") 295 | call hi("SpellRare", "", s:gui00, "", s:cterm00, "undercurl") 296 | 297 | " Remove functions 298 | delf hi 299 | delf gui 300 | delf cterm 301 | 302 | " Remove color variables 303 | unlet s:gui00 s:gui01 s:gui02 s:gui03 s:gui04 s:gui05 s:gui06 s:gui07 s:gui08 s:gui09 s:gui0A s:gui0B s:gui0C s:gui0D s:gui0E s:gui0F 304 | unlet s:cterm00 s:cterm01 s:cterm02 s:cterm03 s:cterm04 s:cterm05 s:cterm06 s:cterm07 s:cterm08 s:cterm09 s:cterm0A s:cterm0B s:cterm0C s:cterm0D s:cterm0E s:cterm0F 305 | -------------------------------------------------------------------------------- /vim/colors/darcksoul.vim: -------------------------------------------------------------------------------- 1 | " Vim color file - corporation_modified 2 | " Generated by http://bytefluent.com/vivify 2015-01-26 3 | set background=dark 4 | if version > 580 5 | hi clear 6 | if exists("syntax_on") 7 | syntax reset 8 | endif 9 | endif 10 | 11 | set t_Co=256 12 | let g:colors_name = "corporation_modified" 13 | 14 | hi IncSearch guifg=#000000 guibg=#ffffff guisp=#ffffff gui=NONE ctermfg=NONE ctermbg=15 cterm=NONE 15 | hi WildMenu guifg=#000000 guibg=#A1A6A8 guisp=#A1A6A8 gui=NONE ctermfg=NONE ctermbg=248 cterm=NONE 16 | hi SignColumn guifg=#192224 guibg=#536991 guisp=#536991 gui=NONE ctermfg=235 ctermbg=60 cterm=NONE 17 | hi SpecialComment guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 18 | hi Typedef guifg=#536991 guibg=NONE guisp=NONE gui=NONE ctermfg=60 ctermbg=NONE cterm=NONE 19 | hi Title guifg=#a8a8a8 guibg=#192224 guisp=#192224 gui=NONE ctermfg=248 ctermbg=235 cterm=NONE 20 | hi Folded guifg=#000000 guibg=#545454 guisp=#545454 gui=NONE ctermfg=NONE ctermbg=240 cterm=NONE 21 | hi PreCondit guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 22 | hi Include guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 23 | hi TabLineSel guifg=#000000 guibg=#363636 guisp=#363636 gui=NONE ctermfg=NONE ctermbg=237 cterm=NONE 24 | hi StatusLineNC guifg=#262626 guibg=#4e4e4e guisp=#4e4e4e gui=NONE ctermfg=235 ctermbg=239 cterm=NONE 25 | "hi CTagsMember -- no settings -- 26 | hi NonText guifg=#4e4e4e guibg=NONE guisp=NONE gui=NONE ctermfg=239 ctermbg=NONE cterm=NONE 27 | "hi CTagsGlobalConstant -- no settings -- 28 | hi DiffText guifg=#5f0000 guibg=#1c1c1c guisp=#1c1c1c gui=NONE ctermfg=52 ctermbg=234 cterm=NONE 29 | hi ErrorMsg guifg=#A1A6A8 guibg=#912C00 guisp=#912C00 gui=NONE ctermfg=248 ctermbg=88 cterm=NONE 30 | hi Ignore guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 31 | hi Debug guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 32 | hi PMenuSbar guifg=#000000 guibg=#848688 guisp=#848688 gui=NONE ctermfg=NONE ctermbg=102 cterm=NONE 33 | hi Identifier guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 34 | hi SpecialChar guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 35 | hi Conditional guifg=#000000 guibg=NONE guisp=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE 36 | hi StorageClass guifg=#536991 guibg=NONE guisp=NONE gui=NONE ctermfg=60 ctermbg=NONE cterm=NONE 37 | hi Todo guifg=#ffffff guibg=#c4236c guisp=#c4236c gui=bold ctermfg=15 ctermbg=1 cterm=bold 38 | hi Special guifg=#70997e guibg=NONE guisp=NONE gui=NONE ctermfg=65 ctermbg=NONE cterm=NONE 39 | hi LineNr guifg=#4e4e4e guibg=NONE guisp=NONE gui=NONE ctermfg=239 ctermbg=NONE cterm=NONE 40 | hi StatusLine guifg=#000000 guibg=#363636 guisp=#363636 gui=NONE ctermfg=NONE ctermbg=237 cterm=NONE 41 | hi Normal guifg=#a8a8a8 guibg=#1c1c1c guisp=#1c1c1c gui=NONE ctermfg=248 ctermbg=234 cterm=NONE 42 | hi Label guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 43 | "hi CTagsImport -- no settings -- 44 | hi PMenuSel guifg=#192224 guibg=#9c999c guisp=#9c999c gui=NONE ctermfg=235 ctermbg=247 cterm=NONE 45 | hi Search guifg=#272929 guibg=#adadad guisp=#adadad gui=NONE ctermfg=235 ctermbg=145 cterm=NONE 46 | "hi CTagsGlobalVariable -- no settings -- 47 | hi Delimiter guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 48 | hi Statement guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 49 | hi SpellRare guifg=#a8a8a8 guibg=#192224 guisp=#192224 gui=NONE ctermfg=248 ctermbg=235 cterm=NONE 50 | hi EnumerationValue guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 51 | hi Comment guifg=#4f4f4f guibg=NONE guisp=NONE gui=NONE ctermfg=239 ctermbg=NONE cterm=NONE 52 | hi Character guifg=#A1A6A8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 53 | hi Float guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 54 | hi Number guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 55 | hi Boolean guifg=#5f5f87 guibg=NONE guisp=NONE gui=NONE ctermfg=60 ctermbg=NONE cterm=NONE 56 | hi Operator guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 57 | hi CursorLine guifg=#a8a8a8 guibg=#222E30 guisp=#222E30 gui=NONE ctermfg=248 ctermbg=236 cterm=NONE 58 | hi Union guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 59 | hi TabLineFill guifg=#000000 guibg=#4e4e4e guisp=#4e4e4e gui=NONE ctermfg=NONE ctermbg=239 cterm=NONE 60 | hi Question guifg=#5f5f87 guibg=NONE guisp=NONE gui=NONE ctermfg=60 ctermbg=NONE cterm=NONE 61 | hi WarningMsg guifg=#A1A6A8 guibg=#912C00 guisp=#912C00 gui=NONE ctermfg=248 ctermbg=88 cterm=NONE 62 | hi VisualNOS guifg=#a8a8a8 guibg=#585858 guisp=#585858 gui=underline ctermfg=248 ctermbg=240 cterm=underline 63 | hi DiffDelete guifg=#262626 guibg=#1c1c1c guisp=#1c1c1c gui=NONE ctermfg=235 ctermbg=234 cterm=NONE 64 | hi ModeMsg guifg=#a8a8a8 guibg=#192224 guisp=#192224 gui=NONE ctermfg=248 ctermbg=235 cterm=NONE 65 | hi CursorColumn guifg=#a8a8a8 guibg=#222E30 guisp=#222E30 gui=NONE ctermfg=248 ctermbg=236 cterm=NONE 66 | hi Define guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 67 | hi Function guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 68 | hi FoldColumn guifg=#000000 guibg=#545454 guisp=#545454 gui=NONE ctermfg=NONE ctermbg=240 cterm=NONE 69 | hi PreProc guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 70 | hi EnumerationName guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 71 | hi Visual guifg=#a8a8a8 guibg=#585858 guisp=#585858 gui=NONE ctermfg=248 ctermbg=240 cterm=NONE 72 | hi MoreMsg guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 73 | hi SpellCap guifg=#a8a8a8 guibg=#192224 guisp=#192224 gui=NONE ctermfg=248 ctermbg=235 cterm=NONE 74 | hi VertSplit guifg=#585858 guibg=#1c1c1c guisp=#1c1c1c gui=bold ctermfg=240 ctermbg=234 cterm=bold 75 | hi Exception guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 76 | hi Keyword guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 77 | hi Type guifg=#c0c0c0 guibg=NONE guisp=NONE gui=NONE ctermfg=7 ctermbg=NONE cterm=NONE 78 | hi DiffChange guifg=#5f0000 guibg=#1c1c1c guisp=#1c1c1c gui=NONE ctermfg=52 ctermbg=234 cterm=NONE 79 | hi Cursor guifg=#212121 guibg=#adadad guisp=#adadad gui=NONE ctermfg=234 ctermbg=145 cterm=NONE 80 | hi SpellLocal guifg=#a8a8a8 guibg=#192224 guisp=#192224 gui=NONE ctermfg=248 ctermbg=235 cterm=NONE 81 | hi Error guifg=#A1A6A8 guibg=#912C00 guisp=#912C00 gui=NONE ctermfg=248 ctermbg=88 cterm=NONE 82 | hi PMenu guifg=#000000 guibg=#303030 guisp=#303030 gui=NONE ctermfg=NONE ctermbg=236 cterm=NONE 83 | hi SpecialKey guifg=#5E6C70 guibg=NONE guisp=NONE gui=NONE ctermfg=66 ctermbg=NONE cterm=NONE 84 | hi Constant guifg=#536991 guibg=NONE guisp=NONE gui=NONE ctermfg=60 ctermbg=NONE cterm=NONE 85 | hi DefinedName guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 86 | hi Tag guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 87 | hi String guifg=#70997e guibg=NONE guisp=NONE gui=NONE ctermfg=65 ctermbg=NONE cterm=NONE 88 | hi PMenuThumb guifg=#000000 guibg=#a4a6a8 guisp=#a4a6a8 gui=NONE ctermfg=NONE ctermbg=248 cterm=NONE 89 | hi MatchParen guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 90 | hi LocalVariable guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 91 | hi Repeat guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 92 | hi SpellBad guifg=#a8a8a8 guibg=#192224 guisp=#192224 gui=NONE ctermfg=248 ctermbg=235 cterm=NONE 93 | "hi CTagsClass -- no settings -- 94 | hi Directory guifg=#828282 guibg=NONE guisp=NONE gui=NONE ctermfg=8 ctermbg=NONE cterm=NONE 95 | hi Structure guifg=#5f5f87 guibg=NONE guisp=NONE gui=NONE ctermfg=60 ctermbg=NONE cterm=NONE 96 | hi Macro guifg=#a8a8a8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE 97 | hi Underlined guifg=#a8a8a8 guibg=#192224 guisp=#192224 gui=NONE ctermfg=248 ctermbg=235 cterm=NONE 98 | hi DiffAdd guifg=#5f875f guibg=#1c1c1c guisp=#1c1c1c gui=NONE ctermfg=65 ctermbg=234 cterm=NONE 99 | hi TabLine guifg=#000000 guibg=#363636 guisp=#363636 gui=NONE ctermfg=NONE ctermbg=237 cterm=NONE 100 | hi cursorim guifg=#192224 guibg=#536991 guisp=#536991 gui=NONE ctermfg=235 ctermbg=60 cterm=NONE 101 | "hi clear -- no settings -- 102 | -------------------------------------------------------------------------------- /vim/colors/ddd.vim: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | if &background == 'dark' 5 | 6 | let s:guishade0 = "#121212" 7 | let s:guishade1 = "#2f2f2f" 8 | let s:guishade2 = "#4c4c4c" 9 | let s:guishade3 = "#696969" 10 | let s:guishade4 = "#868686" 11 | let s:guishade5 = "#a3a3a3" 12 | let s:guishade6 = "#c0c0c0" 13 | let s:guishade7 = "#dddddd" 14 | let s:guiaccent0 = "#b51a00" 15 | let s:guiaccent1 = "#dddddd" 16 | let s:guiaccent2 = "#dddddd" 17 | let s:guiaccent3 = "#77bb40" 18 | let s:guiaccent4 = "#dddddd" 19 | let s:guiaccent5 = "#dddddd" 20 | let s:guiaccent6 = "#dddddd" 21 | let s:guiaccent7 = "#dddddd" 22 | let s:ctermshade0 = 233 23 | let s:ctermshade1 = 236 24 | let s:ctermshade2 = 239 25 | let s:ctermshade3 = 102 26 | let s:ctermshade4 = 245 27 | let s:ctermshade5 = 247 28 | let s:ctermshade6 = 250 29 | let s:ctermshade7 = 253 30 | let s:ctermaccent0 = 166 31 | let s:ctermaccent1 = 253 32 | let s:ctermaccent2 = 253 33 | let s:ctermaccent3 = 113 34 | let s:ctermaccent4 = 253 35 | let s:ctermaccent5 = 253 36 | let s:ctermaccent6 = 253 37 | let s:ctermaccent7 = 253 38 | 39 | endif 40 | 41 | 42 | 43 | if &background == 'light' 44 | 45 | let s:guishade0 = "#fffcff" 46 | let s:guishade1 = "#e0dce0" 47 | let s:guishade2 = "#c1bcc2" 48 | let s:guishade3 = "#a29da3" 49 | let s:guishade4 = "#847e85" 50 | let s:guishade5 = "#656066" 51 | let s:guishade6 = "#474247" 52 | let s:guishade7 = "#282629" 53 | let s:guiaccent0 = "#f03e4d" 54 | let s:guiaccent1 = "#f37735" 55 | let s:guiaccent2 = "#eeba21" 56 | let s:guiaccent3 = "#97bd2d" 57 | let s:guiaccent4 = "#1fc598" 58 | let s:guiaccent5 = "#53a6e1" 59 | let s:guiaccent6 = "#bf65f0" 60 | let s:guiaccent7 = "#ee4eb8" 61 | let s:ctermshade0 = 231 62 | let s:ctermshade1 = 253 63 | let s:ctermshade2 = 250 64 | let s:ctermshade3 = 247 65 | let s:ctermshade4 = 244 66 | let s:ctermshade5 = 241 67 | let s:ctermshade6 = 238 68 | let s:ctermshade7 = 235 69 | let s:ctermaccent0 = 204 70 | let s:ctermaccent1 = 209 71 | let s:ctermaccent2 = 221 72 | let s:ctermaccent3 = 149 73 | let s:ctermaccent4 = 79 74 | let s:ctermaccent5 = 110 75 | let s:ctermaccent6 = 177 76 | let s:ctermaccent7 = 212 77 | 78 | endif 79 | 80 | 81 | highlight clear 82 | syntax reset 83 | let g:colors_name = "ddd" 84 | 85 | """""""""" 86 | " Normal " 87 | """""""""" 88 | 89 | exec "hi Normal guifg=".s:guishade6." guibg=".s:guishade0 90 | exec "hi Normal ctermfg=".s:ctermshade6." ctermbg=".s:ctermshade0 91 | 92 | """"""""""""""""" 93 | " Syntax groups " 94 | """"""""""""""""" 95 | 96 | " Default 97 | 98 | exec "hi Comment guifg=".s:guishade2 99 | exec "hi Comment ctermfg=".s:ctermshade2 100 | exec "hi Constant guifg=".s:guiaccent3 101 | exec "hi Constant ctermfg=".s:ctermaccent3 102 | exec "hi Character guifg=".s:guiaccent4 103 | exec "hi Character ctermfg=".s:ctermaccent4 104 | exec "hi Identifier guifg=".s:guiaccent2." gui=none" 105 | exec "hi Identifier ctermfg=".s:ctermaccent2." cterm=none" 106 | exec "hi Statement guifg=".s:guiaccent5 107 | exec "hi Statement ctermfg=".s:ctermaccent5 108 | exec "hi PreProc guifg=".s:guiaccent6 109 | exec "hi PreProc ctermfg=".s:ctermaccent6 110 | exec "hi Type guifg=".s:guiaccent7 111 | exec "hi Type ctermfg=".s:ctermaccent7 112 | exec "hi Special guifg=".s:guiaccent4 113 | exec "hi Special ctermfg=".s:ctermaccent4 114 | exec "hi Underlined guifg=".s:guiaccent5 115 | exec "hi Underlined ctermfg=".s:ctermaccent5 116 | exec "hi Error guifg=".s:guiaccent0." guibg=".s:guishade1 117 | exec "hi Error ctermfg=".s:ctermaccent0." ctermbg=".s:ctermshade1 118 | exec "hi Todo guifg=".s:guiaccent0." guibg=".s:guishade1 119 | exec "hi Todo ctermfg=".s:ctermaccent0." ctermbg=".s:ctermshade1 120 | 121 | " GitGutter 122 | 123 | exec "hi GitGutterAdd guifg=".s:guiaccent3 124 | exec "hi GitGutterAdd ctermfg=".s:ctermaccent3 125 | exec "hi GitGutterChange guifg=".s:guiaccent2 126 | exec "hi GitGutterChange ctermfg=".s:ctermaccent2 127 | exec "hi GitGutterChangeDelete guifg=".s:guiaccent2 128 | exec "hi GitGutterChangeDelete ctermfg=".s:ctermaccent2 129 | exec "hi GitGutterDelete guifg=".s:guiaccent0 130 | exec "hi GitGutterDelete ctermfg=".s:ctermaccent0 131 | 132 | " fugitive 133 | 134 | exec "hi gitcommitComment guifg=".s:guishade3 135 | exec "hi gitcommitComment ctermfg=".s:ctermshade3 136 | exec "hi gitcommitOnBranch guifg=".s:guishade3 137 | exec "hi gitcommitOnBranch ctermfg=".s:ctermshade3 138 | exec "hi gitcommitHeader guifg=".s:guishade5 139 | exec "hi gitcommitHeader ctermfg=".s:ctermshade5 140 | exec "hi gitcommitHead guifg=".s:guishade3 141 | exec "hi gitcommitHead ctermfg=".s:ctermshade3 142 | exec "hi gitcommitSelectedType guifg=".s:guiaccent3 143 | exec "hi gitcommitSelectedType ctermfg=".s:ctermaccent3 144 | exec "hi gitcommitSelectedFile guifg=".s:guiaccent3 145 | exec "hi gitcommitSelectedFile ctermfg=".s:ctermaccent3 146 | exec "hi gitcommitDiscardedType guifg=".s:guiaccent2 147 | exec "hi gitcommitDiscardedType ctermfg=".s:ctermaccent2 148 | exec "hi gitcommitDiscardedFile guifg=".s:guiaccent2 149 | exec "hi gitcommitDiscardedFile ctermfg=".s:ctermaccent2 150 | exec "hi gitcommitUntrackedFile guifg=".s:guiaccent0 151 | exec "hi gitcommitUntrackedFile ctermfg=".s:ctermaccent0 152 | 153 | """"""""""""""""""""""" 154 | " Highlighting Groups " 155 | """"""""""""""""""""""" 156 | 157 | " Default 158 | 159 | exec "hi ColorColumn guibg=".s:guishade1 160 | exec "hi ColorColumn ctermbg=".s:ctermshade1 161 | exec "hi Conceal guifg=".s:guishade2 162 | exec "hi Conceal ctermfg=".s:ctermshade2 163 | exec "hi Cursor guifg=".s:guishade0 164 | exec "hi Cursor ctermfg=".s:ctermshade0 165 | exec "hi CursorColumn guibg=".s:guishade1 166 | exec "hi CursorColumn ctermbg=".s:ctermshade1 167 | exec "hi CursorLine guibg=".s:guishade1 168 | exec "hi CursorLine ctermbg=".s:ctermshade1." cterm=none" 169 | exec "hi Directory guifg=".s:guiaccent5 170 | exec "hi Directory ctermfg=".s:ctermaccent5 171 | exec "hi DiffAdd guifg=".s:guiaccent3." guibg=".s:guishade1 172 | exec "hi DiffAdd ctermfg=".s:ctermaccent3." ctermbg=".s:ctermshade1 173 | exec "hi DiffChange guifg=".s:guiaccent2." guibg=".s:guishade1 174 | exec "hi DiffChange ctermfg=".s:ctermaccent2." ctermbg=".s:ctermshade1 175 | exec "hi DiffDelete guifg=".s:guiaccent0." guibg=".s:guishade1 176 | exec "hi DiffDelete ctermfg=".s:ctermaccent0." ctermbg=".s:ctermshade1 177 | exec "hi DiffText guifg=".s:guiaccent2." guibg=".s:guishade2 178 | exec "hi DiffText ctermfg=".s:ctermaccent2." ctermbg=".s:ctermshade2 179 | exec "hi ErrorMsg guifg=".s:guishade7." guibg=".s:guiaccent0 180 | exec "hi ErrorMsg ctermfg=".s:ctermshade7." ctermbg=".s:ctermaccent0 181 | exec "hi VertSplit guifg=".s:guishade0." guibg=".s:guishade3 182 | exec "hi VertSplit ctermfg=".s:ctermshade0." ctermbg=".s:ctermshade3 183 | exec "hi Folded guifg=".s:guishade4." guibg=".s:guishade1 184 | exec "hi Folded ctermfg=".s:ctermshade4." ctermbg=".s:ctermshade1 185 | exec "hi FoldColumn guifg=".s:guishade4." guibg=".s:guishade1 186 | exec "hi FoldColumn ctermfg=".s:ctermshade4." ctermbg=".s:ctermshade1 187 | exec "hi SignColumn guibg=".s:guishade0 188 | exec "hi SignColumn ctermbg=".s:ctermshade0 189 | exec "hi IncSearch guifg=".s:guishade0." guibg=".s:guiaccent2 190 | exec "hi IncSearch ctermfg=".s:ctermshade0." ctermbg=".s:ctermaccent2 191 | exec "hi LineNr guifg=".s:guishade2." guibg=".s:guishade0 192 | exec "hi LineNr ctermfg=".s:ctermshade2." ctermbg=".s:ctermshade0 193 | exec "hi CursorLineNr guifg=".s:guishade3." guibg=".s:guishade1 194 | exec "hi CursorLineNr ctermfg=".s:ctermshade3." ctermbg=".s:ctermshade1 195 | exec "hi MatchParen guibg=".s:guishade2 196 | exec "hi MatchParen ctermbg=".s:ctermshade2 197 | exec "hi MoreMsg guifg=".s:guishade0." guibg=".s:guiaccent4 198 | exec "hi MoreMsg ctermfg=".s:ctermshade0." ctermbg=".s:ctermaccent4 199 | exec "hi NonText guifg=".s:guishade2." guibg=".s:guishade0 200 | exec "hi NonText ctermfg=".s:ctermshade2." ctermbg=".s:ctermshade0 201 | exec "hi Pmenu guifg=".s:guishade6." guibg=".s:guishade1 202 | exec "hi Pmenu ctermfg=".s:ctermshade6." ctermbg=".s:ctermshade1 203 | exec "hi PmenuSel guifg=".s:guiaccent4." guibg=".s:guishade1 204 | exec "hi PmenuSel ctermfg=".s:ctermaccent4." ctermbg=".s:ctermshade1 205 | exec "hi PmenuSbar guifg=".s:guiaccent3." guibg=".s:guishade1 206 | exec "hi PmenuSbar ctermfg=".s:ctermaccent3." ctermbg=".s:ctermshade1 207 | exec "hi PmenuThumb guifg=".s:guiaccent0." guibg=".s:guishade2 208 | exec "hi PmenuThumb ctermfg=".s:ctermaccent0." ctermbg=".s:ctermshade2 209 | exec "hi Question guifg=".s:guishade7." guibg=".s:guishade1 210 | exec "hi Question ctermfg=".s:ctermshade7." ctermbg=".s:ctermshade1 211 | exec "hi Search guifg=".s:guishade0." guibg=".s:guiaccent2 212 | exec "hi Search ctermfg=".s:ctermshade0." ctermbg=".s:ctermaccent2 213 | exec "hi SpecialKey guifg=".s:guiaccent7." guibg=".s:guishade0 214 | exec "hi SpecialKey ctermfg=".s:ctermaccent7." ctermbg=".s:ctermshade0 215 | exec "hi SpellBad guifg=".s:guiaccent0 216 | exec "hi SpellBad ctermfg=".s:ctermaccent0." ctermbg=NONE cterm=undercurl" 217 | exec "hi SpellCap guifg=".s:guiaccent2 218 | exec "hi SpellCap ctermfg=".s:ctermaccent2." ctermbg=NONE cterm=undercurl" 219 | exec "hi SpellLocal guifg=".s:guiaccent4 220 | exec "hi SpellLocal ctermfg=".s:ctermaccent4 221 | exec "hi SpellRare guifg=".s:guiaccent1 222 | exec "hi SpellRare ctermfg=".s:ctermaccent1 223 | exec "hi StatusLine guifg=".s:guishade4." guibg=".s:guishade1." gui=none" 224 | exec "hi StatusLine ctermfg=".s:ctermshade4." ctermbg=".s:ctermshade1." cterm=none" 225 | exec "hi TabLine guifg=".s:guishade5." guibg=".s:guishade1 226 | exec "hi TabLine ctermfg=".s:ctermshade5." ctermbg=".s:ctermshade1 227 | exec "hi TabLineFill guibg=".s:guishade1 228 | exec "hi TabLineFill ctermbg=".s:ctermshade1 229 | exec "hi TabLineSel guifg=".s:guishade6." guibg=".s:guishade0 230 | exec "hi TabLineSel ctermfg=".s:ctermshade6." ctermbg=".s:ctermshade0 231 | exec "hi Title guifg=".s:guiaccent5 232 | exec "hi Title ctermfg=".s:ctermaccent5 233 | exec "hi Visual guibg=".s:guishade1 234 | exec "hi Visual ctermbg=".s:ctermshade1 235 | exec "hi VisualNOS guifg=".s:guiaccent0." guibg=".s:guishade1 236 | exec "hi VisualNOS ctermfg=".s:ctermaccent0." ctermbg=".s:ctermshade1 237 | exec "hi WarningMsg guifg=".s:guiaccent0 238 | exec "hi WarningMsg ctermfg=".s:ctermaccent0 239 | exec "hi WildMenu guifg=".s:guiaccent4." guibg=".s:guishade1 240 | exec "hi WildMenu ctermfg=".s:ctermaccent4." ctermbg=".s:ctermshade1 241 | 242 | " NERDTree 243 | 244 | exec "hi NERDTreeExecFile guifg=".s:guiaccent4 245 | exec "hi NERDTreeExecFile ctermfg=".s:ctermaccent4 246 | exec "hi NERDTreeDirSlash guifg=".s:guiaccent5 247 | exec "hi NERDTreeDirSlash ctermfg=".s:ctermaccent5 248 | exec "hi NERDTreeCWD guifg=".s:guiaccent0 249 | exec "hi NERDTreeCWD ctermfg=".s:ctermaccent0 250 | 251 | """""""""""" 252 | " Clean up " 253 | """""""""""" 254 | 255 | unlet s:guishade0 s:guishade1 s:guishade2 s:guishade3 s:guishade4 s:guishade5 s:guishade6 s:guishade7 s:guiaccent0 s:guiaccent1 s:guiaccent2 s:guiaccent3 s:guiaccent4 s:guiaccent5 s:guiaccent6 s:guiaccent7 256 | unlet s:ctermshade0 s:ctermshade1 s:ctermshade2 s:ctermshade3 s:ctermshade4 s:ctermshade5 s:ctermshade6 s:ctermshade7 s:ctermaccent0 s:ctermaccent1 s:ctermaccent2 s:ctermaccent3 s:ctermaccent4 s:ctermaccent5 s:ctermaccent6 s:ctermaccent7 257 | 258 | -------------------------------------------------------------------------------- /vim/colors/railscasts.vim: -------------------------------------------------------------------------------- 1 | " Vim color scheme 2 | " 3 | " Name: railscast.vim 4 | " Maintainer: Josh O'Rourke 5 | " License: public domain 6 | " 7 | " A GUI Only port of the RailsCasts TextMate theme [1] to Vim. 8 | " Some parts of this theme were borrowed from the well-documented Lucius theme [2]. 9 | " 10 | " [1] http://railscasts.com/about 11 | " [2] http://www.vim.org/scripts/script.php?script_id=2536 12 | 13 | set background=dark 14 | hi clear 15 | if exists("syntax_on") 16 | syntax reset 17 | endif 18 | let g:colors_name = "railscasts" 19 | 20 | " Colors 21 | " Brown #BC9458 22 | " Dark Blue #6D9CBE 23 | " Dark Green #519F50 24 | " Dark Orange #CC7833 25 | " Light Blue #D0D0FF 26 | " Light Green #A5C261 27 | " Tan #FFC66D 28 | 29 | hi Normal guifg=#E6E1DC guibg=#2B2B2B ctermfg=white ctermbg=234 30 | hi Cursor guifg=#000000 guibg=#FFFFFF ctermfg=0 ctermbg=15 31 | hi CursorLine guibg=#333435 ctermbg=235 cterm=NONE 32 | hi Search guibg=#5A647E ctermfg=NONE ctermbg=236 cterm=underline 33 | hi Visual guibg=#5A647E ctermbg=60 34 | hi LineNr guifg=#888888 ctermfg=242 35 | hi StatusLine guibg=#414243 gui=NONE guifg=#E6E1DC 36 | hi StatusLineNC guibg=#414243 gui=NONE 37 | hi VertSplit guibg=#414243 gui=NONE guifg=#414243 38 | hi CursorLineNr guifg=#bbbbbb ctermfg=248 39 | hi ColorColumn guibg=#333435 ctermbg=235 40 | 41 | " Folds 42 | " ----- 43 | " line used for closed folds 44 | hi Folded guifg=#F6F3E8 guibg=#444444 gui=NONE 45 | 46 | " Invisible Characters 47 | " ------------------ 48 | hi NonText guifg=#777777 gui=NONE 49 | hi SpecialKey guifg=#777777 gui=NONE 50 | 51 | " Misc 52 | " ---- 53 | " directory names and other special names in listings 54 | hi Directory guifg=#A5C261 gui=NONE 55 | 56 | " Popup Menu 57 | " ---------- 58 | " normal item in popup 59 | hi Pmenu guifg=#F6F3E8 guibg=#444444 gui=NONE 60 | " selected item in popup 61 | hi PmenuSel guifg=#000000 guibg=#A5C261 gui=NONE 62 | " scrollbar in popup 63 | hi PMenuSbar guibg=#5A647E gui=NONE 64 | " thumb of the scrollbar in the popup 65 | hi PMenuThumb guibg=#AAAAAA gui=NONE 66 | 67 | 68 | "rubyComment 69 | hi Comment guifg=#BC9458 gui=italic ctermfg=137 70 | hi Todo guifg=#BC9458 guibg=NONE gui=italic ctermfg=94 71 | 72 | "rubyPseudoVariable 73 | "nil, self, symbols, etc 74 | hi Constant guifg=#6D9CBE ctermfg=73 75 | 76 | "rubyClass, rubyModule, rubyDefine 77 | "def, end, include, etc 78 | hi Define guifg=#CC7833 ctermfg=173 79 | 80 | "rubyInterpolation 81 | hi Delimiter guifg=#519F50 82 | 83 | "rubyError, rubyInvalidVariable 84 | hi Error guifg=#FFFFFF guibg=#990000 ctermfg=221 ctermbg=88 85 | 86 | "rubyFunction 87 | hi Function guifg=#FFC66D gui=NONE ctermfg=221 cterm=NONE 88 | 89 | "rubyIdentifier 90 | "@var, @@var, $var, etc 91 | hi Identifier guifg=#D0D0FF gui=NONE ctermfg=73 cterm=NONE 92 | 93 | "rubyInclude 94 | "include, autoload, extend, load, require 95 | hi Include guifg=#CC7833 gui=NONE ctermfg=173 cterm=NONE 96 | 97 | "rubyKeyword, rubyKeywordAsMethod 98 | "alias, undef, super, yield, callcc, caller, lambda, proc 99 | hi Keyword guifg=#CC7833 ctermfg=172 cterm=NONE 100 | 101 | " same as define 102 | hi Macro guifg=#CC7833 gui=NONE ctermfg=172 103 | 104 | "rubyInteger 105 | hi Number guifg=#A5C261 ctermfg=107 106 | 107 | " #if, #else, #endif 108 | hi PreCondit guifg=#CC7833 gui=NONE ctermfg=172 cterm=NONE 109 | 110 | " generic preprocessor 111 | hi PreProc guifg=#CC7833 gui=NONE ctermfg=103 112 | 113 | "rubyControl, rubyAccess, rubyEval 114 | "case, begin, do, for, if unless, while, until else, etc. 115 | hi Statement guifg=#CC7833 gui=NONE ctermfg=172 cterm=NONE 116 | 117 | "rubyString 118 | hi String guifg=#A5C261 ctermfg=107 119 | 120 | hi Title guifg=#FFFFFF ctermfg=15 121 | 122 | "rubyConstant 123 | hi Type guifg=#DA4939 gui=NONE 124 | 125 | hi DiffAdd guifg=#E6E1DC guibg=#144212 126 | hi DiffDelete guifg=#E6E1DC guibg=#660000 127 | 128 | hi link htmlTag xmlTag 129 | hi link htmlTagName xmlTagName 130 | hi link htmlEndTag xmlEndTag 131 | 132 | hi xmlTag guifg=#E8BF6A 133 | hi xmlTagName guifg=#E8BF6A 134 | hi xmlEndTag guifg=#E8BF6A 135 | -------------------------------------------------------------------------------- /vim/colors/seoul256.vim: -------------------------------------------------------------------------------- 1 | " " _____ _ ___ ___ ___ " 2 | " " | __|___ ___ _ _| |_ | _| _| " 3 | " " |__ | -_| . | | | | _|_ | . | " 4 | " " |_____|___|___|___|_|___|___|___|.vim " 5 | " 6 | " " Low-contrast dark Vim color scheme using Seoul Colors " 7 | " 8 | " File: seoul256.vim 9 | " URL: github.com/junegunn/seoul256.vim 10 | " Author: Junegunn Choi (junegunn.c@gmail.com) 11 | " Version: 1.3.0 12 | " Last Updated: October 16, 2013 13 | " License: MIT 14 | " 15 | " Copyright (c) 2013 Junegunn Choi 16 | " 17 | " MIT License 18 | " 19 | " Permission is hereby granted, free of charge, to any person obtaining 20 | " a copy of this software and associated documentation files (the 21 | " "Software"), to deal in the Software without restriction, including 22 | " without limitation the rights to use, copy, modify, merge, publish, 23 | " distribute, sublicense, and/or sell copies of the Software, and to 24 | " permit persons to whom the Software is furnished to do so, subject to 25 | " the following conditions: 26 | " 27 | " The above copyright notice and this permission notice shall be 28 | " included in all copies or substantial portions of the Software. 29 | " 30 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 31 | " EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 32 | " MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 33 | " NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 34 | " LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 35 | " OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 36 | " WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 37 | 38 | if !exists('s:rgb_map') 39 | let s:rgb_map = { 40 | \ 'NONE': 'NONE', 41 | \ 16: "#000000", 17: "#0C0077", 18: "#14009F", 19: "#1B00C5", 20: "#2200E8", 42 | \ 21: "#2900FF", 22: "#007600", 23: "#007475", 24: "#00739E", 25: "#0071C3", 43 | \ 26: "#006EE7", 27: "#006BFF", 28: "#009E00", 29: "#009D72", 30: "#009C9C", 44 | \ 31: "#009AC2", 32: "#0098E6", 33: "#0096FF", 34: "#00C300", 35: "#00C26F", 45 | \ 36: "#00C19A", 37: "#00C0C1", 38: "#00BFE5", 39: "#00BDFF", 40: "#00E600", 46 | \ 41: "#00E56B", 42: "#00E497", 43: "#00E3BF", 44: "#00E2E3", 45: "#00E1FF", 47 | \ 46: "#00FF00", 47: "#00FF66", 48: "#00FF94", 49: "#00FFBC", 50: "#00FFE1", 48 | \ 51: "#00FFFF", 52: "#7F0000", 53: "#800075", 54: "#81009E", 55: "#8200C3", 49 | \ 56: "#8300E7", 57: "#8500FF", 58: "#717400", 59: "#727272", 60: "#73709C", 50 | \ 61: "#746EC2", 62: "#766CE6", 63: "#7868FF", 64: "#629C00", 65: "#639B6F", 51 | \ 66: "#649A9A", 67: "#6698C1", 68: "#6897E5", 69: "#6A95FF", 70: "#49C200", 52 | \ 71: "#4BC16C", 72: "#4DC098", 73: "#4FBFBF", 74: "#52BDE3", 75: "#54BCFF", 53 | \ 76: "#07E500", 77: "#12E468", 78: "#18E395", 79: "#1EE2BD", 80: "#25E1E2", 54 | \ 81: "#2BE0FF", 82: "#00FF00", 83: "#00FF63", 84: "#00FF92", 85: "#00FFBB", 55 | \ 86: "#00FFE0", 87: "#00FFFF", 88: "#AA0000", 89: "#AA0072", 90: "#AB009C", 56 | \ 91: "#AC00C2", 92: "#AD00E6", 93: "#AE00FF", 94: "#A07200", 95: "#A1706F", 57 | \ 96: "#A16E9A", 97: "#A26CC1", 98: "#A369E5", 99: "#A566FF", 100: "#979B00", 58 | \ 101: "#989A6D", 102: "#989898", 103: "#9997BF", 104: "#9A95E4", 105: "#9C93FF", 59 | \ 106: "#8AC000", 107: "#8BC06A", 108: "#8CBF96", 109: "#8DBEBE", 110: "#8EBCE2", 60 | \ 111: "#90BBFF", 112: "#79E400", 113: "#7AE365", 114: "#7BE294", 115: "#7CE1BC", 61 | \ 116: "#7DE0E1", 117: "#7FDFFF", 118: "#5FFF00", 119: "#60FF60", 120: "#62FF90", 62 | \ 121: "#63FFBA", 122: "#65FFDF", 123: "#67FFFF", 124: "#D10000", 125: "#D2006F", 63 | \ 126: "#D2009A", 127: "#D300C1", 128: "#D300E5", 129: "#D400FF", 130: "#CA6F00", 64 | \ 131: "#CA6D6C", 132: "#CB6B98", 133: "#CC69BF", 134: "#CC66E3", 135: "#CD63FF", 65 | \ 136: "#C39900", 137: "#C4986A", 138: "#C49796", 139: "#C595BE", 140: "#C693E2", 66 | \ 141: "#C791FF", 142: "#BABF00", 143: "#BBBE66", 144: "#BCBD94", 145: "#BCBCBC", 67 | \ 146: "#BDBBE1", 147: "#BEB9FF", 148: "#AFE300", 149: "#B0E262", 150: "#B0E191", 68 | \ 151: "#B1E0BA", 152: "#B2DFE0", 153: "#B3DEFF", 154: "#A0FF00", 155: "#A1FF5C", 69 | \ 156: "#A2FF8E", 157: "#A2FFB8", 158: "#A3FFDE", 159: "#A5FFFF", 160: "#F60000", 70 | \ 161: "#F7006B", 162: "#F70097", 163: "#F800BF", 164: "#F800E3", 165: "#F900FF", 71 | \ 166: "#F16C00", 167: "#F16A68", 168: "#F16895", 169: "#F265BD", 170: "#F363E2", 72 | \ 171: "#F35FFF", 172: "#EB9700", 173: "#EC9565", 174: "#EC9494", 175: "#ED93BC", 73 | \ 176: "#ED91E1", 177: "#EE8FFF", 178: "#E4BD00", 179: "#E5BC62", 180: "#E5BC91", 74 | \ 181: "#E6BBBA", 182: "#E7B9E0", 183: "#E7B8FF", 184: "#DCE100", 185: "#DCE15D", 75 | \ 186: "#DDE08F", 187: "#DDDFB8", 188: "#DEDEDE", 189: "#DFDDFF", 190: "#D1FF00", 76 | \ 191: "#D2FF57", 192: "#D2FF8B", 193: "#D3FFB6", 194: "#D4FFDC", 195: "#D4FFFF", 77 | \ 196: "#FF0000", 197: "#FF0066", 198: "#FF0094", 199: "#FF00BC", 200: "#FF00E1", 78 | \ 201: "#FF00FF", 202: "#FF6700", 203: "#FF6563", 204: "#FF6392", 205: "#FF61BB", 79 | \ 206: "#FF5EE0", 207: "#FF5AFF", 208: "#FF9400", 209: "#FF9360", 210: "#FF9291", 80 | \ 211: "#FF90BA", 212: "#FF8EDF", 213: "#FF8CFF", 214: "#FFBB00", 215: "#FFBA5C", 81 | \ 216: "#FFBA8E", 217: "#FFB9B8", 218: "#FFB7DE", 219: "#FFB6FF", 220: "#FFE000", 82 | \ 221: "#FFDF57", 222: "#FFDE8B", 223: "#FFDDB6", 224: "#FFDCDC", 225: "#FFDBFF", 83 | \ 226: "#FCFF00", 227: "#FCFF51", 228: "#FDFF88", 229: "#FDFFB4", 230: "#FEFFDA", 84 | \ 231: "#FEFEFE", 232: "#060606", 233: "#171717", 234: "#252525", 235: "#323232", 85 | \ 236: "#3F3F3F", 237: "#4A4A4A", 238: "#565656", 239: "#606060", 240: "#6B6B6B", 86 | \ 241: "#757575", 242: "#7F7F7F", 243: "#888888", 244: "#929292", 245: "#9B9B9B", 87 | \ 246: "#A4A4A4", 247: "#ADADAD", 248: "#B6B6B6", 249: "#BFBFBF", 250: "#C7C7C7", 88 | \ 251: "#D0D0D0", 252: "#D8D8D8", 253: "#E0E0E0", 254: "#E9E9E9", 255: "#F1F1F1" 89 | \ } 90 | endif 91 | 92 | let s:background = &background 93 | let s:colors_name = get(g:, 'colors_name', '') 94 | 95 | silent! unlet s:style s:seoul256_background 96 | 97 | " 1. If g:seoul256_background is found 98 | if exists('g:seoul256_background') 99 | let s:seoul256_background = g:seoul256_background 100 | if s:seoul256_background >= 233 && s:seoul256_background <= 239 101 | let s:style = 'dark' 102 | elseif s:seoul256_background >= 252 && s:seoul256_background <= 256 103 | let s:style = 'light' 104 | else 105 | unlet s:seoul256_background 106 | endif 107 | endif 108 | 109 | if !exists('s:style') 110 | " 2. If g:colors_name is NOT 'seoul256' -> dark version 111 | if s:colors_name != 'seoul256' 112 | let s:style = 'dark' 113 | " 3. Follow &background setting 114 | else 115 | let s:style = &background 116 | endif 117 | endif 118 | 119 | " Background colors 120 | if s:style == 'dark' 121 | let s:dark_bg = get(s:, 'seoul256_background', 237) 122 | let s:light_bg = 253 123 | else 124 | let s:dark_bg = 237 125 | let s:light_bg = get(s:, 'seoul256_background', 253) 126 | endif 127 | let s:dark_bg_2 = s:dark_bg > 233 ? s:dark_bg - 2 : 16 128 | let s:light_bg_1 = min([s:light_bg + 1, 256]) 129 | let s:light_bg_2 = min([s:light_bg + 2, 256]) 130 | 131 | let s:style_idx = s:style == 'light' 132 | 133 | function! s:hi(item, fg, bg) 134 | let fg = a:fg[s:style_idx] > 255 ? 231 : a:fg[s:style_idx] 135 | let bg = a:bg[s:style_idx] > 255 ? 231 : a:bg[s:style_idx] 136 | 137 | if !empty(fg) 138 | execute printf("highlight %s ctermfg=%s guifg=%s", a:item, fg, s:rgb_map[fg]) 139 | endif 140 | if !empty(bg) 141 | execute printf("highlight %s ctermbg=%s guibg=%s", a:item, bg, s:rgb_map[bg]) 142 | endif 143 | endfunction 144 | 145 | if !has('gui_running') 146 | set t_Co=256 147 | end 148 | 149 | silent! unlet g:colors_name 150 | hi clear 151 | if exists("syntax_on") 152 | syntax reset 153 | endif 154 | call s:hi('Normal', [252, 239], [s:dark_bg, s:light_bg]) 155 | 156 | call s:hi('LineNr', [101, 101], [s:dark_bg + 1, s:light_bg - 2]) 157 | call s:hi('Visual', ['', ''], [23, 152]) 158 | call s:hi('VisualNOS', ['', ''], [23, 152]) 159 | 160 | call s:hi('Comment', [65, 65], ['', '']) 161 | call s:hi('Number', [222, 95], ['', '']) 162 | call s:hi('Float', [222, 95], ['', '']) 163 | call s:hi('Boolean', [103, 168], ['', '']) 164 | call s:hi('String', [109, 30], ['', '']) 165 | call s:hi('Constant', [73, 23], ['', '']) 166 | call s:hi('Character', [174, 168], ['', '']) 167 | call s:hi('Delimiter', [137, 94], ['', '']) 168 | call s:hi('StringDelimiter', [137, 94], ['', '']) 169 | call s:hi('Statement', [108, 66], ['', '']) 170 | " case, default, etc. 171 | " hi Label ctermfg= 172 | 173 | " if else end 174 | call s:hi('Conditional', [110, 31], ['', '']) 175 | 176 | " while end 177 | call s:hi('Repeat', [68, 67], ['', '']) 178 | call s:hi('Todo', [161, 125], [s:dark_bg_2, s:light_bg_2]) 179 | call s:hi('Function', [187, 58], ['', '']) 180 | 181 | " Macros 182 | call s:hi('Define', [173, 131], ['', '']) 183 | call s:hi('Macro', [173, 131], ['', '']) 184 | call s:hi('Include', [173, 131], ['', '']) 185 | call s:hi('PreCondit', [173, 131], ['', '']) 186 | 187 | 188 | " #! 189 | call s:hi('PreProc', [143, 58], ['', '']) 190 | 191 | " @abc 192 | call s:hi('Identifier', [217, 96], ['', '']) 193 | 194 | " AAA Abc 195 | call s:hi('Type', [179, 94], ['', '']) 196 | 197 | " + - * / << 198 | call s:hi('Operator', [186, 131], ['', '']) 199 | 200 | " super yield 201 | call s:hi('Keyword', [168, 168], ['', '']) 202 | 203 | " raise 204 | call s:hi('Exception', [161, 161], ['', '']) 205 | " 206 | " hi StorageClass ctermfg= 207 | call s:hi('Structure', [116, 23], ['', '']) 208 | " hi Typedef ctermfg= 209 | 210 | call s:hi('Error', [252, s:light_bg_1], [52, 174]) 211 | call s:hi('ErrorMsg', [252, s:light_bg_1], [52, 168]) 212 | call s:hi('Underlined', [181, 168], ['', '']) 213 | 214 | " set textwidth=80 215 | " set colorcolumn=+1 216 | call s:hi('ColorColumn', ['', ''], [s:dark_bg - 1, s:light_bg - 2]) 217 | 218 | " GVIM only 219 | " hi Cursor ctermfg= 220 | " hi CursorIM ctermfg= 221 | 222 | " set cursorline cursorcolumn 223 | call s:hi('CursorLine', ['', ''], [s:dark_bg - 1, s:light_bg - 1]) 224 | call s:hi('CursorLineNr', [131, 131], [s:dark_bg - 1, s:light_bg - 1]) 225 | call s:hi('CursorColumn', ['', ''], [s:dark_bg - 1, s:light_bg - 1]) 226 | 227 | call s:hi('Directory', [187, 95], ['', '']) 228 | 229 | call s:hi('DiffAdd', ['NONE', 'NONE'], [24, 189]) 230 | call s:hi('DiffDelete', ['NONE', 'NONE'], [95, 181]) 231 | call s:hi('DiffChange', ['NONE', 'NONE'], [s:dark_bg + 3, 151]) 232 | call s:hi('DiffText', ['NONE', 'NONE'], [52, 224]) 233 | 234 | call s:hi('VertSplit', [s:dark_bg_2, s:light_bg - 3], [s:dark_bg_2, s:light_bg - 3]) 235 | call s:hi('Folded', [101, 101], [s:dark_bg + 1, s:light_bg - 2]) 236 | 237 | " set foldcolumn=1 238 | call s:hi('FoldColumn', [144, 94], [s:dark_bg + 1, s:light_bg - 2]) 239 | 240 | call s:hi('MatchParen', ['', ''], [s:dark_bg + 3, s:light_bg - 3]) 241 | 242 | " -- INSERT -- 243 | call s:hi('ModeMsg', [173, 173], ['', '']) 244 | 245 | " let &showbreak = '> ' 246 | call s:hi('NonText', [101, 101], ['', '']) 247 | 248 | call s:hi('MoreMsg', [173, 173], ['', '']) 249 | 250 | " Popup menu 251 | call s:hi('Pmenu', [s:dark_bg + 1, 238], [224, 224]) 252 | call s:hi('PmenuSel', [252, 252], [89, 89]) 253 | call s:hi('PmenuSbar', ['', ''], [65, 65]) 254 | call s:hi('PmenuThumb', ['', ''], [23, 23]) 255 | 256 | call s:hi('Search', [252, 255], [24, 74]) 257 | call s:hi('IncSearch', [220, 220], [s:dark_bg + 1, 238]) 258 | 259 | " String delimiter, interpolation 260 | call s:hi('Special', [216, 173], ['', '']) 261 | " hi SpecialChar ctermfg= 262 | " hi SpecialComment ctermfg= 263 | " hi Tag ctermfg= 264 | " hi Debug ctermfg= 265 | 266 | " :map, listchars 267 | call s:hi('SpecialKey', [59, 145], ['', '']) 268 | 269 | " TODO: spell check 270 | call s:hi('SpellBad', [252, 252], [95, 95]) 271 | call s:hi('SpellCap', [252, 252], [95, 95]) 272 | call s:hi('SpellLocal', [252, 252], [95, 95]) 273 | call s:hi('SpellRare', [252, 252], [95, 95]) 274 | 275 | " 276 | call s:hi('StatusLine', [95, 95], [187, 187]) 277 | call s:hi('StatusLineNC', [s:dark_bg + 2, s:light_bg - 2], [187, 238]) 278 | call s:hi('TabLineFill', [s:dark_bg + 2, s:light_bg - 2], ['', '']) 279 | call s:hi('TabLineSel', [187, 187], [23, 66]) 280 | call s:hi('TabLine', [s:dark_bg + 12, s:light_bg - 12], [s:dark_bg + 4, s:light_bg - 4]) 281 | call s:hi('WildMenu', [95, 95], [184, 184]) 282 | 283 | " :set all 284 | call s:hi('Title', [181, 88], ['', '']) 285 | 286 | " TODO 287 | call s:hi('Question', [179, 88], ['', '']) 288 | 289 | " Search hit bottom 290 | call s:hi('WarningMsg', [179, 88], ['', '']) 291 | 292 | """"""""""""""""""""""""""""""""""""""""""""""""" 293 | " Plugins 294 | """"""""""""""""""""""""""""""""""""""""""""""""" 295 | 296 | " indentLine 297 | " ---------- 298 | call s:hi('Conceal', [s:dark_bg + 1, s:light_bg - 2], [s:dark_bg, s:light_bg]) 299 | call s:hi('Ignore', [s:dark_bg + 1, s:light_bg - 2], [s:dark_bg, s:light_bg]) 300 | let g:indentLine_color_term = [s:dark_bg + 1, s:light_bg - 2][s:style_idx] 301 | let g:indentLine_color_gui = s:rgb_map[[s:dark_bg + 1, s:light_bg - 2][s:style_idx]] 302 | 303 | " vim-indent-guides 304 | " ----------------- 305 | let g:indent_guides_auto_colors = 0 306 | call s:hi('IndentGuidesOdd', ['', ''], [s:dark_bg - 1, s:light_bg + 1]) 307 | call s:hi('IndentGuidesEven', ['', ''], [s:dark_bg + 1, s:light_bg - 1]) 308 | 309 | " vim-scroll-position 310 | " ------------------- 311 | call s:hi('SignColumn', [173, 173], [s:dark_bg, s:light_bg]) 312 | call s:hi('ScrollPositionMarker', [173, 173], [s:dark_bg + 1, s:light_bg - 2]) 313 | call s:hi('ScrollPositionVisualBegin', [168, 88], [s:dark_bg + 1, s:light_bg - 2]) 314 | call s:hi('ScrollPositionVisualMiddle', [168, 88], [s:dark_bg + 1, s:light_bg - 2]) 315 | call s:hi('ScrollPositionVisualEnd', [168, 88], [s:dark_bg + 1, s:light_bg - 2]) 316 | call s:hi('ScrollPositionVisualOverlap', [168, 88], [s:dark_bg + 1, s:light_bg - 2]) 317 | call s:hi('ScrollPositionChange', [173, 173], [s:dark_bg + 1, s:light_bg - 2]) 318 | call s:hi('ScrollPositionJump', [173, 173], [s:dark_bg + 1, s:light_bg - 2]) 319 | 320 | " vim-gitgutter 321 | " ------------- 322 | call s:hi('GitGutterAdd', [38, 38], ['', '']) 323 | call s:hi('GitGutterChange', [65, 65], ['', '']) 324 | call s:hi('GitGutterDelete', [161, 161], ['', '']) 325 | call s:hi('GitGutterChangeDelete', [168, 168], ['', '']) 326 | 327 | " http://vim.wikia.com/wiki/Highlight_unwanted_spaces 328 | " ---------------------------------------------------^^^^^ 329 | call s:hi('ExtraWhitespace', ['', ''], [s:dark_bg - 1, s:light_bg - 2]) 330 | 331 | " vim-ruby 332 | " -------- 333 | " " rubySymbol 334 | let ruby_operators = 1 335 | call s:hi('rubyClass', [31, 31], ['', '']) 336 | " call s:hi('rubyInstanceVariable', [189, 189], ['', '']) 337 | call s:hi('rubyRegexp', [186, 101], ['', '']) 338 | call s:hi('rubyRegexpDelimiter', [168, 168], ['', '']) 339 | call s:hi('rubyArrayDelimiter', [67, 38], ['', '']) 340 | call s:hi('rubyBlockParameterList', [186, 94], ['', '']) 341 | call s:hi('rubyCurlyBlockDelimiter', [144, 101], ['', '']) 342 | 343 | " ARGV $stdout 344 | call s:hi('rubyPredefinedIdentifier', [230, 52], ['', '']) 345 | " hi rubyRegexpSpecial 346 | 347 | hi CursorLine cterm=NONE 348 | hi CursorLineNr cterm=NONE 349 | 350 | let g:colors_name = 'seoul256' 351 | if s:colors_name != g:colors_name || s:background == s:style 352 | let &background = s:style 353 | else 354 | let &background = s:background 355 | endif 356 | -------------------------------------------------------------------------------- /vim/compiler/eruby.vim: -------------------------------------------------------------------------------- 1 | " Vim compiler file 2 | " Language: eRuby 3 | " Maintainer: Doug Kearns 4 | " URL: https://github.com/vim-ruby/vim-ruby 5 | " Release Coordinator: Doug Kearns 6 | 7 | if exists("current_compiler") 8 | finish 9 | endif 10 | let current_compiler = "eruby" 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 | if exists("eruby_compiler") && eruby_compiler == "eruby" 20 | CompilerSet makeprg=eruby 21 | else 22 | CompilerSet makeprg=erb 23 | endif 24 | 25 | CompilerSet errorformat= 26 | \eruby:\ %f:%l:%m, 27 | \%+E%f:%l:\ parse\ error, 28 | \%W%f:%l:\ warning:\ %m, 29 | \%E%f:%l:in\ %*[^:]:\ %m, 30 | \%E%f:%l:\ %m, 31 | \%-C%\tfrom\ %f:%l:in\ %.%#, 32 | \%-Z%\tfrom\ %f:%l, 33 | \%-Z%p^, 34 | \%-G%.%# 35 | 36 | let &cpo = s:cpo_save 37 | unlet s:cpo_save 38 | 39 | " vim: nowrap sw=2 sts=2 ts=8: 40 | -------------------------------------------------------------------------------- /vim/compiler/rspec.vim: -------------------------------------------------------------------------------- 1 | " Vim compiler file 2 | " Language: RSpec 3 | " Maintainer: Tim Pope 4 | " URL: https://github.com/vim-ruby/vim-ruby 5 | " Release Coordinator: Doug Kearns 6 | 7 | if exists("current_compiler") 8 | finish 9 | endif 10 | let current_compiler = "rspec" 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=rspec 20 | 21 | CompilerSet errorformat= 22 | \%f:%l:\ %tarning:\ %m, 23 | \%E%.%#:in\ `load':\ %f:%l:%m, 24 | \%E%f:%l:in\ `%*[^']':\ %m, 25 | \%-Z\ \ \ \ \ \#\ %f:%l:%.%#, 26 | \%E\ \ %\\d%\\+)%.%#, 27 | \%C\ \ \ \ \ %m, 28 | \%-G%.%# 29 | 30 | let &cpo = s:cpo_save 31 | unlet s:cpo_save 32 | 33 | " vim: nowrap sw=2 sts=2 ts=8: 34 | -------------------------------------------------------------------------------- /vim/compiler/ruby.vim: -------------------------------------------------------------------------------- 1 | " Vim compiler file 2 | " Language: Ruby 3 | " Function: Syntax check and/or error reporting 4 | " Maintainer: Tim Pope 5 | " URL: https://github.com/vim-ruby/vim-ruby 6 | " Release Coordinator: Doug Kearns 7 | " ---------------------------------------------------------------------------- 8 | 9 | if exists("current_compiler") 10 | finish 11 | endif 12 | let current_compiler = "ruby" 13 | 14 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal 15 | command -nargs=* CompilerSet setlocal 16 | endif 17 | 18 | let s:cpo_save = &cpo 19 | set cpo-=C 20 | 21 | " default settings runs script normally 22 | " add '-c' switch to run syntax check only: 23 | " 24 | " CompilerSet makeprg=ruby\ -wc\ $* 25 | " 26 | " or add '-c' at :make command line: 27 | " 28 | " :make -c % 29 | " 30 | CompilerSet makeprg=ruby\ -w\ $* 31 | 32 | CompilerSet errorformat= 33 | \%+E%f:%l:\ parse\ error, 34 | \%W%f:%l:\ warning:\ %m, 35 | \%E%f:%l:in\ %*[^:]:\ %m, 36 | \%E%f:%l:\ %m, 37 | \%-C%\tfrom\ %f:%l:in\ %.%#, 38 | \%-Z%\tfrom\ %f:%l, 39 | \%-Z%p^, 40 | \%-G%.%# 41 | 42 | let &cpo = s:cpo_save 43 | unlet s:cpo_save 44 | 45 | " vim: nowrap sw=2 sts=2 ts=8: 46 | -------------------------------------------------------------------------------- /vim/compiler/rubyunit.vim: -------------------------------------------------------------------------------- 1 | " Vim compiler file 2 | " Language: Test::Unit - Ruby Unit Testing Framework 3 | " Maintainer: Doug Kearns 4 | " URL: https://github.com/vim-ruby/vim-ruby 5 | " Release Coordinator: Doug Kearns 6 | 7 | if exists("current_compiler") 8 | finish 9 | endif 10 | let current_compiler = "rubyunit" 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=testrb 20 | 21 | CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:, 22 | \%C%m\ [%f:%l]:, 23 | \%E\ %\\+%\\d%\\+)\ Error:, 24 | \%C%m:, 25 | \%C\ \ \ \ %f:%l:%.%#, 26 | \%C%m, 27 | \%Z\ %#, 28 | \%-G%.%# 29 | 30 | let &cpo = s:cpo_save 31 | unlet s:cpo_save 32 | 33 | " vim: nowrap sw=2 sts=2 ts=8: 34 | -------------------------------------------------------------------------------- /vim/ctrlp_cache/hist/cache.txt: -------------------------------------------------------------------------------- 1 | 2 | post 3 | posy 4 | pos 5 | post 6 | ema 7 | comme 8 | post 9 | use 10 | ema 11 | comm 12 | post 13 | use 14 | user 15 | use 16 | user 17 | next 18 | emai 19 | pos 20 | user 21 | -------------------------------------------------------------------------------- /vim/ctrlp_cache/mru/cache.txt: -------------------------------------------------------------------------------- 1 | /Users/anton/.vimrc 2 | /Users/anton/work/job/storytut/app/models/post.rb 3 | /Users/anton/work/job/storytut/app/models/taxonomy.rb 4 | /Users/anton/work/job/storytut/app/models/user.rb 5 | /Users/anton/work/job/storytut/spec/models/user_spec.rb 6 | /Users/anton/work/job/storytut/db/schema.rb 7 | /Users/anton/work/job/storytut/app/models/comment.rb 8 | /Users/anton/work/job/storytut/bin/bundle 9 | /Users/anton/work/job/storytut/app/admin/user.rb 10 | /Users/anton/work/job/storytut/db/seeds.rb 11 | /Users/anton/work/job/storytut/public/_index.html 12 | -------------------------------------------------------------------------------- /vim/doc/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davydovanton/dotfiles/a99d34047a95373c0b4d00af4882e59f4ee02556/vim/doc/.DS_Store -------------------------------------------------------------------------------- /vim/doc/snipMate.txt: -------------------------------------------------------------------------------- 1 | *snipMate.txt* Plugin for using TextMate-style snippets in Vim. 2 | 3 | snipMate *snippet* *snippets* *snipMate* 4 | Last Change: December 27, 2009 5 | 6 | |snipMate-description| Description 7 | |snipMate-syntax| Snippet syntax 8 | |snipMate-usage| Usage 9 | |snipMate-settings| Settings 10 | |snipMate-features| Features 11 | |snipMate-disadvantages| Disadvantages to TextMate 12 | |snipMate-contact| Contact 13 | |snipMate-license| License 14 | 15 | For Vim version 7.0 or later. 16 | This plugin only works if 'compatible' is not set. 17 | {Vi does not have any of these features.} 18 | 19 | ============================================================================== 20 | DESCRIPTION *snipMate-description* 21 | 22 | snipMate.vim implements some of TextMate's snippets features in Vim. A 23 | snippet is a piece of often-typed text that you can insert into your 24 | document using a trigger word followed by a . 25 | 26 | For instance, in a C file using the default installation of snipMate.vim, if 27 | you type "for" in insert mode, it will expand a typical for loop in C: > 28 | 29 | for (i = 0; i < count; i++) { 30 | 31 | } 32 | 33 | 34 | To go to the next item in the loop, simply over to it; if there is 35 | repeated code, such as the "i" variable in this example, you can simply 36 | start typing once it's highlighted and all the matches specified in the 37 | snippet will be updated. To go in reverse, use . 38 | 39 | ============================================================================== 40 | SYNTAX *snippet-syntax* 41 | 42 | Snippets can be defined in two ways. They can be in their own file, named 43 | after their trigger in 'snippets//.snippet', or they can be 44 | defined together in a 'snippets/.snippets' file. Note that dotted 45 | 'filetype' syntax is supported -- e.g., you can use > 46 | 47 | :set ft=html.eruby 48 | 49 | to activate snippets for both HTML and eRuby for the current file. 50 | 51 | The syntax for snippets in *.snippets files is the following: > 52 | 53 | snippet trigger 54 | expanded text 55 | more expanded text 56 | 57 | Note that the first hard tab after the snippet trigger is required, and not 58 | expanded in the actual snippet. The syntax for *.snippet files is the same, 59 | only without the trigger declaration and starting indentation. 60 | 61 | Also note that snippets must be defined using hard tabs. They can be expanded 62 | to spaces later if desired (see |snipMate-indenting|). 63 | 64 | "#" is used as a line-comment character in *.snippets files; however, they can 65 | only be used outside of a snippet declaration. E.g.: > 66 | 67 | # this is a correct comment 68 | snippet trigger 69 | expanded text 70 | snippet another_trigger 71 | # this isn't a comment! 72 | expanded text 73 | < 74 | This should hopefully be obvious with the included syntax highlighting. 75 | 76 | *snipMate-${#}* 77 | Tab stops ~ 78 | 79 | By default, the cursor is placed at the end of a snippet. To specify where the 80 | cursor is to be placed next, use "${#}", where the # is the number of the tab 81 | stop. E.g., to place the cursor first on the id of a
tag, and then allow 82 | the user to press to go to the middle of it: 83 | > 84 | snippet div 85 |
86 | ${2} 87 |
88 | < 89 | *snipMate-placeholders* *snipMate-${#:}* *snipMate-$#* 90 | Placeholders ~ 91 | 92 | Placeholder text can be supplied using "${#:text}", where # is the number of 93 | the tab stop. This text then can be copied throughout the snippet using "$#", 94 | given # is the same number as used before. So, to make a C for loop: > 95 | 96 | snippet for 97 | for (${2:i}; $2 < ${1:count}; $1++) { 98 | ${4} 99 | } 100 | 101 | This will cause "count" to first be selected and change if the user starts 102 | typing. When is pressed, the "i" in ${2}'s position will be selected; 103 | all $2 variables will default to "i" and automatically be updated if the user 104 | starts typing. 105 | NOTE: "$#" syntax is used only for variables, not for tab stops as in TextMate. 106 | 107 | Variables within variables are also possible. For instance: > 108 | 109 | snippet opt 110 | 111 | 112 | Will, as usual, cause "option" to first be selected and update all the $1 113 | variables if the user starts typing. Since one of these variables is inside of 114 | ${2}, this text will then be used as a placeholder for the next tab stop, 115 | allowing the user to change it if he wishes. 116 | 117 | To copy a value throughout a snippet without supplying default text, simply 118 | use the "${#:}" construct without the text; e.g.: > 119 | 120 | snippet foo 121 | ${1:}bar$1 122 | < *snipMate-commands* 123 | Interpolated Vim Script ~ 124 | 125 | Snippets can also contain Vim script commands that are executed (via |eval()|) 126 | when the snippet is inserted. Commands are given inside backticks (`...`); for 127 | TextMates's functionality, use the |system()| function. E.g.: > 128 | 129 | snippet date 130 | `system("date +%Y-%m-%d")` 131 | 132 | will insert the current date, assuming you are on a Unix system. Note that you 133 | can also (and should) use |strftime()| for this example. 134 | 135 | Filename([{expr}] [, {defaultText}]) *snipMate-filename* *Filename()* 136 | 137 | Since the current filename is used often in snippets, a default function 138 | has been defined for it in snipMate.vim, appropriately called Filename(). 139 | 140 | With no arguments, the default filename without an extension is returned; 141 | the first argument specifies what to place before or after the filename, 142 | and the second argument supplies the default text to be used if the file 143 | has not been named. "$1" in the first argument is replaced with the filename; 144 | if you only want the filename to be returned, the first argument can be left 145 | blank. Examples: > 146 | 147 | snippet filename 148 | `Filename()` 149 | snippet filename_with_default 150 | `Filename('', 'name')` 151 | snippet filename_foo 152 | `filename('$1_foo')` 153 | 154 | The first example returns the filename if it the file has been named, and an 155 | empty string if it hasn't. The second returns the filename if it's been named, 156 | and "name" if it hasn't. The third returns the filename followed by "_foo" if 157 | it has been named, and an empty string if it hasn't. 158 | 159 | *multi_snip* 160 | To specify that a snippet can have multiple matches in a *.snippets file, use 161 | this syntax: > 162 | 163 | snippet trigger A description of snippet #1 164 | expand this text 165 | snippet trigger A description of snippet #2 166 | expand THIS text! 167 | 168 | In this example, when "trigger" is typed, a numbered menu containing all 169 | of the descriptions of the "trigger" will be shown; when the user presses the 170 | corresponding number, that snippet will then be expanded. 171 | 172 | To create a snippet with multiple matches using *.snippet files, 173 | simply place all the snippets in a subdirectory with the trigger name: 174 | 'snippets///.snippet'. 175 | 176 | ============================================================================== 177 | USAGE *snipMate-usage* 178 | 179 | *'snippets'* *g:snippets_dir* 180 | Snippets are by default looked for any 'snippets' directory in your 181 | 'runtimepath'. Typically, it is located at '~/.vim/snippets/' on *nix or 182 | '$HOME\vimfiles\snippets\' on Windows. To change that location or add another 183 | one, change the g:snippets_dir variable in your |.vimrc| to your preferred 184 | directory, or use the |ExtractSnips()|function. This will be used by the 185 | |globpath()| function, and so accepts the same syntax as it (e.g., 186 | comma-separated paths). 187 | 188 | ExtractSnipsFile({directory}, {filetype}) *ExtractSnipsFile()* *.snippets* 189 | 190 | ExtractSnipsFile() extracts the specified *.snippets file for the given 191 | filetype. A .snippets file contains multiple snippet declarations for the 192 | filetype. It is further explained above, in |snippet-syntax|. 193 | 194 | ExtractSnips({directory}, {filetype}) *ExtractSnips()* *.snippet* 195 | 196 | ExtractSnips() extracts *.snippet files from the specified directory and 197 | defines them as snippets for the given filetype. The directory tree should 198 | look like this: 'snippets//.snippet'. If the snippet has 199 | multiple matches, it should look like this: 200 | 'snippets///.snippet' (see |multi_snip|). 201 | 202 | ResetAllSnippets() *ResetAllSnippets()* 203 | ResetAllSnippets() removes all snippets from memory. This is useful to put at 204 | the top of a snippet setup file for if you would like to |:source| it multiple 205 | times. 206 | 207 | ResetSnippets({filetype}) *ResetSnippets()* 208 | ResetSnippets() removes all snippets from memory for the given filetype. 209 | 210 | ReloadAllSnippets() *ReloadAllSnippets()* 211 | ReloadAllSnippets() reloads all snippets for all filetypes. This is useful for 212 | testing and debugging. 213 | 214 | ReloadSnippets({filetype}) *ReloadSnippets()* 215 | ReloadSnippets() reloads all snippets for the given filetype. 216 | 217 | *list-snippets* *i_CTRL-R_* 218 | If you would like to see what snippets are available, simply type 219 | in the current buffer to show a list via |popupmenu-completion|. 220 | 221 | ============================================================================== 222 | SETTINGS *snipMate-settings* *g:snips_author* 223 | 224 | The g:snips_author string (similar to $TM_FULLNAME in TextMate) should be set 225 | to your name; it can then be used in snippets to automatically add it. E.g.: > 226 | 227 | let g:snips_author = 'Hubert Farnsworth' 228 | snippet name 229 | `g:snips_author` 230 | < 231 | *snipMate-expandtab* *snipMate-indenting* 232 | If you would like your snippets to be expanded using spaces instead of tabs, 233 | just enable 'expandtab' and set 'softtabstop' to your preferred amount of 234 | spaces. If 'softtabstop' is not set, 'shiftwidth' is used instead. 235 | 236 | *snipMate-remap* 237 | snipMate does not come with a setting to customize the trigger key, but you 238 | can remap it easily in the two lines it's defined in the 'after' directory 239 | under 'plugin/snipMate.vim'. For instance, to change the trigger key 240 | to CTRL-J, just change this: > 241 | 242 | ino =TriggerSnippet() 243 | snor i=TriggerSnippet() 244 | 245 | to this: > 246 | ino =TriggerSnippet() 247 | snor i=TriggerSnippet() 248 | 249 | ============================================================================== 250 | FEATURES *snipMate-features* 251 | 252 | snipMate.vim has the following features among others: 253 | - The syntax of snippets is very similar to TextMate's, allowing 254 | easy conversion. 255 | - The position of the snippet is kept transparently (i.e. it does not use 256 | markers/placeholders written to the buffer), which allows you to escape 257 | out of an incomplete snippet, something particularly useful in Vim. 258 | - Variables in snippets are updated as-you-type. 259 | - Snippets can have multiple matches. 260 | - Snippets can be out of order. For instance, in a do...while loop, the 261 | condition can be added before the code. 262 | - [New] File-based snippets are supported. 263 | - [New] Triggers after non-word delimiters are expanded, e.g. "foo" 264 | in "bar.foo". 265 | - [New] can now be used to jump tab stops in reverse order. 266 | 267 | ============================================================================== 268 | DISADVANTAGES *snipMate-disadvantages* 269 | 270 | snipMate.vim currently has the following disadvantages to TextMate's snippets: 271 | - There is no $0; the order of tab stops must be explicitly stated. 272 | - Placeholders within placeholders are not possible. E.g.: > 273 | 274 | '${3}
' 275 | < 276 | In TextMate this would first highlight ' id="some_id"', and if 277 | you hit delete it would automatically skip ${2} and go to ${3} 278 | on the next , but if you didn't delete it it would highlight 279 | "some_id" first. You cannot do this in snipMate.vim. 280 | - Regex cannot be performed on variables, such as "${1/.*/\U&}" 281 | - Placeholders cannot span multiple lines. 282 | - Activating snippets in different scopes of the same file is 283 | not possible. 284 | 285 | Perhaps some of these features will be added in a later release. 286 | 287 | ============================================================================== 288 | CONTACT *snipMate-contact* *snipMate-author* 289 | 290 | To contact the author (Michael Sanders), please email: 291 | msanders42+snipmate gmail com 292 | 293 | I greatly appreciate any suggestions or improvements offered for the script. 294 | 295 | ============================================================================== 296 | LICENSE *snipMate-license* 297 | 298 | snipMate is released under the MIT license: 299 | 300 | Copyright 2009-2010 Michael Sanders. All rights reserved. 301 | 302 | Permission is hereby granted, free of charge, to any person obtaining a copy 303 | of this software and associated documentation files (the "Software"), to deal 304 | in the Software without restriction, including without limitation the rights 305 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 306 | copies of the Software, and to permit persons to whom the Software is 307 | furnished to do so, subject to the following conditions: 308 | 309 | The above copyright notice and this permission notice shall be included in all 310 | copies or substantial portions of the Software. 311 | 312 | The software is provided "as is", without warranty of any kind, express or 313 | implied, including but not limited to the warranties of merchantability, 314 | fitness for a particular purpose and noninfringement. In no event shall the 315 | authors or copyright holders be liable for any claim, damages or other 316 | liability, whether in an action of contract, tort or otherwise, arising from, 317 | out of or in connection with the software or the use or other dealings in the 318 | software. 319 | 320 | ============================================================================== 321 | 322 | vim:tw=78:ts=8:ft=help:norl: 323 | -------------------------------------------------------------------------------- /vim/doc/tags: -------------------------------------------------------------------------------- 1 | 'snippets' snipMate.txt /*'snippets'* 2 | .snippet snipMate.txt /*.snippet* 3 | .snippets snipMate.txt /*.snippets* 4 | :TComment tcomment.txt /*:TComment* 5 | :TCommentAs tcomment.txt /*:TCommentAs* 6 | :TCommentBlock tcomment.txt /*:TCommentBlock* 7 | :TCommentInline tcomment.txt /*:TCommentInline* 8 | :TCommentMaybeInline tcomment.txt /*:TCommentMaybeInline* 9 | :TCommentRight tcomment.txt /*:TCommentRight* 10 | ConqueTerm conque_term.txt /*ConqueTerm* 11 | ConqueTerm_CWInsert conque_term.txt /*ConqueTerm_CWInsert* 12 | ConqueTerm_CloseOnEnd conque_term.txt /*ConqueTerm_CloseOnEnd* 13 | ConqueTerm_CodePage conque_term.txt /*ConqueTerm_CodePage* 14 | ConqueTerm_Color conque_term.txt /*ConqueTerm_Color* 15 | ConqueTerm_ColorMode conque_term.txt /*ConqueTerm_ColorMode* 16 | ConqueTerm_EscKey conque_term.txt /*ConqueTerm_EscKey* 17 | ConqueTerm_ExecFileKey conque_term.txt /*ConqueTerm_ExecFileKey* 18 | ConqueTerm_FastMode conque_term.txt /*ConqueTerm_FastMode* 19 | ConqueTerm_InsertOnEnter conque_term.txt /*ConqueTerm_InsertOnEnter* 20 | ConqueTerm_PromptRegex conque_term.txt /*ConqueTerm_PromptRegex* 21 | ConqueTerm_PyExe conque_term.txt /*ConqueTerm_PyExe* 22 | ConqueTerm_PyVersion conque_term.txt /*ConqueTerm_PyVersion* 23 | ConqueTerm_ReadUnfocused conque_term.txt /*ConqueTerm_ReadUnfocused* 24 | ConqueTerm_SendFileKey conque_term.txt /*ConqueTerm_SendFileKey* 25 | ConqueTerm_SendFunctionKeys conque_term.txt /*ConqueTerm_SendFunctionKeys* 26 | ConqueTerm_SendVisKey conque_term.txt /*ConqueTerm_SendVisKey* 27 | ConqueTerm_SessionSupport conque_term.txt /*ConqueTerm_SessionSupport* 28 | ConqueTerm_StartMessages conque_term.txt /*ConqueTerm_StartMessages* 29 | ConqueTerm_Syntax conque_term.txt /*ConqueTerm_Syntax* 30 | ConqueTerm_TERM conque_term.txt /*ConqueTerm_TERM* 31 | ConqueTerm_ToggleKey conque_term.txt /*ConqueTerm_ToggleKey* 32 | ExtractSnips() snipMate.txt /*ExtractSnips()* 33 | ExtractSnipsFile() snipMate.txt /*ExtractSnipsFile()* 34 | Filename() snipMate.txt /*Filename()* 35 | ReloadAllSnippets() snipMate.txt /*ReloadAllSnippets()* 36 | ReloadSnippets() snipMate.txt /*ReloadSnippets()* 37 | ResetAllSnippets() snipMate.txt /*ResetAllSnippets()* 38 | ResetSnippets() snipMate.txt /*ResetSnippets()* 39 | conque-config-general conque_term.txt /*conque-config-general* 40 | conque-config-keyboard conque_term.txt /*conque-config-keyboard* 41 | conque-config-unix conque_term.txt /*conque-config-unix* 42 | conque-config-windows conque_term.txt /*conque-config-windows* 43 | conque-term-api conque_term.txt /*conque-term-api* 44 | conque-term-bugs conque_term.txt /*conque-term-bugs* 45 | conque-term-close conque_term.txt /*conque-term-close* 46 | conque-term-contribute conque_term.txt /*conque-term-contribute* 47 | conque-term-esc conque_term.txt /*conque-term-esc* 48 | conque-term-events conque_term.txt /*conque-term-events* 49 | conque-term-feedback conque_term.txt /*conque-term-feedback* 50 | conque-term-gen-usage conque_term.txt /*conque-term-gen-usage* 51 | conque-term-get-instance conque_term.txt /*conque-term-get-instance* 52 | conque-term-input-mode conque_term.txt /*conque-term-input-mode* 53 | conque-term-installation conque_term.txt /*conque-term-installation* 54 | conque-term-misc conque_term.txt /*conque-term-misc* 55 | conque-term-open conque_term.txt /*conque-term-open* 56 | conque-term-options conque_term.txt /*conque-term-options* 57 | conque-term-read conque_term.txt /*conque-term-read* 58 | conque-term-register conque_term.txt /*conque-term-register* 59 | conque-term-requirements conque_term.txt /*conque-term-requirements* 60 | conque-term-send conque_term.txt /*conque-term-send* 61 | conque-term-set-callback conque_term.txt /*conque-term-set-callback* 62 | conque-term-setup conque_term.txt /*conque-term-setup* 63 | conque-term-special-keys conque_term.txt /*conque-term-special-keys* 64 | conque-term-subprocess conque_term.txt /*conque-term-subprocess* 65 | conque-term-usage conque_term.txt /*conque-term-usage* 66 | conque-term-windows conque_term.txt /*conque-term-windows* 67 | conque-term-write conque_term.txt /*conque-term-write* 68 | conque-term-writeln conque_term.txt /*conque-term-writeln* 69 | g:snippets_dir snipMate.txt /*g:snippets_dir* 70 | g:snips_author snipMate.txt /*g:snips_author* 71 | g:tcomment#ignore_char_type tcomment.txt /*g:tcomment#ignore_char_type* 72 | g:tcomment#replacements_c tcomment.txt /*g:tcomment#replacements_c* 73 | g:tcomment#replacements_xml tcomment.txt /*g:tcomment#replacements_xml* 74 | g:tcomment#syntax_substitute tcomment.txt /*g:tcomment#syntax_substitute* 75 | g:tcommentBlankLines tcomment.txt /*g:tcommentBlankLines* 76 | g:tcommentBlockC2 tcomment.txt /*g:tcommentBlockC2* 77 | g:tcommentBlockXML tcomment.txt /*g:tcommentBlockXML* 78 | g:tcommentGuessFileType tcomment.txt /*g:tcommentGuessFileType* 79 | g:tcommentGuessFileType_django tcomment.txt /*g:tcommentGuessFileType_django* 80 | g:tcommentGuessFileType_dsl tcomment.txt /*g:tcommentGuessFileType_dsl* 81 | g:tcommentGuessFileType_eruby tcomment.txt /*g:tcommentGuessFileType_eruby* 82 | g:tcommentGuessFileType_html tcomment.txt /*g:tcommentGuessFileType_html* 83 | g:tcommentGuessFileType_php tcomment.txt /*g:tcommentGuessFileType_php* 84 | g:tcommentGuessFileType_smarty tcomment.txt /*g:tcommentGuessFileType_smarty* 85 | g:tcommentGuessFileType_tskeleton tcomment.txt /*g:tcommentGuessFileType_tskeleton* 86 | g:tcommentGuessFileType_vim tcomment.txt /*g:tcommentGuessFileType_vim* 87 | g:tcommentIgnoreTypes_php tcomment.txt /*g:tcommentIgnoreTypes_php* 88 | g:tcommentInlineC tcomment.txt /*g:tcommentInlineC* 89 | g:tcommentInlineXML tcomment.txt /*g:tcommentInlineXML* 90 | g:tcommentMapLeader1 tcomment.txt /*g:tcommentMapLeader1* 91 | g:tcommentMapLeader2 tcomment.txt /*g:tcommentMapLeader2* 92 | g:tcommentMapLeaderOp1 tcomment.txt /*g:tcommentMapLeaderOp1* 93 | g:tcommentMapLeaderOp2 tcomment.txt /*g:tcommentMapLeaderOp2* 94 | g:tcommentMaps tcomment.txt /*g:tcommentMaps* 95 | g:tcommentModeExtra tcomment.txt /*g:tcommentModeExtra* 96 | g:tcommentOpModeExtra tcomment.txt /*g:tcommentOpModeExtra* 97 | g:tcommentOptions tcomment.txt /*g:tcommentOptions* 98 | g:tcommentSyntaxMap tcomment.txt /*g:tcommentSyntaxMap* 99 | g:tcommentTextObjectInlineComment tcomment.txt /*g:tcommentTextObjectInlineComment* 100 | g:tcomment_types tcomment.txt /*g:tcomment_types* 101 | i_CTRL-R_ snipMate.txt /*i_CTRL-R_* 102 | list-snippets snipMate.txt /*list-snippets* 103 | multi_snip snipMate.txt /*multi_snip* 104 | snipMate snipMate.txt /*snipMate* 105 | snipMate-$# snipMate.txt /*snipMate-$#* 106 | snipMate-${#:} snipMate.txt /*snipMate-${#:}* 107 | snipMate-${#} snipMate.txt /*snipMate-${#}* 108 | snipMate-author snipMate.txt /*snipMate-author* 109 | snipMate-commands snipMate.txt /*snipMate-commands* 110 | snipMate-contact snipMate.txt /*snipMate-contact* 111 | snipMate-description snipMate.txt /*snipMate-description* 112 | snipMate-disadvantages snipMate.txt /*snipMate-disadvantages* 113 | snipMate-expandtab snipMate.txt /*snipMate-expandtab* 114 | snipMate-features snipMate.txt /*snipMate-features* 115 | snipMate-filename snipMate.txt /*snipMate-filename* 116 | snipMate-indenting snipMate.txt /*snipMate-indenting* 117 | snipMate-license snipMate.txt /*snipMate-license* 118 | snipMate-placeholders snipMate.txt /*snipMate-placeholders* 119 | snipMate-remap snipMate.txt /*snipMate-remap* 120 | snipMate-settings snipMate.txt /*snipMate-settings* 121 | snipMate-usage snipMate.txt /*snipMate-usage* 122 | snipMate.txt snipMate.txt /*snipMate.txt* 123 | snippet snipMate.txt /*snippet* 124 | snippet-syntax snipMate.txt /*snippet-syntax* 125 | snippets snipMate.txt /*snippets* 126 | tcomment#Comment() tcomment.txt /*tcomment#Comment()* 127 | tcomment#CommentAs() tcomment.txt /*tcomment#CommentAs()* 128 | tcomment#DefineType() tcomment.txt /*tcomment#DefineType()* 129 | tcomment#GuessCommentType() tcomment.txt /*tcomment#GuessCommentType()* 130 | tcomment#Operator() tcomment.txt /*tcomment#Operator()* 131 | tcomment#OperatorAnyway() tcomment.txt /*tcomment#OperatorAnyway()* 132 | tcomment#OperatorLine() tcomment.txt /*tcomment#OperatorLine()* 133 | tcomment#OperatorLineAnyway() tcomment.txt /*tcomment#OperatorLineAnyway()* 134 | tcomment#SetOption() tcomment.txt /*tcomment#SetOption()* 135 | tcomment#TextObjectInlineComment() tcomment.txt /*tcomment#TextObjectInlineComment()* 136 | tcomment-maps tcomment.txt /*tcomment-maps* 137 | tcomment-operator tcomment.txt /*tcomment-operator* 138 | tcomment.txt tcomment.txt /*tcomment.txt* 139 | -------------------------------------------------------------------------------- /vim/ftdetect/d.vim: -------------------------------------------------------------------------------- 1 | autocmd BufNewFile,BufRead *.d setf d 2 | -------------------------------------------------------------------------------- /vim/ftdetect/ruby.vim: -------------------------------------------------------------------------------- 1 | " Ruby 2 | au BufNewFile,BufRead *.rb,*.rbw,*.gemspec set filetype=ruby 3 | 4 | " Ruby on Rails 5 | au BufNewFile,BufRead *.builder,*.rxml,*.rjs set filetype=ruby 6 | 7 | " Rakefile 8 | au BufNewFile,BufRead [rR]akefile,*.rake set filetype=ruby 9 | 10 | " Rantfile 11 | au BufNewFile,BufRead [rR]antfile,*.rant set filetype=ruby 12 | 13 | " IRB config 14 | au BufNewFile,BufRead .irbrc,irbrc set filetype=ruby 15 | 16 | " Pry config 17 | au BufNewFile,BufRead .pryrc set filetype=ruby 18 | 19 | " Rackup 20 | au BufNewFile,BufRead *.ru set filetype=ruby 21 | 22 | " Capistrano 23 | au BufNewFile,BufRead Capfile set filetype=ruby 24 | 25 | " Bundler 26 | au BufNewFile,BufRead Gemfile set filetype=ruby 27 | 28 | " Guard 29 | au BufNewFile,BufRead Guardfile,.Guardfile set filetype=ruby 30 | 31 | " Chef 32 | au BufNewFile,BufRead Cheffile set filetype=ruby 33 | au BufNewFile,BufRead Berksfile set filetype=ruby 34 | 35 | " Vagrant 36 | au BufNewFile,BufRead [vV]agrantfile set filetype=ruby 37 | 38 | " Autotest 39 | au BufNewFile,BufRead .autotest set filetype=ruby 40 | 41 | " eRuby 42 | au BufNewFile,BufRead *.erb,*.rhtml set filetype=eruby 43 | 44 | " Thor 45 | au BufNewFile,BufRead [tT]horfile,*.thor set filetype=ruby 46 | 47 | " Rabl 48 | au BufNewFile,BufRead *.rabl set filetype=ruby 49 | 50 | " Jbuilder 51 | au BufNewFile,BufRead *.jbuilder set filetype=ruby 52 | 53 | " Puppet librarian 54 | au BufNewFile,BufRead Puppetfile set filetype=ruby 55 | " 56 | " Buildr Buildfile 57 | au BufNewFile,BufRead [Bb]uildfile set filetype=ruby 58 | 59 | " Appraisal 60 | au BufNewFile,BufRead Appraisals set filetype=ruby 61 | 62 | " vim: nowrap sw=2 sts=2 ts=8 noet: 63 | -------------------------------------------------------------------------------- /vim/ftplugin/eruby.vim: -------------------------------------------------------------------------------- 1 | " Vim filetype plugin 2 | " Language: eRuby 3 | " Maintainer: Tim Pope 4 | " URL: https://github.com/vim-ruby/vim-ruby 5 | " Release Coordinator: Doug Kearns 6 | 7 | " Only do this when not done yet for this buffer 8 | if exists("b:did_ftplugin") 9 | finish 10 | endif 11 | 12 | let s:save_cpo = &cpo 13 | set cpo-=C 14 | 15 | " Define some defaults in case the included ftplugins don't set them. 16 | let s:undo_ftplugin = "" 17 | let s:browsefilter = "All Files (*.*)\t*.*\n" 18 | let s:match_words = "" 19 | 20 | if !exists("g:eruby_default_subtype") 21 | let g:eruby_default_subtype = "html" 22 | endif 23 | 24 | if &filetype =~ '^eruby\.' 25 | let b:eruby_subtype = matchstr(&filetype,'^eruby\.\zs\w\+') 26 | elseif !exists("b:eruby_subtype") 27 | let s:lines = getline(1)."\n".getline(2)."\n".getline(3)."\n".getline(4)."\n".getline(5)."\n".getline("$") 28 | let b:eruby_subtype = matchstr(s:lines,'eruby_subtype=\zs\w\+') 29 | if b:eruby_subtype == '' 30 | let b:eruby_subtype = matchstr(substitute(expand("%:t"),'\c\%(\.erb\|\.eruby\|\.erubis\)\+$','',''),'\.\zs\w\+$') 31 | endif 32 | if b:eruby_subtype == 'rhtml' 33 | let b:eruby_subtype = 'html' 34 | elseif b:eruby_subtype == 'rb' 35 | let b:eruby_subtype = 'ruby' 36 | elseif b:eruby_subtype == 'yml' 37 | let b:eruby_subtype = 'yaml' 38 | elseif b:eruby_subtype == 'js' 39 | let b:eruby_subtype = 'javascript' 40 | elseif b:eruby_subtype == 'txt' 41 | " Conventional; not a real file type 42 | let b:eruby_subtype = 'text' 43 | elseif b:eruby_subtype == '' 44 | let b:eruby_subtype = g:eruby_default_subtype 45 | endif 46 | endif 47 | 48 | if exists("b:eruby_subtype") && b:eruby_subtype != '' 49 | exe "runtime! ftplugin/".b:eruby_subtype.".vim ftplugin/".b:eruby_subtype."_*.vim ftplugin/".b:eruby_subtype."/*.vim" 50 | else 51 | runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim 52 | endif 53 | unlet! b:did_ftplugin 54 | 55 | " Override our defaults if these were set by an included ftplugin. 56 | if exists("b:undo_ftplugin") 57 | let s:undo_ftplugin = b:undo_ftplugin 58 | unlet b:undo_ftplugin 59 | endif 60 | if exists("b:browsefilter") 61 | let s:browsefilter = b:browsefilter 62 | unlet b:browsefilter 63 | endif 64 | if exists("b:match_words") 65 | let s:match_words = b:match_words 66 | unlet b:match_words 67 | endif 68 | 69 | runtime! ftplugin/ruby.vim ftplugin/ruby_*.vim ftplugin/ruby/*.vim 70 | let b:did_ftplugin = 1 71 | 72 | " Combine the new set of values with those previously included. 73 | if exists("b:undo_ftplugin") 74 | let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin 75 | endif 76 | if exists ("b:browsefilter") 77 | let s:browsefilter = substitute(b:browsefilter,'\cAll Files (\*\.\*)\t\*\.\*\n','','') . s:browsefilter 78 | endif 79 | if exists("b:match_words") 80 | let s:match_words = b:match_words . ',' . s:match_words 81 | endif 82 | 83 | " Change the browse dialog on Win32 to show mainly eRuby-related files 84 | if has("gui_win32") 85 | let b:browsefilter="eRuby Files (*.erb, *.rhtml)\t*.erb;*.rhtml\n" . s:browsefilter 86 | endif 87 | 88 | " Load the combined list of match_words for matchit.vim 89 | if exists("loaded_matchit") 90 | let b:match_words = s:match_words 91 | endif 92 | 93 | " TODO: comments= 94 | setlocal commentstring=<%#%s%> 95 | 96 | let b:undo_ftplugin = "setl cms< " 97 | \ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin 98 | 99 | let &cpo = s:save_cpo 100 | unlet s:save_cpo 101 | 102 | " vim: nowrap sw=2 sts=2 ts=8: 103 | -------------------------------------------------------------------------------- /vim/ftplugin/html_snip_helper.vim: -------------------------------------------------------------------------------- 1 | " Helper function for (x)html snippets 2 | if exists('s:did_snip_helper') || &cp || !exists('loaded_snips') 3 | finish 4 | endif 5 | let s:did_snip_helper = 1 6 | 7 | " Automatically closes tag if in xhtml 8 | fun! Close() 9 | return stridx(&ft, 'xhtml') == -1 ? '' : ' /' 10 | endf 11 | -------------------------------------------------------------------------------- /vim/ftplugin/snippet.vim: -------------------------------------------------------------------------------- 1 | command! -buffer -range=% RetabSnip ,call snipMate#RetabSnip() 2 | vnoremap :RetabSnip 3 | 4 | if !exists('g:snippet_no_indentation_settings') 5 | setlocal sw=4 6 | setlocal tabstop=4 7 | setlocal noexpandtab 8 | endif 9 | -------------------------------------------------------------------------------- /vim/ftplugin/snippets.vim: -------------------------------------------------------------------------------- 1 | runtime! ftplugin/snippet.vim 2 | -------------------------------------------------------------------------------- /vim/ftplugin/xml.vim: -------------------------------------------------------------------------------- 1 | runtime! ftplugin/html.vim 2 | -------------------------------------------------------------------------------- /vim/gvimrc: -------------------------------------------------------------------------------- 1 | if has('gui_macvim') 2 | macmenu File.Print key= 3 | macmenu File.New\ Window key= 4 | set guioptions-=mTlrb 5 | endif 6 | -------------------------------------------------------------------------------- /vim/indent/d.vim: -------------------------------------------------------------------------------- 1 | " Vim indent file for the D programming language (version 1.076 and 2.063). 2 | " 3 | " Language: D 4 | " Maintainer: Jesse Phillips 5 | " Last Change: 2014 January 19 6 | " Version: 0.26 7 | " 8 | " Please submit bugs/comments/suggestions to the github repo: 9 | " https://github.com/JesseKPhillips/d.vim 10 | 11 | " Only load this indent file when no other was loaded. 12 | if exists("b:did_indent") 13 | finish 14 | endif 15 | let b:did_indent = 1 16 | 17 | setlocal cindent 18 | setlocal indentkeys& indentkeys+=0=in indentkeys+=0=out indentkeys+=0=body 19 | setlocal indentexpr=GetDIndent() 20 | 21 | if exists("*GetDIndent") 22 | finish 23 | endif 24 | 25 | function! SkipBlanksAndComments(startline) 26 | let lnum = a:startline 27 | while lnum > 1 28 | let lnum = prevnonblank(lnum) 29 | if getline(lnum) =~ '[*+]/\s*$' 30 | while getline(lnum) !~ '/[*+]' && lnum > 1 31 | let lnum = lnum - 1 32 | endwhile 33 | if getline(lnum) =~ '^\s*/[*+]' 34 | let lnum = lnum - 1 35 | else 36 | break 37 | endif 38 | elseif getline(lnum) =~ '\s*//' 39 | let lnum = lnum - 1 40 | else 41 | break 42 | endif 43 | endwhile 44 | return lnum 45 | endfunction 46 | 47 | function GetDIndent() 48 | let lnum = v:lnum 49 | let line = getline(lnum) 50 | let cind = cindent(lnum) 51 | 52 | " Align contract blocks with function signature. 53 | if line =~ '^\s*\(body\|in\|out\)\>' 54 | " Skip in/out parameters. 55 | if getline(lnum - 1) =~ '[(,]\s*$' 56 | return cind 57 | endif 58 | " Find the end of the last block or the function signature. 59 | if line !~ '^\s*}' && getline(lnum - 1) !~ '(' 60 | while getline(lnum - 1) !~ '[(}]' 61 | let lnum = lnum - 1 62 | endwhile 63 | endif 64 | let lnum = SkipBlanksAndComments(lnum) 65 | return cindent(lnum - 1) 66 | endif 67 | 68 | return cind 69 | endfunction 70 | -------------------------------------------------------------------------------- /vim/indent/eruby.vim: -------------------------------------------------------------------------------- 1 | " Vim indent file 2 | " Language: eRuby 3 | " Maintainer: Tim Pope 4 | " URL: https://github.com/vim-ruby/vim-ruby 5 | " Release Coordinator: Doug Kearns 6 | 7 | if exists("b:did_indent") 8 | finish 9 | endif 10 | 11 | runtime! indent/ruby.vim 12 | unlet! b:did_indent 13 | setlocal indentexpr= 14 | 15 | if exists("b:eruby_subtype") 16 | exe "runtime! indent/".b:eruby_subtype.".vim" 17 | else 18 | runtime! indent/html.vim 19 | endif 20 | unlet! b:did_indent 21 | 22 | " Force HTML indent to not keep state. 23 | let b:html_indent_usestate = 0 24 | 25 | if &l:indentexpr == '' 26 | if &l:cindent 27 | let &l:indentexpr = 'cindent(v:lnum)' 28 | else 29 | let &l:indentexpr = 'indent(prevnonblank(v:lnum-1))' 30 | endif 31 | endif 32 | let b:eruby_subtype_indentexpr = &l:indentexpr 33 | 34 | let b:did_indent = 1 35 | 36 | setlocal indentexpr=GetErubyIndent() 37 | setlocal indentkeys=o,O,*,<>>,{,},0),0],o,O,!^F,=end,=else,=elsif,=rescue,=ensure,=when 38 | 39 | " Only define the function once. 40 | if exists("*GetErubyIndent") 41 | finish 42 | endif 43 | 44 | function! GetErubyIndent(...) 45 | if a:0 && a:1 == '.' 46 | let v:lnum = line('.') 47 | elseif a:0 && a:1 =~ '^\d' 48 | let v:lnum = a:1 49 | endif 50 | let vcol = col('.') 51 | call cursor(v:lnum,1) 52 | let inruby = searchpair('<%','','%>','W') 53 | call cursor(v:lnum,vcol) 54 | if inruby && getline(v:lnum) !~ '^<%\|^\s*[-=]\=%>' 55 | let ind = GetRubyIndent(v:lnum) 56 | else 57 | exe "let ind = ".b:eruby_subtype_indentexpr 58 | 59 | " Workaround for Andy Wokula's HTML indent. This should be removed after 60 | " some time, since the newest version is fixed in a different way. 61 | if b:eruby_subtype_indentexpr =~# '^HtmlIndent(' 62 | \ && exists('b:indent') 63 | \ && type(b:indent) == type({}) 64 | \ && has_key(b:indent, 'lnum') 65 | " Force HTML indent to not keep state 66 | let b:indent.lnum = -1 67 | endif 68 | endif 69 | let lnum = prevnonblank(v:lnum-1) 70 | let line = getline(lnum) 71 | let cline = getline(v:lnum) 72 | if cline =~# '^\s*<%[-=]\=\s*\%(}\|end\|else\|\%(ensure\|rescue\|elsif\|when\).\{-\}\)\s*\%([-=]\=%>\|$\)' 73 | let ind = ind - &sw 74 | endif 75 | if line =~# '\S\s*<%[-=]\=\s*\%(}\|end\).\{-\}\s*\%([-=]\=%>\|$\)' 76 | let ind = ind - &sw 77 | endif 78 | if line =~# '\%({\|\' 79 | let ind = ind + &sw 80 | elseif line =~# '<%[-=]\=\s*\%(module\|class\|def\|if\|for\|while\|until\|else\|elsif\|case\|when\|unless\|begin\|ensure\|rescue\)\>.*%>' 81 | let ind = ind + &sw 82 | endif 83 | if line =~# '^\s*<%[=#-]\=\s*$' && cline !~# '^\s*end\>' 84 | let ind = ind + &sw 85 | endif 86 | if line !~# '^\s*<%' && line =~# '%>\s*$' 87 | let ind = ind - &sw 88 | endif 89 | if cline =~# '^\s*[-=]\=%>\s*$' 90 | let ind = ind - &sw 91 | endif 92 | return ind 93 | endfunction 94 | 95 | " vim:set sw=2 sts=2 ts=8 noet: 96 | -------------------------------------------------------------------------------- /vim/init.lua: -------------------------------------------------------------------------------- 1 | vim.g.maplocalleader = ' ' 2 | vim.g.mapleader = ' ' 3 | 4 | -------------------------------------------------------------------- 5 | ------------ PLUGIN CONFIGS ------------------------------------ 6 | -------------------------------------------------------------------- 7 | 8 | 9 | local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" 10 | if not (vim.uv or vim.loop).fs_stat(lazypath) then 11 | vim.fn.system({ 12 | "git", 13 | "clone", 14 | "--filter=blob:none", 15 | "https://github.com/folke/lazy.nvim.git", 16 | "--branch=stable", -- latest stable release 17 | lazypath, 18 | }) 19 | end 20 | vim.opt.rtp:prepend(lazypath) 21 | 22 | require("lazy").setup("plugins") 23 | 24 | require('lualine').setup { 25 | options = { 26 | icons_enabled = false, 27 | theme = 'seoul256', 28 | component_separators = { left = ':', right = ':'}, 29 | section_separators = { left = ' ', right = ' '}, 30 | }, 31 | sections = { 32 | lualine_a = {'mode'}, 33 | lualine_b = {'branch'}, 34 | lualine_c = {'filename'}, 35 | lualine_x = {'encoding', 'fileformat', 'filetype'}, 36 | lualine_y = {'progress'}, 37 | lualine_z = {'location'} 38 | }, 39 | inactive_sections = { 40 | lualine_a = {}, 41 | lualine_b = {}, 42 | lualine_c = {'filename'}, 43 | lualine_x = {'location'}, 44 | lualine_y = {}, 45 | lualine_z = {} 46 | }, 47 | tabline = {}, 48 | winbar = {}, 49 | inactive_winbar = {}, 50 | extensions = {'nvim-tree'} 51 | } 52 | 53 | -------------------------------------------------------------------- 54 | ------------ SETTINGS CONFIGURATIONS ----------------------------- 55 | -------------------------------------------------------------------- 56 | 57 | 58 | vim.g.markdown_fenced_languages = { 'javascript', 'ruby', 'sh', 'yaml', 'javascript', 'html', 'vim', 'coffee', 'json', 'diff' } 59 | 60 | vim.g.tube_terminal = "iterm" 61 | 62 | -- vim.g.ruby_path = system('rvm current') 63 | 64 | vim.g.bufExplorerDefaultHelp=0 65 | vim.g.bufExplorerShowRelativePath=1 66 | vim.g.bufExplorerSortBy='mru' 67 | vim.g.bufExplorerSplitRight=0 68 | 69 | vim.g.indentLine_color_term = 239 70 | vim.g.indentLine_char = '¦' 71 | 72 | vim.g.ruby_indent_access_modifier_style = 'outdent' 73 | -- let ruby_operators = 1 74 | 75 | 76 | vim.g.syntastic_enable_signs = 1 77 | vim.g.syntastic_error_symbol = '✗' 78 | vim.g.syntastic_warning_symbol = '⚠' 79 | vim.g.syntastic_disabled_filetypes = { 'html', 'slim', 'erb', 'md' } 80 | 81 | -- change log settings 82 | vim.g.changelog_dateformat = "%c" 83 | vim.g.changelog_timeformat = "%c" 84 | vim.g.changelog_username = "Anton Davydov, " 85 | 86 | -- vim-slime 87 | vim.g.slime_target = 'tmux' 88 | 89 | vim.opt.number = true 90 | vim.opt.relativenumber = true 91 | vim.opt.mouse = 'nv' 92 | 93 | vim.opt.tags = ".git/tags" 94 | 95 | -- vim.opt.iskeyword-=. " use dot for limiter word 96 | -- vim.opt.iskeyword+=_ 97 | vim.opt.ttyfast = true -- u got a fast terminal 98 | vim.opt.lazyredraw = true -- to avoid scrolling problems 99 | vim.opt.synmaxcol = 200 100 | vim.opt.hidden = true 101 | vim.opt.ts = 2 102 | vim.opt.sw = 2 103 | vim.opt.autoindent = true 104 | vim.opt.smartindent = true 105 | vim.opt.expandtab = true 106 | vim.opt.ignorecase = true 107 | vim.opt.hlsearch = true 108 | vim.opt.splitbelow = true -- new splits are down 109 | vim.opt.splitright = true -- new vsplits are to the right 110 | vim.opt.smartcase = true 111 | vim.opt.incsearch = true 112 | vim.opt.laststatus = 2 113 | vim.opt.visualbell = true 114 | vim.opt.showcmd = true 115 | vim.opt.pastetoggle = "" 116 | vim.opt.iminsert = 0 117 | vim.opt.linebreak = true 118 | vim.opt.completeopt = "longest,menuone" 119 | vim.opt.wildmenu = true 120 | vim.opt.tm = 500 121 | vim.opt.swapfile = false 122 | vim.opt.timeoutlen = 500 123 | vim.opt.langmenu = "en_US.UTF-8" 124 | vim.opt.encoding = "utf-8" 125 | vim.opt.fileencoding = "utf-8" 126 | -- vim.opt.shm+=I -- Startup message is irritating 127 | vim.opt.dictionary = "/usr/share/dict/words" 128 | 129 | -- fold values 130 | vim.opt.foldmethod = "indent" 131 | vim.opt.foldnestmax = 10 132 | vim.opt.foldenable = false 133 | vim.opt.foldlevel = 2 134 | 135 | -- -- Time out on key codes but not mappings. 136 | -- -- Basically this makes terminal Vim work sanely. 137 | -- vim.opt.notimeout = "" 138 | -- vim.opt.ttimeout = "" 139 | -- vim.opt.ttimeoutlen = 10 140 | 141 | -------------------------------------------------------------------- 142 | ------------ KEY MAPPING ----------------------------------------- 143 | -------------------------------------------------------------------- 144 | 145 | vim.opt.hlsearch = true 146 | vim.keymap.set('n', 'n', 'nohlsearch') 147 | 148 | -- Disable Ex mode 149 | vim.keymap.set('', 'Q', '') 150 | 151 | -- fix copy full string command, source: https://www.reddit.com/r/neovim/comments/petq61/neovim_060_y_not_yanking_line_but_to_end_of_line/ 152 | vim.keymap.set('n', 'Y', 'Y', { noremap = true}) 153 | 154 | vim.keymap.set('n', "", "", { noremap = true}) 155 | 156 | -- vim.keymap.set('n', "j", "g", { noremap = true}) 157 | -- vim.keymap.set('n', "k", "gk", { noremap = true}) 158 | -- vim.keymap.set('v', "j", "g", { noremap = true}) 159 | -- vim.keymap.set('v', "k", "gk", { noremap = true}) 160 | -- vim.keymap.set('n', "gj", "k", { noremap = true}) 161 | -- vim.keymap.set('n', "gk", "k", { noremap = true}) 162 | -- vim.keymap.set('v', "gj", "k", { noremap = true}) 163 | -- vim.keymap.set('v', "gk", "k", { noremap = true}) 164 | 165 | -- Quicker window movement 166 | vim.keymap.set('n', "", "h", { noremap = true}) 167 | vim.keymap.set('n', "", "j", { noremap = true}) 168 | vim.keymap.set('n', "", "k", { noremap = true}) 169 | vim.keymap.set('n', "", "l", { noremap = true}) 170 | 171 | -- Tabulating strings mapping 172 | vim.keymap.set('n', "", ">>", { noremap = true}) 173 | vim.keymap.set('n', "", "<<", { noremap = true}) 174 | vim.keymap.set('v', "", ">>", { noremap = true}) 175 | vim.keymap.set('v', "", "<<", { noremap = true}) 176 | 177 | -- Tabs mapping 178 | vim.keymap.set('n', "th", ":tabfirst", { noremap = true}) 179 | vim.keymap.set('n', "tj", ":tabprev", { noremap = true}) 180 | vim.keymap.set('n', "tk", ":tabnext", { noremap = true}) 181 | vim.keymap.set('n', "tl", ":tablast", { noremap = true}) 182 | vim.keymap.set('n', "td", ":tabclose", { noremap = true}) 183 | vim.keymap.set('n', "tn", ":tabnew", { noremap = true}) 184 | 185 | 186 | vim.keymap.set('n', "Q", "", { noremap = true}) 187 | vim.keymap.set('n', "K", "", { noremap = true}) 188 | 189 | vim.keymap.set('n', "o", "o") 190 | vim.keymap.set('n', "O", "oj") 191 | 192 | -- " nmap hh :%s/:\([^ ]*\)\(\s*\)=>/\1:/g 193 | -- vim.keymap.set('n', "hh", ":%s/:([^ ]*)(\s*)=>/\1:/g") 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | vim.cmd([[ 227 | 228 | " source ~/.nvimrc 229 | 230 | filetype off " required 231 | 232 | let g:surround_{char2nr('%')} = "%(\r)" 233 | let g:surround_{char2nr('w')} = "%w(\r)" 234 | let g:surround_{char2nr('#')} = "#{\r}" 235 | let g:surround_{char2nr('|')} = "|\r|" 236 | 237 | 238 | " Load plugins and indentation for file types 239 | if has('autocmd') 240 | filetype indent plugin on 241 | 242 | " Shortcuts to quickly switch to common file types; handy when using 243 | " editing abstractions like sudoedit(8) 244 | nnoremap _cs :setlocal filetype=css 245 | nnoremap _ht :setlocal filetype=html 246 | nnoremap _sl :setlocal filetype=slim 247 | nnoremap _js :setlocal filetype=javascript 248 | nnoremap _md :setlocal filetype=markdown 249 | nnoremap _rb :setlocal filetype=ruby 250 | nnoremap _sh :setlocal filetype=sh 251 | nnoremap _vi :setlocal filetype=vim 252 | endif 253 | 254 | " Color Scheme 255 | set guifont=Droid\ Sans\ Mono\ 12 256 | " let g:seoul257_background = 236 257 | " colo seoul256 258 | " colo iceberg 259 | colo nofrils-dark 260 | " colo ddd 261 | 262 | syntax on 263 | 264 | if executable('zsh') 265 | set shell=zsh 266 | endif 267 | 268 | language mes en_US.UTF-8 269 | 270 | 271 | " ruby xmpfilter 272 | autocmd FileType ruby nmap (xmpfilter-mark) 273 | autocmd FileType ruby xmap (xmpfilter-mark) 274 | autocmd FileType ruby imap (xmpfilter-mark) 275 | 276 | autocmd FileType ruby nmap (xmpfilter-run) 277 | autocmd FileType ruby xmap (xmpfilter-run) 278 | autocmd FileType ruby imap (xmpfilter-run) 279 | 280 | let g:rct_completion_use_fri = 1 281 | 282 | cabbrev CSScomb :!csscomb %:p 283 | cnoreabbrev W ((getcmdtype() is# ':' && getcmdline() is# 'W')?('w'):('W')) 284 | 285 | 286 | " bind K to grep word under cursor 287 | nnoremap f :grep! "\b\b" --ignore-dir log:cw 288 | 289 | " Use The Silver Searcher https://github.com/ggreer/the_silver_searcher 290 | if executable('ag') 291 | " Use Ag over Grep 292 | set grepprg=ag\ --nogroup\ --nocolor 293 | " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore 294 | let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' 295 | " ag is fast enough that CtrlP doesn't need to cache 296 | let g:ctrlp_use_caching = 0 297 | else 298 | " Fall back to using git ls-files if Ag is not available 299 | let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$' 300 | let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others'] 301 | endif 302 | 303 | function! ClearRegisters() 304 | let regs='abcdefghijklmnopqrstuvwxyz0123456789' 305 | let i=0 306 | while (iss :call StripWhitespace() 322 | 323 | " rename current file (thanks Gary Bernhardt) 324 | function! RenameFile() 325 | let old_name = expand('%') 326 | let new_name = input('New file name: ', expand('%'), 'file') 327 | if new_name != '' && new_name != old_name 328 | exec ':saveas ' . new_name 329 | exec ':silent !rm ' . old_name 330 | redraw! 331 | endif 332 | endfunction 333 | command! RENAME call RenameFile() 334 | 335 | " change CamlCase to under_scores 336 | function! ToUnderScores() range 337 | s#\C\(\<\u[a-z0-9]\+\|[a-z0-9]\+\)\(\u\)#\l\1_\l\2#g 338 | endfunction 339 | noremap cc :call ToUnderScores() 340 | 341 | " change under_scores to CamlCase 342 | function! ToCamlCase() range 343 | s#\(\%(\<\l\+\)\%(_\)\@=\)\|_\(\l\)#\u\1\2#g 344 | endfunction 345 | noremap cC :call ToCamlCase() 346 | 347 | " Automatic commands 348 | if has("autocmd") 349 | " Enable file type detection 350 | filetype on 351 | " Treat .json files as .js 352 | autocmd BufNewFile,BufRead *.json setfiletype json syntax=javascript 353 | autocmd BufNewFile,BufRead *.md set filetype=markdown 354 | endif 355 | 356 | autocmd FileType ruby compiler ruby 357 | autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1 358 | autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1 359 | autocmd FileType ruby,eruby let g:rubycomplete_rails = 1 360 | autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete 361 | autocmd FileType css set omnifunc=csscomplete#CompleteCSS 362 | autocmd Filetype gitcommit setlocal spell textwidth=72 363 | 364 | au BufNewFile,BufRead,BufWrite *.md syntax match Comment /\%^---\_.\{-}---$/ 365 | 366 | " Turn on spell-checking in markdown and text. 367 | " au BufRead,BufNewFile *.md,*.txt setlocal spell 368 | 369 | " Neovim confixg 370 | if has('nvim') 371 | " let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1 372 | tnoremap 373 | tnoremap 374 | 375 | highlight TermCursor ctermfg=red guifg=red 376 | endif 377 | 378 | if exists('$TMUX') 379 | let &t_SI = "\Ptmux;\\]50;CursorShape=1\x7\\\" 380 | let &t_EI = "\Ptmux;\\]50;CursorShape=0\x7\\\" 381 | else 382 | let &t_SI = "\]50;CursorShape=1\x7" 383 | let &t_EI = "\]50;CursorShape=0\x7" 384 | endif 385 | 386 | autocmd BufWritePost * set iskeyword-=. 387 | autocmd BufWritePost * set clipboard=unnamed 388 | autocmd BufWritePost * set path+=** 389 | 390 | set iskeyword-=. " use dot for limiter word 391 | set iskeyword+=_ 392 | set path+=** 393 | set clipboard=unnamed 394 | 395 | "------------- any-jump.vim ------------------------------ 396 | let g:any_jump_search_prefered_engine = 'ag' 397 | let g:any_jump_grouping_enabled = 0 398 | let g:any_jump_preview_lines_count = 10 399 | let g:any_jump_window_width_ratio = 0.7 400 | let g:any_jump_ignored_files = ['*.tmp', '*.temp', '*.log'] 401 | " Or override all default colors 402 | let g:any_jump_colors = { 403 | \"plain_text": "Normal", 404 | \"preview": "Operator", 405 | \"preview_keyword": "Directory", 406 | \"heading_text": "StatusLineNC", 407 | \"heading_keyword": "StatusLineNC", 408 | \"group_text": "Operator", 409 | \"group_name": "ErrorMsg", 410 | \"more_button": "Operator", 411 | \"more_explain": "Operator", 412 | \"result_line_number": "ErrorMsg", 413 | \"result_text": "Statement", 414 | \"result_path": "ErrorMsg", 415 | \"help": "StatusLineNC" 416 | \} 417 | 418 | ]]) 419 | 420 | -------------------------------------------------------------------------------- /vim/init.vim: -------------------------------------------------------------------------------- 1 | /Users/anton/.vimrc -------------------------------------------------------------------------------- /vim/plugin/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davydovanton/dotfiles/a99d34047a95373c0b4d00af4882e59f4ee02556/vim/plugin/.DS_Store -------------------------------------------------------------------------------- /vim/plugins.lua: -------------------------------------------------------------------------------- 1 | return { 2 | "folke/neodev.nvim", 3 | 4 | -- main 5 | "Yggdroot/indentLine", 6 | { 7 | "nvim-lualine/lualine.nvim", 8 | dependencies = { 'nvim-tree/nvim-web-devicons' } 9 | }, 10 | 11 | "gorodinskiy/vim-coloresque", 12 | "bruno-/vim-husk", 13 | "powerman/vim-plugin-ruscmd", 14 | "tpope/vim-repeat", 15 | "tpope/vim-surround", 16 | 17 | -- Navigation 18 | "rking/ag.vim", 19 | "corntrace/bufexplorer", 20 | "kien/ctrlp.vim", 21 | "dockyard/vim-easydir", 22 | "scrooloose/nerdtree", 23 | "davydovanton/any-jump.vim", 24 | 25 | -- Snippets 26 | "tomtom/tlib_vim", 27 | "MarcWeber/vim-addon-mw-utils", 28 | "garbas/vim-snipmate", 29 | 30 | -- Programming 31 | "scrooloose/syntastic", 32 | "vim-scripts/tComment", 33 | "jbgutierrez/vim-partial", 34 | "elzr/vim-json", 35 | 36 | -- Markdown 37 | 38 | -- Color schemes 39 | "cocopon/iceberg.vim", 40 | "junegunn/seoul256.vim", 41 | "robertmeta/nofrils", 42 | 43 | -- Ruby group 44 | "tpope/vim-endwise", 45 | -- "slim-template/vim-slim", 46 | -- "tpope/vim-rails", 47 | "vim-ruby/vim-ruby", 48 | -- "tpope/vim-rake", 49 | -- "tpope/vim-bundler", 50 | -- "sunaku/vim-ruby-minitest", 51 | 52 | -- tmux group 53 | "jgdavey/tslime.vim", 54 | "jpalardy/vim-slime", 55 | 56 | -- other 57 | } 58 | -------------------------------------------------------------------------------- /vim/snippets/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davydovanton/dotfiles/a99d34047a95373c0b4d00af4882e59f4ee02556/vim/snippets/.DS_Store -------------------------------------------------------------------------------- /vim/snippets/_.snippets: -------------------------------------------------------------------------------- 1 | # Global snippets 2 | 3 | # (c) holds no legal value ;) 4 | snippet c) 5 | Copyright `&enc[:2] == "utf" ? "©" : "(c)"` `strftime("%Y")` ${1:`g:snips_author`}. All Rights Reserved.${2} 6 | snippet date 7 | `strftime("%Y-%m-%d")` 8 | snippet ddate 9 | `strftime("%B %d, %Y")` 10 | -------------------------------------------------------------------------------- /vim/snippets/autoit.snippets: -------------------------------------------------------------------------------- 1 | snippet if 2 | If ${1:condition} Then 3 | ${2:; True code} 4 | EndIf 5 | snippet el 6 | Else 7 | ${1} 8 | snippet elif 9 | ElseIf ${1:condition} Then 10 | ${2:; True code} 11 | # If/Else block 12 | snippet ifel 13 | If ${1:condition} Then 14 | ${2:; True code} 15 | Else 16 | ${3:; Else code} 17 | EndIf 18 | # If/ElseIf/Else block 19 | snippet ifelif 20 | If ${1:condition 1} Then 21 | ${2:; True code} 22 | ElseIf ${3:condition 2} Then 23 | ${4:; True code} 24 | Else 25 | ${5:; Else code} 26 | EndIf 27 | # Switch block 28 | snippet switch 29 | Switch (${1:condition}) 30 | Case {$2:case1}: 31 | {$3:; Case 1 code} 32 | Case Else: 33 | {$4:; Else code} 34 | EndSwitch 35 | # Select block 36 | snippet select 37 | Select (${1:condition}) 38 | Case {$2:case1}: 39 | {$3:; Case 1 code} 40 | Case Else: 41 | {$4:; Else code} 42 | EndSelect 43 | # While loop 44 | snippet while 45 | While (${1:condition}) 46 | ${2:; code...} 47 | WEnd 48 | # For loop 49 | snippet for 50 | For ${1:n} = ${3:1} to ${2:count} 51 | ${4:; code...} 52 | Next 53 | # New Function 54 | snippet func 55 | Func ${1:fname}(${2:`indent('.') ? 'self' : ''`}): 56 | ${4:Return} 57 | EndFunc 58 | # Message box 59 | snippet msg 60 | MsgBox(${3:MsgType}, ${1:"Title"}, ${2:"Message Text"}) 61 | # Debug Message 62 | snippet debug 63 | MsgBox(0, "Debug", ${1:"Debug Message"}) 64 | # Show Variable Debug Message 65 | snippet showvar 66 | MsgBox(0, "${1:VarName}", $1) 67 | -------------------------------------------------------------------------------- /vim/snippets/c.snippets: -------------------------------------------------------------------------------- 1 | # main() 2 | snippet main 3 | int main(int argc, const char *argv[]) 4 | { 5 | ${1} 6 | return 0; 7 | } 8 | snippet mainn 9 | int main(void) 10 | { 11 | ${1} 12 | return 0; 13 | } 14 | # #include <...> 15 | snippet inc 16 | #include <${1:stdio}.h>${2} 17 | # #include "..." 18 | snippet Inc 19 | #include "${1:`Filename("$1.h")`}"${2} 20 | # #ifndef ... #define ... #endif 21 | snippet Def 22 | #ifndef $1 23 | #define ${1:SYMBOL} ${2:value} 24 | #endif${3} 25 | snippet def 26 | #define 27 | snippet ifdef 28 | #ifdef ${1:FOO} 29 | ${2:#define } 30 | #endif 31 | snippet #if 32 | #if ${1:FOO} 33 | ${2} 34 | #endif 35 | # Header Include-Guard 36 | snippet once 37 | #ifndef ${1:`toupper(Filename('$1_H', 'UNTITLED_H'))`} 38 | 39 | #define $1 40 | 41 | ${2} 42 | 43 | #endif /* end of include guard: $1 */ 44 | # If Condition 45 | snippet if 46 | if (${1:/* condition */}) { 47 | ${2:/* code */} 48 | } 49 | snippet el 50 | else { 51 | ${1} 52 | } 53 | # Ternary conditional 54 | snippet t 55 | ${1:/* condition */} ? ${2:a} : ${3:b} 56 | # Do While Loop 57 | snippet do 58 | do { 59 | ${2:/* code */} 60 | } while (${1:/* condition */}); 61 | # While Loop 62 | snippet wh 63 | while (${1:/* condition */}) { 64 | ${2:/* code */} 65 | } 66 | # For Loop 67 | snippet for 68 | for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) { 69 | ${4:/* code */} 70 | } 71 | # Custom For Loop 72 | snippet forr 73 | for (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) { 74 | ${5:/* code */} 75 | } 76 | # Function 77 | snippet fun 78 | ${1:void} ${2:function_name}(${3}) 79 | { 80 | ${4:/* code */} 81 | } 82 | # Function Declaration 83 | snippet fund 84 | ${1:void} ${2:function_name}(${3});${4} 85 | # Typedef 86 | snippet td 87 | typedef ${1:int} ${2:MyCustomType};${3} 88 | # Struct 89 | snippet st 90 | struct ${1:`Filename('$1_t', 'name')`} { 91 | ${2:/* data */} 92 | }${3: /* optional variable list */};${4} 93 | # Typedef struct 94 | snippet tds 95 | typedef struct ${2:_$1 }{ 96 | ${3:/* data */} 97 | } ${1:`Filename('$1_t', 'name')`}; 98 | # Typdef enum 99 | snippet tde 100 | typedef enum { 101 | ${1:/* data */} 102 | } ${2:foo}; 103 | # printf 104 | # unfortunately version this isn't as nice as TextMates's, given the lack of a 105 | # dynamic `...` 106 | snippet pr 107 | printf("${1:%s}\n"${2});${3} 108 | # fprintf (again, this isn't as nice as TextMate's version, but it works) 109 | snippet fpr 110 | fprintf(${1:stderr}, "${2:%s}\n"${3});${4} 111 | # This is kind of convenient 112 | snippet . 113 | [${1}]${2} 114 | -------------------------------------------------------------------------------- /vim/snippets/javascript.snippets: -------------------------------------------------------------------------------- 1 | # Prototype 2 | snippet proto 3 | ${1:class_name}.prototype.${2:method_name} = 4 | function(${3:first_argument}) { 5 | ${4:// body...} 6 | }; 7 | # Function 8 | snippet fun 9 | function ${1:function_name} (${2:argument}) { 10 | ${3:// body...} 11 | } 12 | # Anonymous Function 13 | snippet f 14 | function(${1}) {${2}}; 15 | # if 16 | snippet if 17 | if (${1:true}) {${2}} 18 | # if ... else 19 | snippet ife 20 | if (${1:true}) {${2}} 21 | else{${3}} 22 | # tertiary conditional 23 | snippet t 24 | ${1:/* condition */} ? ${2:a} : ${3:b} 25 | # switch 26 | snippet switch 27 | switch(${1:expression}) { 28 | case '${3:case}': 29 | ${4:// code} 30 | break; 31 | ${5} 32 | default: 33 | ${2:// code} 34 | } 35 | # case 36 | snippet case 37 | case '${1:case}': 38 | ${2:// code} 39 | break; 40 | ${3} 41 | # for (...) {...} 42 | snippet for 43 | for (var ${2:i} = 0; $2 < ${1:Things}.length; $2${3:++}) { 44 | ${4:$1[$2]} 45 | }; 46 | # for (...) {...} (Improved Native For-Loop) 47 | snippet forr 48 | for (var ${2:i} = ${1:Things}.length - 1; $2 >= 0; $2${3:--}) { 49 | ${4:$1[$2]} 50 | }; 51 | # while (...) {...} 52 | snippet wh 53 | while (${1:/* condition */}) { 54 | ${2:/* code */} 55 | } 56 | # do...while 57 | snippet do 58 | do { 59 | ${2:/* code */} 60 | } while (${1:/* condition */}); 61 | # Object Method 62 | snippet :f 63 | ${1:method_name}: function(${2:attribute}) { 64 | ${4} 65 | }${3:,} 66 | # setTimeout function 67 | snippet timeout 68 | setTimeout(function() {${3}}${2}, ${1:10}; 69 | # Get Elements 70 | snippet get 71 | getElementsBy${1:TagName}('${2}')${3} 72 | # Get Element 73 | snippet gett 74 | getElementBy${1:Id}('${2}')${3} 75 | # debugger 76 | snippet gg 77 | debugger; 78 | -------------------------------------------------------------------------------- /vim/snippets/ruby.snippets: -------------------------------------------------------------------------------- 1 | ######################################## 2 | # Ruby snippets # 3 | ######################################## 4 | 5 | # New Block 6 | snippet =b 7 | =begin rdoc 8 | ${0} 9 | =end 10 | snippet y 11 | :yields: ${0:arguments} 12 | snippet beg 13 | begin 14 | ${0} 15 | rescue ${1:Exception} => ${2:e} 16 | end 17 | 18 | snippet import 19 | include Import[ 20 | ] 21 | 22 | snippet req require 23 | require "${1}" 24 | snippet reqr 25 | require_relative "${1}" 26 | snippet # 27 | # => 28 | snippet case 29 | case ${1:object} 30 | when ${2:condition} 31 | ${0} 32 | end 33 | snippet when 34 | when ${1:condition} 35 | ${0} 36 | snippet def 37 | def ${1:method_name} 38 | ${0} 39 | end 40 | snippet if 41 | if ${1:condition} 42 | ${0} 43 | end 44 | snippet ife 45 | if ${1:condition} 46 | ${2} 47 | else 48 | ${0} 49 | end 50 | snippet unless 51 | unless ${1:condition} 52 | ${0} 53 | end 54 | snippet wh 55 | while ${1:condition} 56 | ${0} 57 | end 58 | 59 | ########################## 60 | # object snippets # 61 | ########################## 62 | snippet class class .. initialize(payload) .. call(payload) .. end 63 | class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} 64 | def initialize(payload) 65 | ${0} 66 | end 67 | 68 | def call(payload) 69 | ${0} 70 | end 71 | end 72 | 73 | snippet mod module .. end 74 | module ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} 75 | ${0} 76 | end 77 | snippet mod module .. ClassMethods .. end 78 | module ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} 79 | module ClassMethods 80 | ${0} 81 | end 82 | 83 | module InstanceMethods 84 | 85 | end 86 | 87 | def self.included(receiver) 88 | receiver.extend ClassMethods 89 | receiver.send :include, InstanceMethods 90 | end 91 | end 92 | 93 | # attr_reader 94 | snippet r 95 | attr_reader :${0:attr_names} 96 | # attr_writer 97 | snippet w 98 | attr_writer :${0:attr_names} 99 | # attr_accessor 100 | snippet rw 101 | attr_accessor :${0:attr_names} 102 | 103 | # ivc == instance variable cache 104 | snippet ivc 105 | @${1:variable_name} ||= ${0:cached_value} 106 | # def self 107 | snippet defs 108 | def self.${1:class_method_name} 109 | ${0} 110 | end 111 | # def initialize 112 | snippet definit 113 | def initialize(${1:args}) 114 | ${0} 115 | end 116 | 117 | ########################## 118 | # block snippets # 119 | ########################## 120 | snippet b 121 | { |${1:var}| ${0} } 122 | snippet begin 123 | begin 124 | raise 'A test exception.' 125 | rescue Exception => e 126 | puts e.message 127 | puts e.backtrace.inspect 128 | else 129 | # other exception 130 | ensure 131 | # always executed 132 | end 133 | 134 | ########################## 135 | # debugging snippets # 136 | ########################## 137 | snippet debug 138 | require 'debug' 139 | 140 | ########################## 141 | # Rspec snippets # 142 | ########################## 143 | snippet desc 144 | describe ${1:`substitute(substitute(vim_snippets#Filename(), '_spec$', '', ''), '\(_\|^\)\(.\)', '\u\2', 'g')`} do 145 | ${0} 146 | end 147 | snippet descm 148 | describe "${1:#method}" do 149 | ${0:pending "Not implemented"} 150 | end 151 | snippet cont 152 | context "${1:message}" do 153 | ${0} 154 | end 155 | snippet bef 156 | before :${1:each} do 157 | ${0} 158 | end 159 | snippet aft 160 | after :${1:each} do 161 | ${0} 162 | end 163 | snippet let 164 | let(:${1:object}) { ${0} } 165 | snippet let! 166 | let!(:${1:object}) { ${0} } 167 | snippet subj 168 | subject { ${0} } 169 | snippet s. 170 | subject.${0:method} 171 | snippet exp 172 | expect(${1:object}).to ${0} 173 | snippet it 174 | it { ${0} } 175 | snippet itb 176 | it "${1:spec_name}" do 177 | ${0} 178 | end 179 | -------------------------------------------------------------------------------- /vim/snippets/sh.snippets: -------------------------------------------------------------------------------- 1 | # #!/bin/bash 2 | snippet #! 3 | #!/bin/bash 4 | 5 | snippet if 6 | if [[ ${1:condition} ]]; then 7 | ${2:#statements} 8 | fi 9 | snippet elif 10 | elif [[ ${1:condition} ]]; then 11 | ${2:#statements} 12 | snippet for 13 | for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do 14 | ${3:#statements} 15 | done 16 | snippet wh 17 | while [[ ${1:condition} ]]; do 18 | ${2:#statements} 19 | done 20 | snippet until 21 | until [[ ${1:condition} ]]; do 22 | ${2:#statements} 23 | done 24 | snippet case 25 | case ${1:word} in 26 | ${2:pattern}) 27 | ${3};; 28 | esac 29 | -------------------------------------------------------------------------------- /vim/snippets/snippet.snippets: -------------------------------------------------------------------------------- 1 | # snippets for making snippets :) 2 | snippet snip 3 | snippet ${1:trigger} 4 | ${2} 5 | snippet msnip 6 | snippet ${1:trigger} ${2:description} 7 | ${3} 8 | -------------------------------------------------------------------------------- /vim/snippets/tex.snippets: -------------------------------------------------------------------------------- 1 | # \begin{}...\end{} 2 | snippet begin 3 | \begin{${1:env}} 4 | ${2} 5 | \end{$1} 6 | # Tabular 7 | snippet tab 8 | \begin{${1:tabular}}{${2:c}} 9 | ${3} 10 | \end{$1} 11 | # Align(ed) 12 | snippet ali 13 | \begin{align${1:ed}} 14 | ${2} 15 | \end{align$1} 16 | # Gather(ed) 17 | snippet gat 18 | \begin{gather${1:ed}} 19 | ${2} 20 | \end{gather$1} 21 | # Equation 22 | snippet eq 23 | \begin{equation} 24 | ${1} 25 | \end{equation} 26 | # Unnumbered Equation 27 | snippet \ 28 | \\[ 29 | ${1} 30 | \\] 31 | # Enumerate 32 | snippet enum 33 | \begin{enumerate} 34 | \item ${1} 35 | \end{enumerate} 36 | # Itemize 37 | snippet item 38 | \begin{itemize} 39 | \item ${1} 40 | \end{itemize} 41 | # Description 42 | snippet desc 43 | \begin{description} 44 | \item[${1}] ${2} 45 | \end{description} 46 | # Matrix 47 | snippet mat 48 | \begin{${1:p/b/v/V/B/small}matrix} 49 | ${2} 50 | \end{$1matrix} 51 | # Cases 52 | snippet cas 53 | \begin{cases} 54 | ${1:equation}, &\text{ if }${2:case}\\ 55 | ${3} 56 | \end{cases} 57 | # Split 58 | snippet spl 59 | \begin{split} 60 | ${1} 61 | \end{split} 62 | # Part 63 | snippet part 64 | \part{${1:part name}} % (fold) 65 | \label{prt:${2:$1}} 66 | ${3} 67 | % part $2 (end) 68 | # Chapter 69 | snippet cha 70 | \chapter{${1:chapter name}} % (fold) 71 | \label{cha:${2:$1}} 72 | ${3} 73 | % chapter $2 (end) 74 | # Section 75 | snippet sec 76 | \section{${1:section name}} % (fold) 77 | \label{sec:${2:$1}} 78 | ${3} 79 | % section $2 (end) 80 | # Sub Section 81 | snippet sub 82 | \subsection{${1:subsection name}} % (fold) 83 | \label{sub:${2:$1}} 84 | ${3} 85 | % subsection $2 (end) 86 | # Sub Sub Section 87 | snippet subs 88 | \subsubsection{${1:subsubsection name}} % (fold) 89 | \label{ssub:${2:$1}} 90 | ${3} 91 | % subsubsection $2 (end) 92 | # Paragraph 93 | snippet par 94 | \paragraph{${1:paragraph name}} % (fold) 95 | \label{par:${2:$1}} 96 | ${3} 97 | % paragraph $2 (end) 98 | # Sub Paragraph 99 | snippet subp 100 | \subparagraph{${1:subparagraph name}} % (fold) 101 | \label{subp:${2:$1}} 102 | ${3} 103 | % subparagraph $2 (end) 104 | snippet itd 105 | \item[${1:description}] ${2:item} 106 | snippet figure 107 | ${1:Figure}~\ref{${2:fig:}}${3} 108 | snippet table 109 | ${1:Table}~\ref{${2:tab:}}${3} 110 | snippet listing 111 | ${1:Listing}~\ref{${2:list}}${3} 112 | snippet section 113 | ${1:Section}~\ref{${2:sec:}}${3} 114 | snippet page 115 | ${1:page}~\pageref{${2}}${3} 116 | -------------------------------------------------------------------------------- /vim/snippets/vim.snippets: -------------------------------------------------------------------------------- 1 | snippet header 2 | " File: ${1:`expand('%:t')`} 3 | " Author: ${2:`g:snips_author`} 4 | " Description: ${3} 5 | ${4:" Last Modified: `strftime("%B %d, %Y")`} 6 | snippet guard 7 | if exists('${1:did_`Filename()`}') || &cp${2: || version < 700} 8 | finish 9 | endif 10 | let $1 = 1${3} 11 | snippet f 12 | fun ${1:function_name}(${2}) 13 | ${3:" code} 14 | endf 15 | snippet for 16 | for ${1:needle} in ${2:haystack} 17 | ${3:" code} 18 | endfor 19 | snippet wh 20 | while ${1:condition} 21 | ${2:" code} 22 | endw 23 | snippet if 24 | if ${1:condition} 25 | ${2:" code} 26 | endif 27 | snippet ife 28 | if ${1:condition} 29 | ${2} 30 | else 31 | ${3} 32 | endif 33 | -------------------------------------------------------------------------------- /vim/snippets/zsh.snippets: -------------------------------------------------------------------------------- 1 | # #!/bin/zsh 2 | snippet #! 3 | #!/bin/zsh 4 | 5 | snippet if 6 | if ${1:condition}; then 7 | ${2:# statements} 8 | fi 9 | snippet ife 10 | if ${1:condition}; then 11 | ${2:# statements} 12 | else 13 | ${3:# statements} 14 | fi 15 | snippet elif 16 | elif ${1:condition} ; then 17 | ${2:# statements} 18 | snippet for 19 | for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do 20 | ${3:# statements} 21 | done 22 | snippet fore 23 | for ${1:item} in ${2:list}; do 24 | ${3:# statements} 25 | done 26 | snippet wh 27 | while ${1:condition}; do 28 | ${2:# statements} 29 | done 30 | snippet until 31 | until ${1:condition}; do 32 | ${2:# statements} 33 | done 34 | snippet repeat 35 | repeat ${1:integer}; do 36 | ${2:# statements} 37 | done 38 | snippet case 39 | case ${1:word} in 40 | ${2:pattern}) 41 | ${3};; 42 | esac 43 | snippet select 44 | select ${1:answer} in ${2:choices}; do 45 | ${3:# statements} 46 | done 47 | snippet ( 48 | ( ${1:#statements} ) 49 | snippet { 50 | { ${1:#statements} } 51 | snippet [ 52 | [[ ${1:test} ]] 53 | snippet always 54 | { ${1:try} } always { ${2:always} } 55 | snippet fun 56 | function ${1:name} (${2:args}) { 57 | ${3:# body} 58 | } 59 | -------------------------------------------------------------------------------- /vim/spell/en.utf-8.add: -------------------------------------------------------------------------------- 1 | dropdown 2 | -------------------------------------------------------------------------------- /vim/spell/en.utf-8.add.spl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davydovanton/dotfiles/a99d34047a95373c0b4d00af4882e59f4ee02556/vim/spell/en.utf-8.add.spl -------------------------------------------------------------------------------- /vim/spell/en.utf-8.spl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davydovanton/dotfiles/a99d34047a95373c0b4d00af4882e59f4ee02556/vim/spell/en.utf-8.spl -------------------------------------------------------------------------------- /vim/spell/en.utf-8.sug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davydovanton/dotfiles/a99d34047a95373c0b4d00af4882e59f4ee02556/vim/spell/en.utf-8.sug -------------------------------------------------------------------------------- /vim/syntax/conque_term.vim: -------------------------------------------------------------------------------- 1 | " FILE: syntax/conque_term.vim {{{ 2 | " AUTHOR: Nico Raffo 3 | " WEBSITE: http://conque.googlecode.com 4 | " MODIFIED: 2011-09-02 5 | " VERSION: 2.3, for Vim 7.0 6 | " LICENSE: 7 | " Conque - Vim terminal/console emulator 8 | " Copyright (C) 2009-2011 Nico Raffo 9 | " 10 | " MIT License 11 | " 12 | " Permission is hereby granted, free of charge, to any person obtaining a copy 13 | " of this software and associated documentation files (the "Software"), to deal 14 | " in the Software without restriction, including without limitation the rights 15 | " to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 16 | " copies of the Software, and to permit persons to whom the Software is 17 | " furnished to do so, subject to the following conditions: 18 | " 19 | " The above copyright notice and this permission notice shall be included in 20 | " all copies or substantial portions of the Software. 21 | " 22 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 25 | " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 27 | " OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 28 | " THE SOFTWARE. 29 | " }}} 30 | 31 | 32 | " ******************************************************************************************************************* 33 | " MySQL ************************************************************************************************************* 34 | " ******************************************************************************************************************* 35 | 36 | " TODO Move these to syntax which is only executed for mysql 37 | "syn match MySQLTableBodyG "^\s*\w\+:\(.\+\)\=$" contains=MySQLTableHeadG,MySQLNullG,MySQLBool,MySQLNumberG,MySQLStorageClass oneline skipwhite skipnl 38 | "syn match MySQLTableHeadG "^\s*\w\+:" contains=MySQLTableColon skipwhite contained 39 | "syn match MySQLTableColon ":" contained 40 | 41 | syn match MySQLTableHead "^ *|.*| *$" nextgroup=MySQLTableDivide contains=MySQLTableBar oneline skipwhite skipnl 42 | syn match MySQLTableBody "^ *|.*| *$" nextgroup=MySQLTableBody,MySQLTableEnd contains=MySQLTableBar,MySQLNull,MySQLBool,MySQLNumber,MySQLStorageClass oneline skipwhite skipnl 43 | syn match MySQLTableEnd "^ *+[+=-]\++ *$" oneline 44 | syn match MySQLTableDivide "^ *+[+=-]\++ *$" nextgroup=MySQLTableBody oneline skipwhite skipnl 45 | syn match MySQLTableStart "^ *+[+=-]\++ *$" nextgroup=MySQLTableHead oneline skipwhite skipnl 46 | syn match MySQLNull " NULL " contained contains=MySQLTableBar 47 | syn match MySQLStorageClass " PRI " contained 48 | syn match MySQLStorageClass " MUL " contained 49 | syn match MySQLStorageClass " UNI " contained 50 | syn match MySQLStorageClass " CURRENT_TIMESTAMP " contained 51 | syn match MySQLStorageClass " auto_increment " contained 52 | syn match MySQLTableBar "|" contained 53 | syn match MySQLNumber "|\? *\d\+\(\.\d\+\)\? *|" contained contains=MySQLTableBar 54 | syn match MySQLQueryStat "^\d\+ rows\? in set.*" oneline 55 | syn match MySQLPromptLine "^.\?mysql> .*$" contains=MySQLKeyword,MySQLPrompt,MySQLString oneline 56 | syn match MySQLPromptLine "^ -> .*$" contains=MySQLKeyword,MySQLPrompt,MySQLString oneline 57 | syn match MySQLPrompt "^.\?mysql>" contained oneline 58 | syn match MySQLPrompt "^ ->" contained oneline 59 | syn case ignore 60 | syn keyword MySQLKeyword select count max sum avg date show table tables status like as from left right outer inner join contained 61 | syn keyword MySQLKeyword where group by having limit offset order desc asc show contained and interval is null on 62 | syn case match 63 | syn region MySQLString start=+'+ end=+'+ skip=+\\'+ contained oneline 64 | syn region MySQLString start=+"+ end=+"+ skip=+\\"+ contained oneline 65 | syn region MySQLString start=+`+ end=+`+ skip=+\\`+ contained oneline 66 | 67 | 68 | hi def link MySQLPrompt Identifier 69 | hi def link MySQLTableHead Title 70 | hi def link MySQLTableBody Normal 71 | hi def link MySQLBool Boolean 72 | hi def link MySQLStorageClass StorageClass 73 | hi def link MySQLNumber Number 74 | hi def link MySQLKeyword Keyword 75 | hi def link MySQLString String 76 | 77 | " terms which have no reasonable default highlight group to link to 78 | hi MySQLTableHead term=bold cterm=bold gui=bold 79 | if &background == 'dark' 80 | hi MySQLTableEnd term=NONE cterm=NONE gui=NONE ctermfg=238 guifg=#444444 81 | hi MySQLTableDivide term=NONE cterm=NONE gui=NONE ctermfg=238 guifg=#444444 82 | hi MySQLTableStart term=NONE cterm=NONE gui=NONE ctermfg=238 guifg=#444444 83 | hi MySQLTableBar term=NONE cterm=NONE gui=NONE ctermfg=238 guifg=#444444 84 | hi MySQLNull term=NONE cterm=NONE gui=NONE ctermfg=238 guifg=#444444 85 | hi MySQLQueryStat term=NONE cterm=NONE gui=NONE ctermfg=238 guifg=#444444 86 | elseif &background == 'light' 87 | hi MySQLTableEnd term=NONE cterm=NONE gui=NONE ctermfg=247 guifg=#9e9e9e 88 | hi MySQLTableDivide term=NONE cterm=NONE gui=NONE ctermfg=247 guifg=#9e9e9e 89 | hi MySQLTableStart term=NONE cterm=NONE gui=NONE ctermfg=247 guifg=#9e9e9e 90 | hi MySQLTableBar term=NONE cterm=NONE gui=NONE ctermfg=247 guifg=#9e9e9e 91 | hi MySQLNull term=NONE cterm=NONE gui=NONE ctermfg=247 guifg=#9e9e9e 92 | hi MySQLQueryStat term=NONE cterm=NONE gui=NONE ctermfg=247 guifg=#9e9e9e 93 | endif 94 | 95 | 96 | " ******************************************************************************************************************* 97 | " Bash ************************************************************************************************************** 98 | " ******************************************************************************************************************* 99 | 100 | " Typical Prompt 101 | if g:ConqueTerm_PromptRegex != '' 102 | silent execute "syn match ConquePromptLine '" . g:ConqueTerm_PromptRegex . ".*$' contains=ConquePrompt,ConqueString oneline" 103 | silent execute "syn match ConquePrompt '" . g:ConqueTerm_PromptRegex . "' contained oneline" 104 | hi def link ConquePrompt Identifier 105 | endif 106 | 107 | " Strings 108 | syn region ConqueString start=+'+ end=+'+ skip=+\\'+ contained oneline 109 | syn region ConqueString start=+"+ end=+"+ skip=+\\"+ contained oneline 110 | syn region ConqueString start=+`+ end=+`+ skip=+\\`+ contained oneline 111 | hi def link ConqueString String 112 | 113 | " vim: foldmethod=marker 114 | -------------------------------------------------------------------------------- /vim/syntax/eruby.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: eRuby 3 | " Maintainer: Tim Pope 4 | " URL: https://github.com/vim-ruby/vim-ruby 5 | " Release Coordinator: Doug Kearns 6 | 7 | if exists("b:current_syntax") 8 | finish 9 | endif 10 | 11 | if !exists("main_syntax") 12 | let main_syntax = 'eruby' 13 | endif 14 | 15 | if !exists("g:eruby_default_subtype") 16 | let g:eruby_default_subtype = "html" 17 | endif 18 | 19 | if &filetype =~ '^eruby\.' 20 | let b:eruby_subtype = matchstr(&filetype,'^eruby\.\zs\w\+') 21 | elseif !exists("b:eruby_subtype") && main_syntax == 'eruby' 22 | let s:lines = getline(1)."\n".getline(2)."\n".getline(3)."\n".getline(4)."\n".getline(5)."\n".getline("$") 23 | let b:eruby_subtype = matchstr(s:lines,'eruby_subtype=\zs\w\+') 24 | if b:eruby_subtype == '' 25 | let b:eruby_subtype = matchstr(substitute(expand("%:t"),'\c\%(\.erb\|\.eruby\|\.erubis\)\+$','',''),'\.\zs\w\+$') 26 | endif 27 | if b:eruby_subtype == 'rhtml' 28 | let b:eruby_subtype = 'html' 29 | elseif b:eruby_subtype == 'rb' 30 | let b:eruby_subtype = 'ruby' 31 | elseif b:eruby_subtype == 'yml' 32 | let b:eruby_subtype = 'yaml' 33 | elseif b:eruby_subtype == 'js' 34 | let b:eruby_subtype = 'javascript' 35 | elseif b:eruby_subtype == 'txt' 36 | " Conventional; not a real file type 37 | let b:eruby_subtype = 'text' 38 | elseif b:eruby_subtype == '' 39 | let b:eruby_subtype = g:eruby_default_subtype 40 | endif 41 | endif 42 | 43 | if !exists("b:eruby_nest_level") 44 | let b:eruby_nest_level = strlen(substitute(substitute(substitute(expand("%:t"),'@','','g'),'\c\.\%(erb\|rhtml\)\>','@','g'),'[^@]','','g')) 45 | endif 46 | if !b:eruby_nest_level 47 | let b:eruby_nest_level = 1 48 | endif 49 | 50 | if exists("b:eruby_subtype") && b:eruby_subtype != '' 51 | exe "runtime! syntax/".b:eruby_subtype.".vim" 52 | unlet! b:current_syntax 53 | endif 54 | syn include @rubyTop syntax/ruby.vim 55 | 56 | syn cluster erubyRegions contains=erubyOneLiner,erubyBlock,erubyExpression,erubyComment 57 | 58 | exe 'syn region erubyOneLiner matchgroup=erubyDelimiter start="^%\{1,'.b:eruby_nest_level.'\}%\@!" end="$" contains=@rubyTop containedin=ALLBUT,@erubyRegions keepend oneline' 59 | exe 'syn region erubyBlock matchgroup=erubyDelimiter start="<%\{1,'.b:eruby_nest_level.'\}%\@!-\=" end="[=-]\=%\@" contains=@rubyTop containedin=ALLBUT,@erubyRegions keepend' 60 | exe 'syn region erubyExpression matchgroup=erubyDelimiter start="<%\{1,'.b:eruby_nest_level.'\}=\{1,4}" end="[=-]\=%\@" contains=@rubyTop containedin=ALLBUT,@erubyRegions keepend' 61 | exe 'syn region erubyComment matchgroup=erubyDelimiter start="<%\{1,'.b:eruby_nest_level.'\}-\=#" end="[=-]\=%\@" contains=rubyTodo,@Spell containedin=ALLBUT,@erubyRegions keepend' 62 | 63 | " Define the default highlighting. 64 | 65 | hi def link erubyDelimiter PreProc 66 | hi def link erubyComment Comment 67 | 68 | let b:current_syntax = 'eruby' 69 | 70 | if main_syntax == 'eruby' 71 | unlet main_syntax 72 | endif 73 | 74 | " vim: nowrap sw=2 sts=2 ts=8: 75 | -------------------------------------------------------------------------------- /vim/syntax/nerdtree.vim: -------------------------------------------------------------------------------- 1 | let s:tree_up_dir_line = '.. (up a dir)' 2 | "NERDTreeFlags are syntax items that should be invisible, but give clues as to 3 | "how things should be highlighted 4 | syn match NERDTreeFlag #\~# 5 | syn match NERDTreeFlag #\[RO\]# 6 | 7 | "highlighting for the .. (up dir) line at the top of the tree 8 | execute "syn match NERDTreeUp #\\V". s:tree_up_dir_line ."#" 9 | 10 | "highlighting for the ~/+ symbols for the directory nodes 11 | syn match NERDTreeClosable #\~\<# 12 | syn match NERDTreeClosable #\~\.# 13 | syn match NERDTreeOpenable #+\<# 14 | syn match NERDTreeOpenable #+\.#he=e-1 15 | 16 | "highlighting for the tree structural parts 17 | syn match NERDTreePart #|# 18 | syn match NERDTreePart #`# 19 | syn match NERDTreePartFile #[|`]-#hs=s+1 contains=NERDTreePart 20 | 21 | "quickhelp syntax elements 22 | syn match NERDTreeHelpKey #" \{1,2\}[^ ]*:#hs=s+2,he=e-1 23 | syn match NERDTreeHelpKey #" \{1,2\}[^ ]*,#hs=s+2,he=e-1 24 | syn match NERDTreeHelpTitle #" .*\~#hs=s+2,he=e-1 contains=NERDTreeFlag 25 | syn match NERDTreeToggleOn #".*(on)#hs=e-2,he=e-1 contains=NERDTreeHelpKey 26 | syn match NERDTreeToggleOff #".*(off)#hs=e-3,he=e-1 contains=NERDTreeHelpKey 27 | syn match NERDTreeHelpCommand #" :.\{-}\>#hs=s+3 28 | syn match NERDTreeHelp #^".*# contains=NERDTreeHelpKey,NERDTreeHelpTitle,NERDTreeFlag,NERDTreeToggleOff,NERDTreeToggleOn,NERDTreeHelpCommand 29 | 30 | "highlighting for readonly files 31 | syn match NERDTreeRO #.*\[RO\]#hs=s+2 contains=NERDTreeFlag,NERDTreeBookmark,NERDTreePart,NERDTreePartFile 32 | 33 | "highlighting for sym links 34 | syn match NERDTreeLink #[^-| `].* -> # contains=NERDTreeBookmark,NERDTreeOpenable,NERDTreeClosable,NERDTreeDirSlash 35 | 36 | "highlighing for directory nodes and file nodes 37 | syn match NERDTreeDirSlash #/# 38 | syn match NERDTreeDir #[^-| `].*/# contains=NERDTreeLink,NERDTreeDirSlash,NERDTreeOpenable,NERDTreeClosable 39 | syn match NERDTreeExecFile #[|` ].*\*\($\| \)# contains=NERDTreeLink,NERDTreePart,NERDTreeRO,NERDTreePartFile,NERDTreeBookmark 40 | syn match NERDTreeFile #|-.*# contains=NERDTreeLink,NERDTreePart,NERDTreeRO,NERDTreePartFile,NERDTreeBookmark,NERDTreeExecFile 41 | syn match NERDTreeFile #`-.*# contains=NERDTreeLink,NERDTreePart,NERDTreeRO,NERDTreePartFile,NERDTreeBookmark,NERDTreeExecFile 42 | syn match NERDTreeCWD #^[# 49 | syn match NERDTreeBookmarksHeader #^>-\+Bookmarks-\+$# contains=NERDTreeBookmarksLeader 50 | syn match NERDTreeBookmarkName #^>.\{-} #he=e-1 contains=NERDTreeBookmarksLeader 51 | syn match NERDTreeBookmark #^>.*$# contains=NERDTreeBookmarksLeader,NERDTreeBookmarkName,NERDTreeBookmarksHeader 52 | 53 | if exists("g:NERDChristmasTree") && g:NERDChristmasTree 54 | hi def link NERDTreePart Special 55 | hi def link NERDTreePartFile Type 56 | hi def link NERDTreeFile Normal 57 | hi def link NERDTreeExecFile Title 58 | hi def link NERDTreeDirSlash Identifier 59 | hi def link NERDTreeClosable Type 60 | else 61 | hi def link NERDTreePart Normal 62 | hi def link NERDTreePartFile Normal 63 | hi def link NERDTreeFile Normal 64 | hi def link NERDTreeClosable Title 65 | endif 66 | 67 | hi def link NERDTreeBookmarksHeader statement 68 | hi def link NERDTreeBookmarksLeader ignore 69 | hi def link NERDTreeBookmarkName Identifier 70 | hi def link NERDTreeBookmark normal 71 | 72 | hi def link NERDTreeHelp String 73 | hi def link NERDTreeHelpKey Identifier 74 | hi def link NERDTreeHelpCommand Identifier 75 | hi def link NERDTreeHelpTitle Macro 76 | hi def link NERDTreeToggleOn Question 77 | hi def link NERDTreeToggleOff WarningMsg 78 | 79 | hi def link NERDTreeDir Directory 80 | hi def link NERDTreeUp Directory 81 | hi def link NERDTreeCWD Statement 82 | hi def link NERDTreeLink Macro 83 | hi def link NERDTreeOpenable Title 84 | hi def link NERDTreeFlag ignore 85 | hi def link NERDTreeRO WarningMsg 86 | hi def link NERDTreeBookmark Statement 87 | 88 | hi def link NERDTreeCurrentNode Search 89 | -------------------------------------------------------------------------------- /vim/syntax/rspec.vim: -------------------------------------------------------------------------------- 1 | " 2 | " An rspec syntax file 3 | " Originally from http://www.vim.org/scripts/script.php?script_id=2286 4 | " 5 | " 6 | 7 | runtime! syntax/ruby.vim 8 | unlet! b:current_syntax 9 | 10 | syntax keyword rspecGroupMethods context describe example it its let let\! it_should_behave_like shared_examples shared_examples_for subject it_behaves_like pending specify When Then Given Invariant feature scenario given given\! 11 | highlight link rspecGroupMethods Statement 12 | 13 | syntax keyword rspecBeforeAndAfter after after_suite_parts append_after append_before before before_suite_parts prepend_after prepend_before around 14 | highlight link rspecBeforeAndAfter Identifier 15 | 16 | syntax keyword rspecMocks double mock stub stub_chain 17 | highlight link rspecMocks Constant 18 | 19 | syntax keyword rspecMockMethods and_raise and_return and_throw and_yield build_child called_max_times expected_args invoke matches 20 | highlight link rspecMockMethods Function 21 | 22 | syntax keyword rspecKeywords should should_not should_not_receive should_receive 23 | highlight link rspecKeywords Constant 24 | 25 | syntax keyword rspecMatchers described_class is_expected be change eq eql equal errors_on exist expect expect_any_instance_of allow allow_any_instance_of receive have have_at_least have_at_most have_exactly include match matcher raise_error raise_exception respond_to satisfy throw_symbol to to_not not_to when wrap_expectation 26 | 27 | " rspec-mongoid exclusive matchers 28 | syntax keyword rspecMatchers embed_one embed_many belong_to validate_format_of validate_associated validate_exclusion_of validate_inclusion_of validate_length_of custom_validate accept_nested_attributes_for 29 | 30 | " shoulda matchers 31 | syntax keyword rspecMatchers allow_mass_assignment_of allow_value ensure_exclusion_of ensure_length_of have_secure_password validate_absence_of validate_acceptance_of validate_confirmation_of validate_numericality_of validate_presence_of validate_uniqueness_of 32 | syntax match rspecMatchers /\<\(be\|have\)_\w\+\>/ 33 | highlight link rspecMatchers Function 34 | 35 | syntax keyword rspecMessageExpectation advise any_args any_number_of_times anything at_least at_most exactly expected_messages_received generate_error hash_including hash_not_including ignoring_args instance_of matches_at_least_count matches_at_most_count matches_exact_count matches_name_but_not_args negative_expectation_for never no_args once ordered similar_messages times twice verify_messages_received with 36 | highlight link rspecMessageExpectation Function 37 | 38 | let b:current_syntax = 'rspec' 39 | -------------------------------------------------------------------------------- /vim/syntax/snippet.vim: -------------------------------------------------------------------------------- 1 | " Syntax highlighting for .snippet files (used for snipMate.vim) 2 | " Hopefully this should make snippets a bit nicer to write! 3 | syn match placeHolder '\${\d\+\(:.\{-}\)\=}' contains=snipCommand 4 | syn match tabStop '\$\d\+' 5 | syn match snipEscape '\\\\\|\\`' 6 | syn match snipCommand '\%(\\\@= $1) { a[x]=0; } }}' 80 | } 81 | 82 | # User commands 83 | # export MANPATH="/usr/local/man:$MANPATH" 84 | export PATH="/opt/local/bin:/opt/local/sbin:/Users/anton/.rvm/gems/ruby-2.0.0-p247/bin:/Users/anton/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/anton/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/anton/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/Users/anton/.dasht/bin:/Users/anton/company/order-service/" 85 | 86 | # Preferred editor for local and remote sessions 87 | export EDITOR='nvim' 88 | export TERM=xterm-256color 89 | 90 | # Update Java version 91 | export JAVA_HOME="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home" 92 | 93 | # ssh 94 | # export SSH_KEY_PATH="~/.ssh/dsa_id" 95 | [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" 96 | 97 | # key bindings 98 | bindkey "^P" up-line-or-search 99 | bindkey "^N" down-line-or-search 100 | 101 | # ALIAS: 102 | # Git alias 103 | alias gcl='git clone' 104 | alias grb='git rebase' 105 | 106 | # programs 107 | alias 'airport=/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I' 108 | alias 'ctags=/usr/local/bin/ctags' 109 | alias 'git=/usr/local/bin/git' 110 | alias 'scheme=/usr/local/bin/scheme' 111 | alias 'octave=exec "/Applications/Octave.app/Contents/Resources/bin/octave"' 112 | alias 'tmux=TERM=screen-256color-bce tmux' 113 | alias 'vim=/usr/local/bin/vim' 114 | alias 'emacs=/usr/local/bin/emacs' 115 | alias 'zsh=/usr/local/bin/zsh' 116 | alias 'pip3=/usr/local/bin/pip3' 117 | alias 'codespell=/Users/anton/bin/codespell/codespell.py' 118 | 119 | # Others 120 | alias 'dumdumdum=say -v cellos "Dum dum dum dum dum dum dum he he he ho ho ho fa lah lah lah lah lah lah fa lah full hoo hoo hoo"' 121 | alias 'weather=curl -4 http://wttr.in/' 122 | 123 | alias 'gsd=git icdiff' 124 | export PATH="/usr/local/bin:$PATH" 125 | 126 | export RUST_SRC_PATH=/usr/local/src/rust/src 127 | 128 | # added by travis gem 129 | [ -f /Users/anton/.travis/travis.sh ] && source /Users/anton/.travis/travis.sh 130 | 131 | [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh 132 | 133 | export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" 134 | export PATH=$HOME/.npm-global/bin/:$PATH 135 | export PATH="/usr/local/opt/openssl@1.1/bin:$PATH" 136 | export PATH=$PATH:/usr/local/sbin 137 | 138 | # . $(brew --prefix asdf)/asdf.sh 139 | 140 | source /Users/anton/.config/broot/launcher/bash/br 141 | --------------------------------------------------------------------------------