quite cool now, next put a good vim theme
This commit is contained in:
parent
a3b9696a63
commit
fce34058ae
38 changed files with 20439 additions and 18 deletions
18
.vimrc
18
.vimrc
|
@ -1,18 +0,0 @@
|
||||||
" I wanna suffer: disable arrow keys
|
|
||||||
noremap <Up> <NOP>
|
|
||||||
noremap <Down> <NOP>
|
|
||||||
noremap <Left> <NOP>
|
|
||||||
noremap <Right> <NOP>
|
|
||||||
|
|
||||||
" Do not create swap files
|
|
||||||
set nobackup
|
|
||||||
set noswapfile
|
|
||||||
set noundofile
|
|
||||||
|
|
||||||
" Line numbering (hybrid: relative and absolute)
|
|
||||||
set number relativenumber
|
|
||||||
augroup numbertoggle
|
|
||||||
autocmd!
|
|
||||||
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
|
|
||||||
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
|
|
||||||
augroup END
|
|
46
install.sh
Executable file
46
install.sh
Executable file
|
@ -0,0 +1,46 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Adrien Luxey - Feb. 2019
|
||||||
|
# Script inspired by https://github.com/mathiasbynens/dotfiles/blob/master/bootstrap.sh
|
||||||
|
|
||||||
|
|
||||||
|
# cd to this file's directory
|
||||||
|
DOTDIR=$(cd "$(dirname ${BASH_SOURCE})"; pwd)
|
||||||
|
# echo "DOTDIR: " $DOTDIR
|
||||||
|
|
||||||
|
function syncDotfiles() {
|
||||||
|
rm $HOME/.zshrc > /dev/null 2>&1
|
||||||
|
rm $HOME/.vimrc > /dev/null 2>&1
|
||||||
|
rm $HOME/.tmux.conf > /dev/null 2>&1
|
||||||
|
rm -rf $HOME/.vim > /dev/null 2>&1
|
||||||
|
rm -rf $HOME/.tmux > /dev/null 2>&1
|
||||||
|
rm -rf $HOME/.config/sublime-text-3/Packages/User > /dev/null 2>&1
|
||||||
|
|
||||||
|
ln -s $DOTDIR/zshrc $HOME/.zshrc
|
||||||
|
ln -s $DOTDIR/vimrc $HOME/.vimrc
|
||||||
|
ln -s $DOTDIR/tmux.conf $HOME/.tmux.conf
|
||||||
|
ln -s $DOTDIR/vim $HOME/.vim
|
||||||
|
ln -s $DOTDIR/tmux $HOME/.tmux
|
||||||
|
ln -s $DOTDIR/sublime $HOME/.config/sublime-text-3/Packages/User
|
||||||
|
|
||||||
|
}
|
||||||
|
syncDotfiles
|
||||||
|
|
||||||
|
function installDependencies() {
|
||||||
|
# Dependencies
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y apt-transport-https curl zsh
|
||||||
|
|
||||||
|
# Install Sublime Text
|
||||||
|
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
|
||||||
|
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install sublime-text -y
|
||||||
|
|
||||||
|
# Install Oh My Zsh
|
||||||
|
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
|
||||||
|
|
||||||
|
# Set ZSH as default shell
|
||||||
|
sudo -u $USER chsh -s $(which zsh)
|
||||||
|
}
|
||||||
|
|
4
sublime/.gitignore
vendored
Normal file
4
sublime/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
Projects/
|
||||||
|
Package Control.cache/
|
||||||
|
*.last-run
|
||||||
|
.SublimeREPLHistory
|
29
sublime/AutoPep8.sublime-settings
Normal file
29
sublime/AutoPep8.sublime-settings
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
"max-line-length": 79,
|
||||||
|
|
||||||
|
// list codes for fixes; used by --ignore and --select
|
||||||
|
"list-fixes": "",
|
||||||
|
|
||||||
|
// do not fix these errors / warnings(e.g. E4, W)
|
||||||
|
"ignore": "E24, E226, D",
|
||||||
|
|
||||||
|
// select errors / warnings(e.g. E4, W)
|
||||||
|
"select": "",
|
||||||
|
|
||||||
|
// number of spaces per indent level
|
||||||
|
"indent-size": 4,
|
||||||
|
|
||||||
|
"format_on_save": true,
|
||||||
|
"show_output_panel": true,
|
||||||
|
// Format/Preview menu items only appear for views
|
||||||
|
// with syntax from `syntax_list`
|
||||||
|
// value is base filename of the .tmLanguage syntax files
|
||||||
|
"syntax_list": ["Python"],
|
||||||
|
|
||||||
|
"file_menu_search_depth": 3, // max depth to search python files
|
||||||
|
|
||||||
|
"avoid_new_line_in_select_mode": false,
|
||||||
|
|
||||||
|
// print debug info into the console
|
||||||
|
"debug": false
|
||||||
|
}
|
121
sublime/Default (Linux).sublime-keymap
Normal file
121
sublime/Default (Linux).sublime-keymap
Normal file
|
@ -0,0 +1,121 @@
|
||||||
|
[
|
||||||
|
// Open folder
|
||||||
|
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" },
|
||||||
|
|
||||||
|
// Switch case
|
||||||
|
{ "keys": ["ctrl+u"], "command": "swap_case"},
|
||||||
|
|
||||||
|
// Change Ctrl+Shift behaviour (Firefox-like)
|
||||||
|
{ "keys": ["ctrl+tab"], "command": "next_view" },
|
||||||
|
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
|
||||||
|
{ "keys": ["ctrl+pagedown"], "command": "next_view_in_stack" },
|
||||||
|
{ "keys": ["ctrl+pageup"], "command": "prev_view_in_stack" },
|
||||||
|
|
||||||
|
// Lord, do I hate Ctrl+q ...
|
||||||
|
{ "keys": ["ctrl+q"], "command": "unbound"},
|
||||||
|
|
||||||
|
|
||||||
|
// Allow Alt+C to comment:
|
||||||
|
{ "keys": ["alt+c"], "command": "toggle_comment", "args": { "block": false } },
|
||||||
|
{ "keys": ["alt+c"], "command": "toggle_comment", "args": { "block": true } },
|
||||||
|
{ "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } },
|
||||||
|
{ "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } },
|
||||||
|
|
||||||
|
// View settings
|
||||||
|
{
|
||||||
|
"keys": ["ctrl+alt+&"],
|
||||||
|
"command": "set_layout",
|
||||||
|
"args":
|
||||||
|
{
|
||||||
|
"cols": [0.0, 1.0],
|
||||||
|
"rows": [0.0, 1.0],
|
||||||
|
"cells": [[0, 0, 1, 1]]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keys": ["ctrl+alt+é"],
|
||||||
|
"command": "set_layout",
|
||||||
|
"args":
|
||||||
|
{
|
||||||
|
"cols": [0.0, 0.5, 1.0],
|
||||||
|
"rows": [0.0, 1.0],
|
||||||
|
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keys": ["ctrl+alt+\""],
|
||||||
|
"command": "set_layout",
|
||||||
|
"args":
|
||||||
|
{
|
||||||
|
"cols": [0.0, 0.5, 1.0],
|
||||||
|
"rows": [0.0, 0.5, 1.0],
|
||||||
|
"cells":
|
||||||
|
[
|
||||||
|
[0, 0, 1, 1], [1, 0, 2, 1],
|
||||||
|
[0, 1, 2, 2]
|
||||||
|
]
|
||||||
|
// "cols": [0.0, 0.33, 0.66, 1.0],
|
||||||
|
// "rows": [0.0, 1.0],
|
||||||
|
// "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keys": ["alt+shift+4"],
|
||||||
|
"command": "set_layout",
|
||||||
|
"args":
|
||||||
|
{
|
||||||
|
"cols": [0.0, 0.25, 0.5, 0.75, 1.0],
|
||||||
|
"rows": [0.0, 1.0],
|
||||||
|
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keys": ["ctrl+alt+("],
|
||||||
|
"command": "set_layout",
|
||||||
|
"args":
|
||||||
|
{
|
||||||
|
"cols": [0.0, 1.0],
|
||||||
|
"rows": [0.0, 0.5, 1.0],
|
||||||
|
"cells": [[0, 0, 1, 1], [0, 1, 1, 2]]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keys": ["alt+shift+9"],
|
||||||
|
"command": "set_layout",
|
||||||
|
"args":
|
||||||
|
{
|
||||||
|
"cols": [0.0, 1.0],
|
||||||
|
"rows": [0.0, 0.33, 0.66, 1.0],
|
||||||
|
"cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keys": ["ctrl+alt+'"],
|
||||||
|
"command": "set_layout",
|
||||||
|
"args":
|
||||||
|
{
|
||||||
|
"cols": [0.0, 0.5, 1.0],
|
||||||
|
"rows": [0.0, 0.5, 1.0],
|
||||||
|
"cells":
|
||||||
|
[
|
||||||
|
[0, 0, 1, 1], [1, 0, 2, 1],
|
||||||
|
[0, 1, 1, 2], [1, 1, 2, 2]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keys": ["ctrl+alt+o"],
|
||||||
|
"command": "project_manager", "args": {"action": "new"}
|
||||||
|
},
|
||||||
|
{ "keys": ["ctrl+alt+s"], "command": "toggle_side_bar" },
|
||||||
|
|
||||||
|
// LaTeX compilation set to Ctrl+Enter
|
||||||
|
// Doesn't work...
|
||||||
|
// {
|
||||||
|
// "keys": ["ctrl+enter"],
|
||||||
|
// "context": [
|
||||||
|
// {"key": "selector", "operator": "equal", "operand": "text.tex.latex"},
|
||||||
|
// {"key": "latextools.st_version", "operator": "equal", "operand": "<3080"}],
|
||||||
|
// "command": "latextools_build_selector"
|
||||||
|
// },
|
||||||
|
]
|
18
sublime/Flake8Lint.sublime-settings
Normal file
18
sublime/Flake8Lint.sublime-settings
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
// run lint in live mode: lint file (without popup) every XXX ms
|
||||||
|
// please, be careful: this may cause performance issues on ST2
|
||||||
|
"live_mode": false,
|
||||||
|
// set live mode lint delay, in milliseconds
|
||||||
|
"live_mode_lint_delay": 10000,
|
||||||
|
|
||||||
|
// D: Fuck documentation, right?
|
||||||
|
// E401: no multiple imports on same line
|
||||||
|
// E265: block comment (#) blah blah blah
|
||||||
|
"ignore": ["D"],
|
||||||
|
|
||||||
|
// popup a dialog of detected conditions?
|
||||||
|
"popup": false,
|
||||||
|
// highlight detected conditions?
|
||||||
|
"highlight": true,
|
||||||
|
|
||||||
|
}
|
23
sublime/GoSublime-aux.sublime-settings
Normal file
23
sublime/GoSublime-aux.sublime-settings
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"9o.hist./home/adrien/Cloud/These/Code/toy_projects/hashing":
|
||||||
|
[
|
||||||
|
"go run main.go"
|
||||||
|
],
|
||||||
|
"9o.hist./home/adrien/Dolmen/code/dolmen":
|
||||||
|
[
|
||||||
|
"exit"
|
||||||
|
],
|
||||||
|
"9o.hist./home/adrien/Dolmen/code/toy_examples/ip_repository":
|
||||||
|
[
|
||||||
|
"error",
|
||||||
|
"error such",
|
||||||
|
"GoSublime r16.07.09-1 9o: type `help` for help and command documentation\n\n[ `error` | done: 2.548376ms ]\n\tfork/exec usr/bin/zsh: no such file or directory\n[ `error such` | done: 2.22218ms ]\n\tfork/exec usr/bin/zsh: no such file or directory\n[ ~/Dolmen/code/toy_examples/ip_repository/ ] # \n[ `run` | done: 71.429963ms ]\n\t# _/home/adrien/Dolmen/code/toy_examples/ip_repository\n\t./main.go:54: packet.payload undefined (type Packet has no field or method payload, but does have Payload)\n\t./main.go:79: packet.ch undefined (type Packet has no field or method ch, but does have Ch)\n\t./main.go:107: non-name p.Payload on left si\nde of :=\n\t./main.go:110: undefined: toSend\n\t./main.go:124: p redeclared in this block\n\t\tprevious declaration at ./main.go:105\n\t./main.go:125: no new variables on left side of :=\n\t./main.go:126: p.payload undefined (type Packet has no field or method payload, but does have Payload)\n\t./main.go:127: p.ch undefined (type Packet has no field or method ch, but does have Ch)\n\t\n\texit status 2\n[ ~/Dolmen/code/toy_examples/ip_repository/ ] #",
|
||||||
|
"GoSublime r16.07.09-1 9o: type `help` for help and command documentation",
|
||||||
|
"Run",
|
||||||
|
"RUN",
|
||||||
|
"run"
|
||||||
|
],
|
||||||
|
"ann": "a18.07.31-1",
|
||||||
|
"install_version": "r18.07.22-1",
|
||||||
|
"version": "r18.07.22-1"
|
||||||
|
}
|
7
sublime/GoSublime.sublime-settings
Normal file
7
sublime/GoSublime.sublime-settings
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"env": {
|
||||||
|
"GOPATH": "$HOME/goroot",
|
||||||
|
},
|
||||||
|
"shell": ["/usr/bin/zsh", "--login", "-c", "$CMD"],
|
||||||
|
}
|
||||||
|
|
BIN
sublime/GoSublime/linux-x64/bin/gosublime.margo_r18.07.22-1_go1.10.3.exe
Executable file
BIN
sublime/GoSublime/linux-x64/bin/gosublime.margo_r18.07.22-1_go1.10.3.exe
Executable file
Binary file not shown.
13281
sublime/GoSublime/linux-x64/log.txt
Normal file
13281
sublime/GoSublime/linux-x64/log.txt
Normal file
File diff suppressed because it is too large
Load diff
5
sublime/JavaScript.sublime-settings
Normal file
5
sublime/JavaScript.sublime-settings
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
// These settings override both User and Default settings for the JavaScript syntax
|
||||||
|
{
|
||||||
|
"tab_size": 2,
|
||||||
|
"translate_tabs_to_spaces": true,
|
||||||
|
}
|
3
sublime/JavascriptBeautify.sublime-settings
Normal file
3
sublime/JavascriptBeautify.sublime-settings
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"indent_size": 2,
|
||||||
|
}
|
620
sublime/LaTeXTools.sublime-settings
Normal file
620
sublime/LaTeXTools.sublime-settings
Normal file
|
@ -0,0 +1,620 @@
|
||||||
|
// LaTeXTools Preferences
|
||||||
|
//
|
||||||
|
// Keep in the User directory. Personalize as needed
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// General settings
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Cite/ref autocompletion by default is triggered after e.g. \ref{. If you don't like this,
|
||||||
|
// set to false. You can also use toggles: C-l,t,a,c and C-l,t,a,r.
|
||||||
|
"cite_auto_trigger": true,
|
||||||
|
"ref_auto_trigger": true,
|
||||||
|
|
||||||
|
// Fill-helper autocompletion triggered for a wide range of references to external
|
||||||
|
// files. You can also use toggle: C-l,t,a,f
|
||||||
|
"fill_auto_trigger": true,
|
||||||
|
|
||||||
|
// Fill-helper autocompletion trigger for environment names after \begin{ and \end{
|
||||||
|
// this requires the LaTeX-cwl package and might not have a complete list of all environments.
|
||||||
|
// You can also use toggle: C-l,t,a,e
|
||||||
|
"env_auto_trigger": false,
|
||||||
|
|
||||||
|
// Fill-helper autocompletion trigger for glossary entries \gls{ and \acrfull{
|
||||||
|
"glossary_auto_trigger": true,
|
||||||
|
|
||||||
|
// Fill-helper autocompletion trigger for tex directive values after TEX directive=
|
||||||
|
// You can also use toggle: C-l,t,a,d
|
||||||
|
"tex_directive_auto_trigger": true,
|
||||||
|
|
||||||
|
// Controls whether the various fill-helpers should try to insert a
|
||||||
|
// completing }, ], or ) when inserted and either the C-l,C-f or C-l,x
|
||||||
|
// keybindings were used to trigger the completion. This attempts to be smart
|
||||||
|
// about where to place the bracket, but may not work for all cases, particularly
|
||||||
|
// when a command is spread across mutliple lines.
|
||||||
|
// You can also use the toggle C-l,t,a,b
|
||||||
|
"smart_bracket_auto_trigger": true,
|
||||||
|
|
||||||
|
// Keep focus on Sublime Text after building (true) or switch to PDF viewer (false)
|
||||||
|
// If you are on Windows or Linux and using ST2, you may need to set the
|
||||||
|
// "sublime_executable" setting for this to work in your platform settings.
|
||||||
|
"keep_focus": true,
|
||||||
|
// Sync PDF to current editor position after building (true) or not
|
||||||
|
"forward_sync": true,
|
||||||
|
|
||||||
|
// Set this to false to disable the overwriting of the goto overlay for the hotkey `C-r` and `C-shift-r`
|
||||||
|
// You can still access the "table of content quickpanel" via `C-l, C-r` and `C-shift-l, C-r`
|
||||||
|
"overwrite_goto_overlay": true,
|
||||||
|
|
||||||
|
// When to trigger cwl-command completion (requires the LaTeX-cwl package)
|
||||||
|
// possible values are:
|
||||||
|
// "always" (always show command completions)
|
||||||
|
// "prefixed" (default, show command completions if the current word is prefixed with '\')
|
||||||
|
// "never" (never show command completions)
|
||||||
|
"command_completion": "prefixed",
|
||||||
|
|
||||||
|
// valid texfile extensions
|
||||||
|
"tex_file_exts": [".tex"],
|
||||||
|
|
||||||
|
// controls whether or not syntax is automatically set to LaTeX for
|
||||||
|
// files that match one of the configured `tex_file_exts`
|
||||||
|
"latextools_set_syntax": true,
|
||||||
|
|
||||||
|
// set to true to use BibLaTeX instead of BibTex for bibliography completions
|
||||||
|
// can also be set on a per-project basis
|
||||||
|
"use_biblatex": false,
|
||||||
|
|
||||||
|
// the mapping from the locales to the dictionaries for the
|
||||||
|
// `%!TEX spellcheck` directive, where the locales must be all lowercase
|
||||||
|
// and separated by a minus sign (-). The dictionaries must be valid path
|
||||||
|
// and compatible with the ST integrated spellcheck
|
||||||
|
// e.g.
|
||||||
|
// { "en-en": "Packages/Language - English/en_GB.dic" }
|
||||||
|
"tex_spellcheck_paths": {},
|
||||||
|
|
||||||
|
// sublevel to show counts for
|
||||||
|
// passed to texcount via the -sub= paramater
|
||||||
|
// valid values: "none", "part", "chapter", "section"
|
||||||
|
"word_count_sub_level": "none",
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// Preview settings
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
|
// MATH LIVE PREVIEW
|
||||||
|
|
||||||
|
// The preview mode for math live preview, possible values are:
|
||||||
|
// "all" to show a phantom for each math environment
|
||||||
|
// "selected" to show a phantom only for the currently selected math environment
|
||||||
|
// "none" to disable math live preview
|
||||||
|
"preview_math_mode": "selected",
|
||||||
|
|
||||||
|
// The program to compile the latex template files, possible values are
|
||||||
|
// pdflatex, xelatex, lualatex, latex
|
||||||
|
// DON'T(!) use tex engines like pdftex
|
||||||
|
"preview_math_latex_compile_program": "pdflatex",
|
||||||
|
|
||||||
|
// The color of the text in the preview math phantoms.
|
||||||
|
// Ensure you have the latex xcolor package available to change the color.
|
||||||
|
// The format can either be RGB based "#RRGGBB" (e.g. "#FFFF00")
|
||||||
|
// or a color name (e.g. "yellow")
|
||||||
|
// If it is the empty string "" it will be guessed based in the color scheme.
|
||||||
|
"preview_math_color": "",
|
||||||
|
|
||||||
|
// The background color of the preview math phantoms.
|
||||||
|
// In contrast to the foreground color you may also edit your colorscheme to change this.
|
||||||
|
// The format can either be RGB(A) based "#RRGGBB" (e.g. "#0000FF50")
|
||||||
|
// or a color name (e.g. "blue")
|
||||||
|
// If it is the empty string "" the default color will be used.
|
||||||
|
"preview_math_background_color": "",
|
||||||
|
|
||||||
|
// An array of the used packages, from which the file for the live preview
|
||||||
|
// will be generated.
|
||||||
|
// Just write \\usepackage{packagename} to include other packages.
|
||||||
|
// (The xcolor package will be present, even if not in this list.)
|
||||||
|
"preview_math_template_packages": [
|
||||||
|
"\\usepackage{amsmath}",
|
||||||
|
"\\usepackage{amssymb}",
|
||||||
|
"\\IfFileExists{latexsym.sty}{\\usepackage{latexsym}}{}",
|
||||||
|
"\\IfFileExists{mathtools.sty}{\\usepackage{mathtools}}{}"
|
||||||
|
],
|
||||||
|
|
||||||
|
// An string of the remaining preamble (not packages) for the file,
|
||||||
|
// which generates the math live preview.
|
||||||
|
// Can also be an array, with an string for each line (as in the packages).
|
||||||
|
// For technical reasons DON'T include other files.
|
||||||
|
"preview_math_template_preamble": "",
|
||||||
|
|
||||||
|
// The preview functionality by default appends a star (*) to each
|
||||||
|
// math environments, since we cannot and want not track the
|
||||||
|
// equation numbers. This may not be possible with each environment,
|
||||||
|
// therefore you can create a blacklist of such environments here.
|
||||||
|
"preview_math_no_star_envs": ["displaymath"],
|
||||||
|
|
||||||
|
// The density of the preview image. The higher the density the bigger the phantom.
|
||||||
|
"preview_math_density": 150,
|
||||||
|
// If the image is not sharp enough increase this scale to get a better resolution.
|
||||||
|
// However also change the density by the same factor to keep the size.
|
||||||
|
"preview_math_scale_quotient": 1,
|
||||||
|
// If this is true, the image will be rendered at a higher resolution and
|
||||||
|
// then scaled down. This generally results in a clearer image.
|
||||||
|
"preview_math_hires": true,
|
||||||
|
|
||||||
|
// IMAGE PREVIEW
|
||||||
|
|
||||||
|
// The preview mode for image preview, possible values are:
|
||||||
|
// "all" to show a phantom for each includegraphics command
|
||||||
|
// "selected" to show a phantom only for the currently selected includegraphics command
|
||||||
|
// "hover" to show a popup if you hover over an includegraphics command
|
||||||
|
// "none" to disable image preview
|
||||||
|
"preview_image_mode": "hover",
|
||||||
|
|
||||||
|
// The image size in the preview popup.
|
||||||
|
// These are the outer dimensions of the maximal size.
|
||||||
|
// The image will be scaled down to fit into these dimensions.
|
||||||
|
// It can either be an number or an array, which consist of two numbers
|
||||||
|
// e.g. [200, 150]
|
||||||
|
"preview_popup_image_size": 200,
|
||||||
|
|
||||||
|
// The image size in the preview phantoms.
|
||||||
|
// These are the outer dimensions of the maximal size.
|
||||||
|
// The image will be scaled down to fit into these dimensions.
|
||||||
|
// It can either be an number or an array, which consist of two numbers
|
||||||
|
// e.g. [200, 150]
|
||||||
|
"preview_phantom_image_size": 150,
|
||||||
|
|
||||||
|
// Increase this number to get a better resolution on high dpi displays.
|
||||||
|
// Control the thumbnail image size, which will be generated to preview
|
||||||
|
// images, that are not natively supported like pdf files.
|
||||||
|
// E.g. a image size of 300 with a scale of 2 will create a
|
||||||
|
// thumbnail with the size 600, which is scaled down in the popup.
|
||||||
|
"preview_image_scale_quotient": 1,
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// Temporary file settings
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// Ends of the names of temporary files to be deleted
|
||||||
|
"temp_files_exts": [
|
||||||
|
".blg",".bbl",".aux",".log",".brf",".nlo",".out",".dvi",".ps",
|
||||||
|
".lof",".toc",".fls",".fdb_latexmk",".pdfsync",".synctex.gz",
|
||||||
|
".ind",".ilg",".idx"
|
||||||
|
],
|
||||||
|
// Folders that are not traversed when deleting temp files
|
||||||
|
"temp_files_ignored_folders": [
|
||||||
|
".git", ".svn", ".hg"
|
||||||
|
],
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// Platform settings: adapt as needed for your machine
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
|
"osx": {
|
||||||
|
// Path used when invoking tex & friends; MUST include $PATH
|
||||||
|
"texpath" : "$PATH:/Library/TeX/texbin:/usr/texbin:/usr/local/bin:/opt/local/bin"
|
||||||
|
// Path to PDF viewer, if needed
|
||||||
|
// TODO think about it. Also, maybe configure it here!
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
"windows": {
|
||||||
|
// Path used when invoking tex & friends; "" is fine for MiKTeX
|
||||||
|
// For TeXlive 2011 (or other years) use
|
||||||
|
// "texpath" : "C:\\texlive\\2011\\bin\\win32;$PATH",
|
||||||
|
"texpath" : "",
|
||||||
|
// TeX distro: "miktex" or "texlive"
|
||||||
|
"distro" : "miktex",
|
||||||
|
// Command to invoke Sumatra. If blank, "SumatraPDF.exe" is used (it has to be on your PATH)
|
||||||
|
"sumatra": "",
|
||||||
|
// Command to invoke Sublime Text. Used if the keep_focus toggle is true.
|
||||||
|
// If blank, "subl.exe" or "sublime_text.exe" will be used.
|
||||||
|
"sublime_executable": "",
|
||||||
|
// how long (in seconds) to wait after the jump_to_pdf command completes
|
||||||
|
// before switching focus back to Sublime Text. This may need to be
|
||||||
|
// adjusted depending on your machine and configuration.
|
||||||
|
"keep_focus_delay": 0.5
|
||||||
|
},
|
||||||
|
|
||||||
|
"linux" : {
|
||||||
|
// Path used when invoking tex & friends; MUST include $PATH
|
||||||
|
"texpath" : "$PATH:/usr/texbin",
|
||||||
|
// Command to invoke Python. Useful if you have Python installed in a
|
||||||
|
// non-standard location or want to use a particular version of python.
|
||||||
|
// Both Python2 and Python3 are supported, but must have the DBus bindings
|
||||||
|
// installed.
|
||||||
|
"python": "",
|
||||||
|
// The name of the ST2 or ST3 executable. On Ubuntu, both subl and sublime-text are
|
||||||
|
// available for ST2; adjust as needed for other platforms, and for ST3
|
||||||
|
"sublime": "sublime-text",
|
||||||
|
// How long to wait after evince or okular has launched before sending a sync message
|
||||||
|
// in seconds, floating point; choose 2.0 or 3.0 on a slower machine, 0.5 on a fast one
|
||||||
|
// Note: only tweak this if sync after launching the PDF viewer does not seem to work,
|
||||||
|
// or if the PDF viewer opens instantly and you don't want to wait.
|
||||||
|
// Default: 1.5 (works on my MBP4,1...)
|
||||||
|
"sync_wait": 1.5,
|
||||||
|
// Command to invoke Sublime Text. Used if the keep_focus toggle is true.
|
||||||
|
// If blank, "subl" or "sublime_text" will be used.
|
||||||
|
"sublime_executable": "",
|
||||||
|
// how long (in ms) to wait after the jump_to_pdf command completes
|
||||||
|
// before switching focus back to Sublime Text. This may need to be
|
||||||
|
// adjusted depending on your machine and configuration.
|
||||||
|
"keep_focus_delay": 0.5
|
||||||
|
},
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// Output Directory settings settings
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
|
// OPTION: "aux_directory"
|
||||||
|
// Specifies the auxiliary directory
|
||||||
|
// Possible values:
|
||||||
|
//
|
||||||
|
// "" the default; does not use any auxiliary directory
|
||||||
|
//
|
||||||
|
// path the path to the auxiliary directory; if this is
|
||||||
|
// not an absolute path it is interpreted as a
|
||||||
|
// path relative to the main tex file
|
||||||
|
//
|
||||||
|
// "<<temp>>" the auxiliary directory will be a temporary
|
||||||
|
// directory generated in as secure a manner as
|
||||||
|
// possible; note that this temporary directory
|
||||||
|
// is only valid until ST is restarted and will
|
||||||
|
// be deleted on the next start-up
|
||||||
|
//
|
||||||
|
// "<<project>>" this creates an auxiliary directory in the same
|
||||||
|
// folder as the main tex file; the name is the
|
||||||
|
// MD5 hash of the absolute path of the main file;
|
||||||
|
// unlike <<temp>> this directory will persist
|
||||||
|
//
|
||||||
|
// "<<cache>>" this creates an auxiliary directory in the ST
|
||||||
|
// cache directory on ST3 or a suitable directory
|
||||||
|
// on ST2; unlike <<temp>> this directory will
|
||||||
|
// persist; unlike <<project>>, it will not be
|
||||||
|
// in the same directory as the main tex file
|
||||||
|
//
|
||||||
|
// NOTE: This setting will be overridden by the corresponding
|
||||||
|
// %!TEX directive if any; also, while it is possible to define
|
||||||
|
// a global value here, it may make more sense to define this
|
||||||
|
// value in your project settings if you use STs project feature
|
||||||
|
// if you do so, however, note that the path will be interpreted
|
||||||
|
// relative to the location of your project file
|
||||||
|
|
||||||
|
"aux_directory": "",
|
||||||
|
|
||||||
|
// OPTION: "output_directory"
|
||||||
|
// Specifies the output directory
|
||||||
|
// Possible values:
|
||||||
|
//
|
||||||
|
// "" the default; does not use any output directory
|
||||||
|
//
|
||||||
|
// path the path to the output directory; if this is
|
||||||
|
// not an absolute path it is interpreted as a
|
||||||
|
// path relative to the main tex file
|
||||||
|
//
|
||||||
|
// "<<temp>>" the output directory will be a temporary
|
||||||
|
// directory generated in as secure a manner as
|
||||||
|
// possible; note that this temporary directory
|
||||||
|
// is only valid until ST is restarted and will
|
||||||
|
// be deleted on the next start-up
|
||||||
|
//
|
||||||
|
// "<<project>>" this creates an output directory in the same
|
||||||
|
// folder as the main tex file; the name is the
|
||||||
|
// MD5 hash of the absolute path of the main file;
|
||||||
|
// unlike <<temp>> this directory will persist
|
||||||
|
//
|
||||||
|
// "<<cache>>" this creates an output directory in the ST
|
||||||
|
// cache directory on ST3 or a suitable directory
|
||||||
|
// on ST2; unlike <<temp>> this directory will
|
||||||
|
// persist; unlike <<project>>, it will not be
|
||||||
|
// in the same directory as the main tex file
|
||||||
|
//
|
||||||
|
// NOTE: This setting will be overridden by the corresponding
|
||||||
|
// %!TEX directive if any; also, while it is possible to define
|
||||||
|
// a global value here, it may make more sense to define this
|
||||||
|
// value in your project settings if you use STs project feature
|
||||||
|
// if you do so, however, note that the path will be interpreted
|
||||||
|
// relative to the location of your project file
|
||||||
|
|
||||||
|
"output_directory": "",
|
||||||
|
|
||||||
|
// OPTION: "jobname"
|
||||||
|
// Specifies the jobname to use when building the document
|
||||||
|
|
||||||
|
"jobname": "",
|
||||||
|
|
||||||
|
// OPTION: "copy_output_on_build"
|
||||||
|
// Specifies whether to copy the final PDF file to the same folder
|
||||||
|
// as the main tex file; if it is neither true nor false it must be
|
||||||
|
// as list of extensions of the files to copy into the same folder as
|
||||||
|
// the main tex file; this only applies if an output directory is
|
||||||
|
// set via a setting or a `%!TEX` directive
|
||||||
|
|
||||||
|
"copy_output_on_build": true,
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// Build engine settings
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
|
// OPTION: "builder"
|
||||||
|
// Specifies a build engine
|
||||||
|
// Possible values:
|
||||||
|
//
|
||||||
|
// "default" or "" the default built-in build engine; currently
|
||||||
|
// this is the same as "traditional"
|
||||||
|
//
|
||||||
|
// "basic" invokes pdflatex / xelatex / lualatex as
|
||||||
|
// needed, then biber / bibtex and pdflatex /
|
||||||
|
// xelatex / lualatex again if needed. Unlike
|
||||||
|
// the "simple" builder this supports most of
|
||||||
|
// LaTeXTools builder features.
|
||||||
|
//
|
||||||
|
// "script" external script: invokes the set of commands
|
||||||
|
// specified in the "script_commands" setting
|
||||||
|
// in the platform-specific part of the
|
||||||
|
// "builder_settings"
|
||||||
|
//
|
||||||
|
// "simple" invokes pdflatex 1x or 2x as needed, then
|
||||||
|
// bibtex and pdflatex again if needed;
|
||||||
|
// intended mainly as a simple example for
|
||||||
|
// people writing their own build engines.
|
||||||
|
//
|
||||||
|
// "traditional" replicates the 'old' system based on
|
||||||
|
// latexmk (TeXLive) / texify (MiKTeX)
|
||||||
|
//
|
||||||
|
// custom name you can also use third-party build engines;
|
||||||
|
// if so, set the "builder_path" option below
|
||||||
|
//
|
||||||
|
// NOTE: custom builders CANNOT have the same name as an existing
|
||||||
|
// built-in build engine (including "default")
|
||||||
|
|
||||||
|
"builder": "traditional",
|
||||||
|
|
||||||
|
// OPTION: "builder_path"
|
||||||
|
// If non-empty, specifies a path to a custom builder, relative to the
|
||||||
|
// Sublime Text Packages directory.
|
||||||
|
// For instance, "User/builders" (on Windows: "User\builders") is a good
|
||||||
|
// choice if you roll your own.
|
||||||
|
// (Note: if you choose "User", you may get a Python import error in the
|
||||||
|
// console, but things will still work).
|
||||||
|
// Leave empty ("") for a built-in builder.
|
||||||
|
|
||||||
|
"builder_path": "",
|
||||||
|
|
||||||
|
// OPTION: "builder_settings"
|
||||||
|
// Specify builder-dependent settings and preferences
|
||||||
|
// Possible values: see README or documentation provided with
|
||||||
|
// third-party build engine.
|
||||||
|
// Builder setting can be general or OS-dependent
|
||||||
|
|
||||||
|
"builder_settings" : {
|
||||||
|
|
||||||
|
// General settings:
|
||||||
|
// See README or third-party documentation
|
||||||
|
|
||||||
|
// (built-ins): true shows the log of each command in the output panel
|
||||||
|
"display_log" : false,
|
||||||
|
|
||||||
|
// Platform-specific settings:
|
||||||
|
"osx" : {
|
||||||
|
// See README or third-party documentation
|
||||||
|
},
|
||||||
|
|
||||||
|
"windows" : {
|
||||||
|
// See README or third-party documentation
|
||||||
|
},
|
||||||
|
|
||||||
|
"linux" : {
|
||||||
|
// See README or third-party documentation
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// Build panel and phantoms settings
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// OPTION: "highlight_build_panel"
|
||||||
|
// adds syntax highlighting to the build panel so that errors, warnings, etc.
|
||||||
|
// show up in different colors; if set to false, the panel will be left as-is.
|
||||||
|
"highlight_build_panel": true,
|
||||||
|
|
||||||
|
|
||||||
|
// OPTION: "hide_build_panel"
|
||||||
|
// level to hide the build panel after the build is finished
|
||||||
|
// Possible values are:
|
||||||
|
// "always" (hide the panel even if the build failed),
|
||||||
|
// "no_errors" (only hide the panel if the build was successful even with warnings),
|
||||||
|
// "no_warnings" (only hide the panel if no warnings occur)
|
||||||
|
// "no_badboxes" (only hide the panel if no badbox messages occur when badboxes are enabled) and
|
||||||
|
// "never" (default, never hide the build panel)
|
||||||
|
"hide_build_panel": "no_badboxes",
|
||||||
|
|
||||||
|
// OPTION: "display_bad_boxes"
|
||||||
|
// controls whether or not to display any bad boxes in the build output
|
||||||
|
// if this is not set to true, the setting "no_badboxes" for
|
||||||
|
// "hide_build_panel" is equivalent to "no_warnings"
|
||||||
|
"display_bad_boxes": false,
|
||||||
|
|
||||||
|
// OPTION: "show_error_phantoms"
|
||||||
|
// (ST3, Build 3118+ only)
|
||||||
|
// level to show error phantoms in the file
|
||||||
|
// Possible values are:
|
||||||
|
// "none" (don't show any phantoms at all)
|
||||||
|
// "errors" (only show errors, which breaks the compilation)
|
||||||
|
// "warnings" (default, show errors and warnings)
|
||||||
|
// "badboxes" (show errors, warnings, and badboxes)
|
||||||
|
"show_error_phantoms": "warnings",
|
||||||
|
|
||||||
|
// number of seconds to display the "build succeeded" or "build failed"
|
||||||
|
// message
|
||||||
|
"build_finished_message_length": 2.0,
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// Viewer settings
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// OPTION: "viewer"
|
||||||
|
// Specifies which viewer to use
|
||||||
|
// Possible values:
|
||||||
|
//
|
||||||
|
// "default" or "" the default viewer for your platform, which
|
||||||
|
// is sumatra on Windows, skim on OS X and
|
||||||
|
// evince on linux
|
||||||
|
//
|
||||||
|
// "command" invokes a viewer based on commands configured
|
||||||
|
// in viewer settings below; see the README
|
||||||
|
// for details
|
||||||
|
//
|
||||||
|
// "evince" uses Evince; this is the default on linux
|
||||||
|
//
|
||||||
|
// "okular" uses Okular to open the pdf
|
||||||
|
//
|
||||||
|
// "preview" uses Preview.app to open the pdf
|
||||||
|
//
|
||||||
|
// "skim" uses Skim to open the pdf; this is the
|
||||||
|
// default on OSX
|
||||||
|
//
|
||||||
|
// "sumatra" uses SumatraPDF; this is the default on
|
||||||
|
// Windows
|
||||||
|
//
|
||||||
|
// "zathura" uses Zathura to open the pdf
|
||||||
|
"viewer": "",
|
||||||
|
|
||||||
|
// OPTION: "viewer_settings"
|
||||||
|
// Specify viewer-dependent settings and preferences
|
||||||
|
// Possible values: see README or documentation provided with
|
||||||
|
// third-party viewer.
|
||||||
|
// Viewer settings can be general or OS-dependent
|
||||||
|
"viewer_settings": {
|
||||||
|
// Platform-specific settings:
|
||||||
|
"osx" : {
|
||||||
|
// See README or third-party documentation
|
||||||
|
},
|
||||||
|
|
||||||
|
"windows" : {
|
||||||
|
// See README or third-party documentation
|
||||||
|
},
|
||||||
|
|
||||||
|
"linux" : {
|
||||||
|
// See README or third-party documentation
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// OPTION: "open_pdf_on_build"
|
||||||
|
// specifies whether LaTeXTools should open the PDF file on a
|
||||||
|
// successful build. If set to false, the PDF file won't be opened
|
||||||
|
// unless explicitly launched using C-l,v or C-l,j
|
||||||
|
"open_pdf_on_build": true,
|
||||||
|
|
||||||
|
// OPTION: "disable_focus_hack"
|
||||||
|
// if set to true, this will stop LaTeXTools from attempting to steal focus
|
||||||
|
// from the viewer. NOTE: This does not mean that the *viewer* won't steal
|
||||||
|
// the focus, only that LaTeXTools won't try to steal the focus back.
|
||||||
|
"disable_focus_hack": false,
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// Opening files included into the tex source code
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
|
// image types you use in latex
|
||||||
|
// these types will be used for autocompletion and
|
||||||
|
// opening of included images, when no extension is written
|
||||||
|
"image_types": ["png", "pdf", "jpg", "jpeg", "eps"],
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// Bibliographic references
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// OPTION: "bibliography"
|
||||||
|
// Either a single bibliography plugin to use or a list of plugins
|
||||||
|
// which will be executed in order, stopping after the first result
|
||||||
|
// found
|
||||||
|
//
|
||||||
|
// Possible values:
|
||||||
|
//
|
||||||
|
// "traditional" the default, regex-based bibliography
|
||||||
|
// parsing
|
||||||
|
//
|
||||||
|
// "new" a newer parser which supports more complex
|
||||||
|
// formatting and additional fields, but may
|
||||||
|
// be slower
|
||||||
|
"bibliography": "traditional",
|
||||||
|
|
||||||
|
// OPTION: "cite_panel_format"
|
||||||
|
// This preference sets the format of the quick panel to select citations using wildcards.
|
||||||
|
// The setting is a list with one or two string using wildcards for author, title, keyword etc.
|
||||||
|
|
||||||
|
// The traditional display: `["{title} ({keyword})","{author}"]`
|
||||||
|
// Format:
|
||||||
|
// Can quantum-mechanical description of physical reality be considered complete? This is an non-existing subtitle to illustrate (einstein1935quantum)
|
||||||
|
// Albert Einstein and B Podolsky and N Rosen
|
||||||
|
|
||||||
|
// Richer alternative: ["{author_short} {year} - {title_short} ({keyword})","{title}"]
|
||||||
|
// Format:
|
||||||
|
// Einstein et al. 1935 - Can quantum-mechanical description of physical reality be considered complete (einstein1935quantum)
|
||||||
|
// Can quantum-mechanical description of physical reality be considered complete? This is an non-existing subtitle to illustrate
|
||||||
|
|
||||||
|
// Another alternative: ["({keyword}) {author_short} - {year}","{title} - {journal}"]
|
||||||
|
// Format:
|
||||||
|
// (einstein1935quantum) Einstein et al. - 1935
|
||||||
|
// Can quantum-mechanical description of physical reality be considered complete? - Physical Review
|
||||||
|
|
||||||
|
// No-title alternative: ["{author_short} {year} ({keyword})"]
|
||||||
|
// Format:
|
||||||
|
// Einstein et al. 1935 (einstein1935quantum)
|
||||||
|
|
||||||
|
// Valid wildcards: keyword, title, author, year, author_short, title_short, journal
|
||||||
|
|
||||||
|
// Uncomment or modify at will
|
||||||
|
"cite_panel_format": ["{author_short} {year} - {title_short} ({keyword})","{title}"],
|
||||||
|
//"cite_panel_format": ["({keyword}) {author_short} - {year}","{title} - {journal}"],
|
||||||
|
//"cite_panel_format": ["{author_short} {year} ({keyword})"],
|
||||||
|
|
||||||
|
// Similarly, the formatting for the autocomplete panel:
|
||||||
|
"cite_autocomplete_format": "{keyword}: {title}",
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
// Cache options
|
||||||
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
|
// whether the local cache should be hidden in the sublime cache path (true)
|
||||||
|
// or in the same directory as the root file (false)
|
||||||
|
"hide_local_cache": true,
|
||||||
|
|
||||||
|
// settings for caches to update on load
|
||||||
|
// leaving these as `true` will ensure LaTeXTools pre-caches the appropriate
|
||||||
|
// data when a TeX document is loaded; setting these to `false` will
|
||||||
|
// cause the cache to be built when first needed
|
||||||
|
// "cache_on_load": {
|
||||||
|
// // analysis: the internal view that LaTeXTools has of your document
|
||||||
|
// "analysis": true,
|
||||||
|
// // bibliography: ensures the bibliography is parsed and cached
|
||||||
|
// "bibliography": true
|
||||||
|
// },
|
||||||
|
|
||||||
|
// settings to update caches when a document is saved
|
||||||
|
// leaving these as `true` will ensure LaTeXTools reloads the data on save,
|
||||||
|
// if necessary; setting these to `false` will cause the cache to be
|
||||||
|
// re-built according to its rules
|
||||||
|
// "cache_on_save": {
|
||||||
|
// // analysis: the internal view that LaTeXTools has of your document
|
||||||
|
// "analysis": true,
|
||||||
|
// // bibliography: ensures the bibliography is parsed and cached
|
||||||
|
// "bibliography": false
|
||||||
|
// },
|
||||||
|
|
||||||
|
/* The life-span of the local cache.
|
||||||
|
After this life-span the local cache will automatically be invalidated and refreshed.
|
||||||
|
You can invalidate the cache manually by removing all temporary files `C-l,backspace`.
|
||||||
|
If the value is smaller then the functionalities are more up-to-date,
|
||||||
|
but more recalculations might decrease the performance.
|
||||||
|
|
||||||
|
The format is "X d X h X m X s", where X is a natural number
|
||||||
|
"s" stands for seconds, "m" for minutes, "h" for hours, and "d" for days.
|
||||||
|
Missing fields will be treated as 0 and white-spaces are optional.
|
||||||
|
Hence you can write "1 h 30 m" to refresh the cached data every one and a half hours.
|
||||||
|
If the string is invalid the default value (30 minutes) will be used.
|
||||||
|
If you use `infinite` the cache will not invalidated automatically.
|
||||||
|
*/
|
||||||
|
"local_cache_life_span": "30 m"
|
||||||
|
}
|
10
sublime/Markdown.sublime-settings
Normal file
10
sublime/Markdown.sublime-settings
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// These settings override both User and Default settings for the Markdown syntax
|
||||||
|
{
|
||||||
|
"color_scheme": "Packages/Predawn/predawn-markdown.tmTheme",
|
||||||
|
"draw_centered": true, // Centers the column in the window
|
||||||
|
"draw_indent_guides": true,
|
||||||
|
"trim_trailing_white_space_on_save": false,
|
||||||
|
"word_wrap": true,
|
||||||
|
"wrap_width": 80, // Sets the # of characters per line
|
||||||
|
"show_panel_on_build": false,
|
||||||
|
}
|
3
sublime/MarkdownPreview.sublime-settings
Normal file
3
sublime/MarkdownPreview.sublime-settings
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"parser": "github",
|
||||||
|
}
|
3830
sublime/Package Control.merged-ca-bundle
Normal file
3830
sublime/Package Control.merged-ca-bundle
Normal file
File diff suppressed because it is too large
Load diff
36
sublime/Package Control.sublime-settings
Normal file
36
sublime/Package Control.sublime-settings
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{
|
||||||
|
"bootstrapped": true,
|
||||||
|
"in_process_packages":
|
||||||
|
[
|
||||||
|
],
|
||||||
|
"installed_packages":
|
||||||
|
[
|
||||||
|
"All Autocomplete",
|
||||||
|
"AutoPEP8",
|
||||||
|
"Compare Side-By-Side",
|
||||||
|
"Diffy",
|
||||||
|
"Dockerfile Syntax Highlighting",
|
||||||
|
"ExportHtml",
|
||||||
|
"Git",
|
||||||
|
"GitGutter",
|
||||||
|
"GoSublime",
|
||||||
|
"Javascript Beautify",
|
||||||
|
"Language - French - Français",
|
||||||
|
"LaTeXTools",
|
||||||
|
"Markdown Extended",
|
||||||
|
"MarkdownPreview",
|
||||||
|
"MultiEditUtils",
|
||||||
|
"Package Control",
|
||||||
|
"Pandoc",
|
||||||
|
"Predawn",
|
||||||
|
"Pretty JSON",
|
||||||
|
"Processing",
|
||||||
|
"ProjectManager",
|
||||||
|
"SublimeCodeIntel",
|
||||||
|
"SublimeLinter",
|
||||||
|
"SublimeLinter-pyflakes",
|
||||||
|
"SublimeREPL",
|
||||||
|
"SwitchDictionary",
|
||||||
|
"WordCount"
|
||||||
|
]
|
||||||
|
}
|
0
sublime/Package Control.user-ca-bundle
Normal file
0
sublime/Package Control.user-ca-bundle
Normal file
4
sublime/PackageSync.sublime-settings
Normal file
4
sublime/PackageSync.sublime-settings
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"folder_backup_path": "/home/adrien/dotfiles/sublime",
|
||||||
|
"prompt_for_location": true
|
||||||
|
}
|
59
sublime/Preferences.sublime-settings
Normal file
59
sublime/Preferences.sublime-settings
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
{
|
||||||
|
"added_words":
|
||||||
|
[
|
||||||
|
"microservices",
|
||||||
|
"Kubernetes",
|
||||||
|
"Mesos",
|
||||||
|
"Mongo",
|
||||||
|
"microservice",
|
||||||
|
"virtualization",
|
||||||
|
"Handoff",
|
||||||
|
"handoff",
|
||||||
|
"heatmap",
|
||||||
|
"heatmaps",
|
||||||
|
"equiprobable",
|
||||||
|
"proactively",
|
||||||
|
"metadata",
|
||||||
|
"timestamp",
|
||||||
|
"bitfield",
|
||||||
|
"handoffs",
|
||||||
|
"smartphones",
|
||||||
|
"smartphone",
|
||||||
|
"online",
|
||||||
|
"reconnections",
|
||||||
|
"timeline",
|
||||||
|
"offline",
|
||||||
|
"bluetooth",
|
||||||
|
"apps",
|
||||||
|
"middleware",
|
||||||
|
"fallback",
|
||||||
|
"bitfields",
|
||||||
|
"uploaders",
|
||||||
|
"ciphertext",
|
||||||
|
"userbase",
|
||||||
|
"anonymizing",
|
||||||
|
"anonymized",
|
||||||
|
"rennaise",
|
||||||
|
"timestamping",
|
||||||
|
"stateful",
|
||||||
|
"anonymization",
|
||||||
|
"mixnets",
|
||||||
|
"Grafana",
|
||||||
|
"Prometheus"
|
||||||
|
],
|
||||||
|
"close_windows_when_empty": false,
|
||||||
|
"color_scheme": "Packages/User/predawn (Flake8Lint).tmTheme",
|
||||||
|
"dictionary": "Packages/Language - French - Français/fr_FR.dic",
|
||||||
|
"find_selected_text": true,
|
||||||
|
"font_size": 10,
|
||||||
|
"ignored_packages":
|
||||||
|
[
|
||||||
|
"Vintage"
|
||||||
|
],
|
||||||
|
"predawn_findreplace_small": true,
|
||||||
|
"predawn_quick_panel_small": true,
|
||||||
|
"predawn_sidebar_arrows": true,
|
||||||
|
"predawn_sidebar_small": true,
|
||||||
|
"predawn_tabs_small": true,
|
||||||
|
"theme": "predawn-DEV.sublime-theme"
|
||||||
|
}
|
7
sublime/Python.sublime-settings
Normal file
7
sublime/Python.sublime-settings
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
// These settings override both User and Default settings for the Python syntax
|
||||||
|
{
|
||||||
|
// Set to true to insert spaces when tab is pressed
|
||||||
|
"translate_tabs_to_spaces": true,
|
||||||
|
// If enabled, will highlight any line with a caret
|
||||||
|
"highlight_line": false,
|
||||||
|
}
|
0
sublime/SBSCompareScheme.sublime-color-scheme
Normal file
0
sublime/SBSCompareScheme.sublime-color-scheme
Normal file
0
sublime/SBSCompareTheme.tmTheme
Normal file
0
sublime/SBSCompareTheme.tmTheme
Normal file
89
sublime/SublimeLinter (old).sublime-settings
Normal file
89
sublime/SublimeLinter (old).sublime-settings
Normal file
|
@ -0,0 +1,89 @@
|
||||||
|
{
|
||||||
|
"user":
|
||||||
|
{
|
||||||
|
"debug": false,
|
||||||
|
"delay": 0.25,
|
||||||
|
"error_color": "D02000",
|
||||||
|
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
|
||||||
|
"gutter_theme_excludes":
|
||||||
|
[
|
||||||
|
],
|
||||||
|
"lint_mode": "background",
|
||||||
|
"linters":
|
||||||
|
{
|
||||||
|
"pep8":
|
||||||
|
{
|
||||||
|
"@disable": false,
|
||||||
|
"args":
|
||||||
|
[
|
||||||
|
],
|
||||||
|
"excludes":
|
||||||
|
[
|
||||||
|
],
|
||||||
|
"ignore": "",
|
||||||
|
"max-line-length": null,
|
||||||
|
"select": ""
|
||||||
|
},
|
||||||
|
"pyflakes":
|
||||||
|
{
|
||||||
|
"@disable": false,
|
||||||
|
"args":
|
||||||
|
[
|
||||||
|
],
|
||||||
|
"excludes":
|
||||||
|
[
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mark_style": "outline",
|
||||||
|
"no_column_highlights_line": false,
|
||||||
|
"passive_warnings": false,
|
||||||
|
"paths":
|
||||||
|
{
|
||||||
|
"linux":
|
||||||
|
[
|
||||||
|
],
|
||||||
|
"osx":
|
||||||
|
[
|
||||||
|
],
|
||||||
|
"windows":
|
||||||
|
[
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"python_paths":
|
||||||
|
{
|
||||||
|
"linux":
|
||||||
|
[
|
||||||
|
],
|
||||||
|
"osx":
|
||||||
|
[
|
||||||
|
],
|
||||||
|
"windows":
|
||||||
|
[
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"rc_search_limit": 3,
|
||||||
|
"shell_timeout": 10,
|
||||||
|
"show_errors_on_save": false,
|
||||||
|
"show_marks_in_minimap": true,
|
||||||
|
"syntax_map":
|
||||||
|
{
|
||||||
|
"html (django)": "html",
|
||||||
|
"html (rails)": "html",
|
||||||
|
"html 5": "html",
|
||||||
|
"javascript (babel)": "javascript",
|
||||||
|
"magicpython": "python",
|
||||||
|
"php": "html",
|
||||||
|
"python django": "python",
|
||||||
|
"pythonimproved": "python"
|
||||||
|
},
|
||||||
|
"tooltip_fontsize": "1rem",
|
||||||
|
"tooltip_theme": "Packages/SublimeLinter/tooltip-themes/Default/Default.tooltip-theme",
|
||||||
|
"tooltip_theme_excludes":
|
||||||
|
[
|
||||||
|
],
|
||||||
|
"tooltips": true,
|
||||||
|
"warning_color": "DDB700",
|
||||||
|
"wrap_find": true
|
||||||
|
}
|
||||||
|
}
|
1011
sublime/predawn (Flake8Lint).tmTheme
Normal file
1011
sublime/predawn (Flake8Lint).tmTheme
Normal file
File diff suppressed because it is too large
Load diff
6
sublime/python3.sublime-build
Normal file
6
sublime/python3.sublime-build
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
{
|
||||||
|
"cmd": ["python3", "-i", "-u", "$file"],
|
||||||
|
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
|
||||||
|
"selector": "source.python"
|
||||||
|
}
|
111
tmux.conf
Normal file
111
tmux.conf
Normal file
|
@ -0,0 +1,111 @@
|
||||||
|
# KEY BINDINGS
|
||||||
|
# Alex Auvolat + Adrien Luxey additions
|
||||||
|
|
||||||
|
###########################
|
||||||
|
### Packages management ###
|
||||||
|
###########################
|
||||||
|
|
||||||
|
# Tmux Package Manager
|
||||||
|
# Prefix + I => Install plugins (after adding them to tmux.conf)
|
||||||
|
# Prefix + + Alt-u => uninstall
|
||||||
|
# Prefix + U => Update packages
|
||||||
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
|
||||||
|
# Tmux OneDark: http://github.com/odedlaz/tmux-onedark-themetheme
|
||||||
|
#set -g @plugin 'odedlaz/tmux-onedark-theme'
|
||||||
|
# Tmux-Themepack (feat Powerline)
|
||||||
|
set -g @plugin 'jimeh/tmux-themepack'
|
||||||
|
set -g @themepack 'powerline/default/blue'
|
||||||
|
|
||||||
|
# Save and restore Tmux sessions
|
||||||
|
# Prefix + Ctrl-s => Save current session
|
||||||
|
# Prefix + Ctrl-r => Restore
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||||
|
|
||||||
|
# Continuous saving tmux environment (depends on Ressurect)
|
||||||
|
# Also auto-starts tmux on boot and auto-restores last session
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||||
|
#set -g status-right 'Continuum status: #{continuum_status}'
|
||||||
|
set -g @continuum-restore 'on' # Auto restore previous session
|
||||||
|
set -g @continuum-save-interval '15' # save time in minutes
|
||||||
|
|
||||||
|
# Copy to system clipboard
|
||||||
|
# Normal mode:
|
||||||
|
# Prefix + y => (yank) Copies text from command line to clipboard
|
||||||
|
# Copy mode:
|
||||||
|
# y => copy selection to clipboard
|
||||||
|
# Y => Put (copy a selection then paste it to cmd)
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
|
|
||||||
|
# There seems to be cool things to make Vim and Tmux play well together too
|
||||||
|
|
||||||
|
#####################
|
||||||
|
### Alex's stuff ###
|
||||||
|
#####################
|
||||||
|
|
||||||
|
setw -g mode-keys vi
|
||||||
|
|
||||||
|
# remap prefix to Control + a
|
||||||
|
set -g prefix C-q
|
||||||
|
unbind C-b
|
||||||
|
bind C-q send-prefix
|
||||||
|
|
||||||
|
unbind q
|
||||||
|
bind-key q copy-mode
|
||||||
|
|
||||||
|
unbind p
|
||||||
|
bind p paste-buffer
|
||||||
|
|
||||||
|
# force a reload of the config file
|
||||||
|
unbind r
|
||||||
|
bind r source-file ~/.tmux.conf
|
||||||
|
|
||||||
|
# quick pane cycling
|
||||||
|
unbind ^A
|
||||||
|
bind ^A select-pane -t :.+
|
||||||
|
|
||||||
|
# switch panes using vim-like bindings C-a hjkl
|
||||||
|
unbind h
|
||||||
|
unbind j
|
||||||
|
unbind k
|
||||||
|
unbind l
|
||||||
|
bind h select-pane -L
|
||||||
|
bind l select-pane -R
|
||||||
|
bind k select-pane -U
|
||||||
|
bind j select-pane -D
|
||||||
|
# switch windows using bindings C-q C-hl
|
||||||
|
unbind ^H
|
||||||
|
unbind ^L
|
||||||
|
bind ^H previous-window
|
||||||
|
bind ^L next-window
|
||||||
|
|
||||||
|
# OTHER OPTIONS
|
||||||
|
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
set -g escape-time 0
|
||||||
|
|
||||||
|
# don't rename windows automatically
|
||||||
|
set-option -g allow-rename off
|
||||||
|
|
||||||
|
|
||||||
|
######################
|
||||||
|
### DESIGN CHANGES ###
|
||||||
|
######################
|
||||||
|
|
||||||
|
# set -g status-bg colour6
|
||||||
|
|
||||||
|
|
||||||
|
##########################
|
||||||
|
### Adrien's additions ###
|
||||||
|
##########################
|
||||||
|
|
||||||
|
set -g default-terminal "xterm-256color"
|
||||||
|
set -ga terminal-overrides ",*256col*:Tc"
|
||||||
|
|
||||||
|
# Remember my path when splitting windows
|
||||||
|
bind % split-window -h -c '#{pane_current_path}' # Split panes horizontally
|
||||||
|
bind '"' split-window -v -c '#{pane_current_path}' # Split panes vertically
|
||||||
|
|
||||||
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
|
run -b '~/.tmux/plugins/tpm/tpm'
|
1
tmux/.gitignore
vendored
Normal file
1
tmux/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
resurrect
|
1
tmux/plugins/tmux-continuum
Submodule
1
tmux/plugins/tmux-continuum
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 90f4a00c41de094864dd4e29231253bcd80d4409
|
1
tmux/plugins/tmux-onedark-theme
Submodule
1
tmux/plugins/tmux-onedark-theme
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit e35740e7a70a84af4fc0bdc40890a8b0de49b7ab
|
1
tmux/plugins/tmux-resurrect
Submodule
1
tmux/plugins/tmux-resurrect
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit c3ffe89e525a4692d9fa53235bbce1280d1d8311
|
1
tmux/plugins/tmux-themepack
Submodule
1
tmux/plugins/tmux-themepack
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 126150da5e89b262fec94dd7b3d8bcd0966646a9
|
1
tmux/plugins/tmux-yank
Submodule
1
tmux/plugins/tmux-yank
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 30bfd780061f1752d1133016f217a13add4d4e86
|
1
tmux/plugins/tpm
Submodule
1
tmux/plugins/tpm
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 2ab1d9101b33f3162505aaa7f99ac32631ac4371
|
1
vim/.gitignore
vendored
Normal file
1
vim/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.netrwhist
|
969
vim/colors/solarized.vim
Normal file
969
vim/colors/solarized.vim
Normal file
|
@ -0,0 +1,969 @@
|
||||||
|
" Name: Solarized vim colorscheme
|
||||||
|
" Author: Ethan Schoonover <es@ethanschoonover.com>
|
||||||
|
" URL: http://ethanschoonover.com/solarized
|
||||||
|
" (see this url for latest release & screenshots)
|
||||||
|
" License: OSI approved MIT license (see end of this file)
|
||||||
|
" Created: In the middle of the night
|
||||||
|
" Modified: 2011 Apr 14
|
||||||
|
"
|
||||||
|
" Usage "{{{
|
||||||
|
"
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" ABOUT:
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" Solarized is a carefully designed selective contrast colorscheme with dual
|
||||||
|
" light and dark modes that runs in both GUI, 256 and 16 color modes.
|
||||||
|
"
|
||||||
|
" See the homepage above for screenshots and details.
|
||||||
|
"
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" INSTALLATION:
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
"
|
||||||
|
" Two options for installation: manual or pathogen
|
||||||
|
"
|
||||||
|
" MANUAL INSTALLATION OPTION:
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
"
|
||||||
|
" 1. Put the files in the right place!
|
||||||
|
" 2. Move `solarized.vim` to your `.vim/colors` directory.
|
||||||
|
"
|
||||||
|
" RECOMMENDED PATHOGEN INSTALLATION OPTION:
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
"
|
||||||
|
" 1. Download and install Tim Pope's Pathogen from:
|
||||||
|
" https://github.com/tpope/vim-pathogen
|
||||||
|
"
|
||||||
|
" 2. Next, move or clone the `vim-colors-solarized` directory so that it is
|
||||||
|
" a subdirectory of the `.vim/bundle` directory.
|
||||||
|
"
|
||||||
|
" a. **clone with git:**
|
||||||
|
"
|
||||||
|
" $ cd ~/.vim/bundle
|
||||||
|
" $ git clone git://github.com/altercation/vim-colors-solarized.git
|
||||||
|
"
|
||||||
|
" b. **or move manually into the pathogen bundle directory:**
|
||||||
|
" In the parent directory of vim-colors-solarized:
|
||||||
|
"
|
||||||
|
" $ mv vim-colors-solarized ~/.vim/bundle/
|
||||||
|
"
|
||||||
|
" MODIFY VIMRC:
|
||||||
|
"
|
||||||
|
" After either Option 1 or Option 2 above, put the following two lines in your
|
||||||
|
" .vimrc:
|
||||||
|
"
|
||||||
|
" syntax enable
|
||||||
|
" set background=dark
|
||||||
|
" colorscheme solarized
|
||||||
|
"
|
||||||
|
" or, for the light background mode of Solarized:
|
||||||
|
"
|
||||||
|
" syntax enable
|
||||||
|
" set background=light
|
||||||
|
" colorscheme solarized
|
||||||
|
"
|
||||||
|
" I like to have a different background in GUI and terminal modes, so I can use
|
||||||
|
" the following if-then. However, I find vim's background autodetection to be
|
||||||
|
" pretty good and, at least with MacVim, I can leave this background value
|
||||||
|
" assignment out entirely and get the same results.
|
||||||
|
"
|
||||||
|
" if has('gui_running')
|
||||||
|
" set background=light
|
||||||
|
" else
|
||||||
|
" set background=dark
|
||||||
|
" endif
|
||||||
|
"
|
||||||
|
" See the Solarized homepage at http://ethanschoonover.com/solarized for
|
||||||
|
" screenshots which will help you select either the light or dark background.
|
||||||
|
"
|
||||||
|
" Other options are detailed below.
|
||||||
|
"
|
||||||
|
" IMPORTANT NOTE FOR TERMINAL USERS:
|
||||||
|
"
|
||||||
|
" If you are going to use Solarized in Terminal mode (i.e. not in a GUI version
|
||||||
|
" like gvim or macvim), **please please please** consider setting your terminal
|
||||||
|
" emulator's colorscheme to used the Solarized palette. I've included palettes
|
||||||
|
" for some popular terminal emulator as well as Xdefaults in the official
|
||||||
|
" Solarized download available from [Solarized homepage]. If you use
|
||||||
|
" Solarized *without* these colors, Solarized will need to be told to degrade
|
||||||
|
" its colorscheme to a set compatible with the limited 256 terminal palette
|
||||||
|
" (whereas by using the terminal's 16 ansi color values, you can set the
|
||||||
|
" correct, specific values for the Solarized palette).
|
||||||
|
"
|
||||||
|
" If you do use the custom terminal colors, solarized.vim should work out of
|
||||||
|
" the box for you. If you are using a terminal emulator that supports 256
|
||||||
|
" colors and don't want to use the custom Solarized terminal colors, you will
|
||||||
|
" need to use the degraded 256 colorscheme. To do so, simply add the following
|
||||||
|
" line *before* the `colorschem solarized` line:
|
||||||
|
"
|
||||||
|
" let g:solarized_termcolors=256
|
||||||
|
"
|
||||||
|
" Again, I recommend just changing your terminal colors to Solarized values
|
||||||
|
" either manually or via one of the many terminal schemes available for import.
|
||||||
|
"
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" TOGGLE BACKGROUND FUNCTION:
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
"
|
||||||
|
" Solarized comes with a Toggle Background plugin that by default will map to
|
||||||
|
" <F5> if that mapping is available. If it is not available you will need to
|
||||||
|
" either map the function manually or change your current <F5> mapping to
|
||||||
|
" something else. If you wish to map the function manually, enter the following
|
||||||
|
" lines in your .vimrc:
|
||||||
|
"
|
||||||
|
" nmap <unique> <F5> <Plug>ToggleBackground
|
||||||
|
" imap <unique> <F5> <Plug>ToggleBackground
|
||||||
|
" vmap <unique> <F5> <Plug>ToggleBackground
|
||||||
|
"
|
||||||
|
" Note that it is important to *not* use the noremap map variants. The plugin
|
||||||
|
" uses noremap internally. You may run `:help togglebg` for more information.
|
||||||
|
"
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" OPTIONS
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
"
|
||||||
|
" Set these in your vimrc file prior to calling the colorscheme.
|
||||||
|
"
|
||||||
|
" option name default optional
|
||||||
|
" ------------------------------------------------
|
||||||
|
" g:solarized_termcolors= 16 | 256
|
||||||
|
" g:solarized_termtrans = 0 | 1
|
||||||
|
" g:solarized_degrade = 0 | 1
|
||||||
|
" g:solarized_bold = 1 | 0
|
||||||
|
" g:solarized_underline = 1 | 0
|
||||||
|
" g:solarized_italic = 1 | 0
|
||||||
|
" g:solarized_contrast = "normal"| "high" or "low"
|
||||||
|
" g:solarized_visibility= "normal"| "high" or "low"
|
||||||
|
" ------------------------------------------------
|
||||||
|
"
|
||||||
|
" OPTION DETAILS
|
||||||
|
"
|
||||||
|
" ------------------------------------------------
|
||||||
|
" g:solarized_termcolors= 256 | 16
|
||||||
|
" ------------------------------------------------
|
||||||
|
" The most important option if you are using vim in terminal (non gui) mode!
|
||||||
|
" This tells Solarized to use the 256 degraded color mode if running in a 256
|
||||||
|
" color capable terminal. Otherwise, if set to `16` it will use the terminal
|
||||||
|
" emulators colorscheme (best option as long as you've set the emulators colors
|
||||||
|
" to the Solarized palette).
|
||||||
|
"
|
||||||
|
" If you are going to use Solarized in Terminal mode (i.e. not in a GUI
|
||||||
|
" version like gvim or macvim), **please please please** consider setting your
|
||||||
|
" terminal emulator's colorscheme to used the Solarized palette. I've included
|
||||||
|
" palettes for some popular terminal emulator as well as Xdefaults in the
|
||||||
|
" official Solarized download available from:
|
||||||
|
" http://ethanschoonover.com/solarized . If you use Solarized without these
|
||||||
|
" colors, Solarized will by default use an approximate set of 256 colors. It
|
||||||
|
" isn't bad looking and has been extensively tweaked, but it's still not quite
|
||||||
|
" the real thing.
|
||||||
|
"
|
||||||
|
" ------------------------------------------------
|
||||||
|
" g:solarized_termtrans = 0 | 1
|
||||||
|
" ------------------------------------------------
|
||||||
|
" If you use a terminal emulator with a transparent background and Solarized
|
||||||
|
" isn't displaying the background color transparently, set this to 1 and
|
||||||
|
" Solarized will use the default (transparent) background of the terminal
|
||||||
|
" emulator. *urxvt* required this in my testing; iTerm2 did not.
|
||||||
|
"
|
||||||
|
" Note that on Mac OS X Terminal.app, solarized_termtrans is set to 1 by
|
||||||
|
" default as this is almost always the best option. The only exception to this
|
||||||
|
" is if the working terminfo file supports 256 colors (xterm-256color).
|
||||||
|
"
|
||||||
|
" ------------------------------------------------
|
||||||
|
" g:solarized_degrade = 0 | 1
|
||||||
|
" ------------------------------------------------
|
||||||
|
" For test purposes only; forces Solarized to use the 256 degraded color mode
|
||||||
|
" to test the approximate color values for accuracy.
|
||||||
|
"
|
||||||
|
" ------------------------------------------------
|
||||||
|
" g:solarized_bold = 1 | 0
|
||||||
|
" ------------------------------------------------
|
||||||
|
" ------------------------------------------------
|
||||||
|
" g:solarized_underline = 1 | 0
|
||||||
|
" ------------------------------------------------
|
||||||
|
" ------------------------------------------------
|
||||||
|
" g:solarized_italic = 1 | 0
|
||||||
|
" ------------------------------------------------
|
||||||
|
" If you wish to stop Solarized from displaying bold, underlined or
|
||||||
|
" italicized typefaces, simply assign a zero value to the appropriate
|
||||||
|
" variable, for example: `let g:solarized_italic=0`
|
||||||
|
"
|
||||||
|
" ------------------------------------------------
|
||||||
|
" g:solarized_contrast = "normal"| "high" or "low"
|
||||||
|
" ------------------------------------------------
|
||||||
|
" Stick with normal! It's been carefully tested. Setting this option to high
|
||||||
|
" or low does use the same Solarized palette but simply shifts some values up
|
||||||
|
" or down in order to expand or compress the tonal range displayed.
|
||||||
|
"
|
||||||
|
" ------------------------------------------------
|
||||||
|
" g:solarized_visibility = "normal"| "high" or "low"
|
||||||
|
" ------------------------------------------------
|
||||||
|
" Special characters such as trailing whitespace, tabs, newlines, when
|
||||||
|
" displayed using ":set list" can be set to one of three levels depending on
|
||||||
|
" your needs.
|
||||||
|
"
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" COLOR VALUES
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" Download palettes and files from: http://ethanschoonover.com/solarized
|
||||||
|
"
|
||||||
|
" L\*a\*b values are canonical (White D65, Reference D50), other values are
|
||||||
|
" matched in sRGB space.
|
||||||
|
"
|
||||||
|
" SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B sRGB HSB
|
||||||
|
" --------- ------- ---- ------- ----------- ---------- ----------- -----------
|
||||||
|
" base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21
|
||||||
|
" base02 #073642 0/4 black 235 #262626 20 -12 -12 7 54 66 192 90 26
|
||||||
|
" base01 #586e75 10/7 brgreen 240 #4e4e4e 45 -07 -07 88 110 117 194 25 46
|
||||||
|
" base00 #657b83 11/7 bryellow 241 #585858 50 -07 -07 101 123 131 195 23 51
|
||||||
|
" base0 #839496 12/6 brblue 244 #808080 60 -06 -03 131 148 150 186 13 59
|
||||||
|
" base1 #93a1a1 14/4 brcyan 245 #8a8a8a 65 -05 -02 147 161 161 180 9 63
|
||||||
|
" base2 #eee8d5 7/7 white 254 #d7d7af 92 -00 10 238 232 213 44 11 93
|
||||||
|
" base3 #fdf6e3 15/7 brwhite 230 #ffffd7 97 00 10 253 246 227 44 10 99
|
||||||
|
" yellow #b58900 3/3 yellow 136 #af8700 60 10 65 181 137 0 45 100 71
|
||||||
|
" orange #cb4b16 9/3 brred 166 #d75f00 50 50 55 203 75 22 18 89 80
|
||||||
|
" red #dc322f 1/1 red 160 #d70000 50 65 45 220 50 47 1 79 86
|
||||||
|
" magenta #d33682 5/5 magenta 125 #af005f 50 65 -05 211 54 130 331 74 83
|
||||||
|
" violet #6c71c4 13/5 brmagenta 61 #5f5faf 50 15 -45 108 113 196 237 45 77
|
||||||
|
" blue #268bd2 4/4 blue 33 #0087ff 55 -10 -45 38 139 210 205 82 82
|
||||||
|
" cyan #2aa198 6/6 cyan 37 #00afaf 60 -35 -05 42 161 152 175 74 63
|
||||||
|
" green #859900 2/2 green 64 #5f8700 60 -20 65 133 153 0 68 100 60
|
||||||
|
"
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" COLORSCHEME HACKING
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
"
|
||||||
|
" Useful commands for testing colorschemes:
|
||||||
|
" :source $VIMRUNTIME/syntax/hitest.vim
|
||||||
|
" :help highlight-groups
|
||||||
|
" :help cterm-colors
|
||||||
|
" :help group-name
|
||||||
|
"
|
||||||
|
" Useful links for developing colorschemes:
|
||||||
|
" http://www.vim.org/scripts/script.php?script_id=2937
|
||||||
|
" http://vimcasts.org/episodes/creating-colorschemes-for-vim/
|
||||||
|
" http://www.frexx.de/xterm-256-notes/"
|
||||||
|
"
|
||||||
|
"
|
||||||
|
" }}}
|
||||||
|
" Default option values"{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
if !exists("g:solarized_termtrans")
|
||||||
|
if ($TERM_PROGRAM ==? "apple_terminal" && &t_Co < 256)
|
||||||
|
let g:solarized_termtrans = 1
|
||||||
|
else
|
||||||
|
let g:solarized_termtrans = 0
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
if !exists("g:solarized_degrade")
|
||||||
|
let g:solarized_degrade = 0
|
||||||
|
endif
|
||||||
|
if !exists("g:solarized_bold")
|
||||||
|
let g:solarized_bold = 1
|
||||||
|
endif
|
||||||
|
if !exists("g:solarized_underline")
|
||||||
|
let g:solarized_underline = 1
|
||||||
|
endif
|
||||||
|
if !exists("g:solarized_italic")
|
||||||
|
let g:solarized_italic = 1
|
||||||
|
endif
|
||||||
|
if !exists("g:solarized_termcolors")
|
||||||
|
let g:solarized_termcolors = 16
|
||||||
|
endif
|
||||||
|
if !exists("g:solarized_contrast")
|
||||||
|
let g:solarized_contrast = "normal"
|
||||||
|
endif
|
||||||
|
if !exists("g:solarized_visibility")
|
||||||
|
let g:solarized_visibility = "normal"
|
||||||
|
endif
|
||||||
|
"}}}
|
||||||
|
" Colorscheme initialization "{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
let colors_name = "solarized"
|
||||||
|
|
||||||
|
"}}}
|
||||||
|
" GUI & CSApprox hexadecimal palettes"{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
"
|
||||||
|
" Set both gui and terminal color values in separate conditional statements
|
||||||
|
" Due to possibility that CSApprox is running (though I suppose we could just
|
||||||
|
" leave the hex values out entirely in that case and include only cterm colors)
|
||||||
|
" We also check to see if user has set solarized (force use of the
|
||||||
|
" neutral gray monotone palette component)
|
||||||
|
if (has("gui_running") && g:solarized_degrade == 0)
|
||||||
|
let s:vmode = "gui"
|
||||||
|
let s:base03 = "#002b36"
|
||||||
|
let s:base02 = "#073642"
|
||||||
|
let s:base01 = "#586e75"
|
||||||
|
let s:base00 = "#657b83"
|
||||||
|
let s:base0 = "#839496"
|
||||||
|
let s:base1 = "#93a1a1"
|
||||||
|
let s:base2 = "#eee8d5"
|
||||||
|
let s:base3 = "#fdf6e3"
|
||||||
|
let s:yellow = "#b58900"
|
||||||
|
let s:orange = "#cb4b16"
|
||||||
|
let s:red = "#dc322f"
|
||||||
|
let s:magenta = "#d33682"
|
||||||
|
let s:violet = "#6c71c4"
|
||||||
|
let s:blue = "#268bd2"
|
||||||
|
let s:cyan = "#2aa198"
|
||||||
|
let s:green = "#859900"
|
||||||
|
elseif (has("gui_running") && g:solarized_degrade == 1)
|
||||||
|
" These colors are identical to the 256 color mode. They may be viewed
|
||||||
|
" while in gui mode via "let g:solarized_degrade=1", though this is not
|
||||||
|
" recommened and is for testing only.
|
||||||
|
let s:vmode = "gui"
|
||||||
|
let s:base03 = "#1c1c1c"
|
||||||
|
let s:base02 = "#262626"
|
||||||
|
let s:base01 = "#4e4e4e"
|
||||||
|
let s:base00 = "#585858"
|
||||||
|
let s:base0 = "#808080"
|
||||||
|
let s:base1 = "#8a8a8a"
|
||||||
|
let s:base2 = "#d7d7af"
|
||||||
|
let s:base3 = "#ffffd7"
|
||||||
|
let s:yellow = "#af8700"
|
||||||
|
let s:orange = "#d75f00"
|
||||||
|
let s:red = "#af0000"
|
||||||
|
let s:magenta = "#af005f"
|
||||||
|
let s:violet = "#5f5faf"
|
||||||
|
let s:blue = "#0087ff"
|
||||||
|
let s:cyan = "#00afaf"
|
||||||
|
let s:green = "#5f8700"
|
||||||
|
elseif g:solarized_termcolors != 256 && &t_Co >= 16
|
||||||
|
let s:vmode = "cterm"
|
||||||
|
let s:base03 = "8"
|
||||||
|
let s:base02 = "0"
|
||||||
|
let s:base01 = "10"
|
||||||
|
let s:base00 = "11"
|
||||||
|
let s:base0 = "12"
|
||||||
|
let s:base1 = "14"
|
||||||
|
let s:base2 = "7"
|
||||||
|
let s:base3 = "15"
|
||||||
|
let s:yellow = "3"
|
||||||
|
let s:orange = "9"
|
||||||
|
let s:red = "1"
|
||||||
|
let s:magenta = "5"
|
||||||
|
let s:violet = "13"
|
||||||
|
let s:blue = "4"
|
||||||
|
let s:cyan = "6"
|
||||||
|
let s:green = "2"
|
||||||
|
elseif g:solarized_termcolors == 256
|
||||||
|
let s:vmode = "cterm"
|
||||||
|
let s:base03 = "234"
|
||||||
|
let s:base02 = "235"
|
||||||
|
let s:base01 = "239"
|
||||||
|
let s:base00 = "240"
|
||||||
|
let s:base0 = "244"
|
||||||
|
let s:base1 = "245"
|
||||||
|
let s:base2 = "187"
|
||||||
|
let s:base3 = "230"
|
||||||
|
let s:yellow = "136"
|
||||||
|
let s:orange = "166"
|
||||||
|
let s:red = "124"
|
||||||
|
let s:magenta = "125"
|
||||||
|
let s:violet = "61"
|
||||||
|
let s:blue = "33"
|
||||||
|
let s:cyan = "37"
|
||||||
|
let s:green = "64"
|
||||||
|
else
|
||||||
|
let s:vmode = "cterm"
|
||||||
|
let s:bright = "* term=bold cterm=bold"
|
||||||
|
let s:base03 = "0".s:bright
|
||||||
|
let s:base02 = "0"
|
||||||
|
let s:base01 = "2".s:bright
|
||||||
|
let s:base00 = "3".s:bright
|
||||||
|
let s:base0 = "4".s:bright
|
||||||
|
let s:base1 = "6".s:bright
|
||||||
|
let s:base2 = "7"
|
||||||
|
let s:base3 = "7".s:bright
|
||||||
|
let s:yellow = "3"
|
||||||
|
let s:orange = "1".s:bright
|
||||||
|
let s:red = "1"
|
||||||
|
let s:magenta = "5"
|
||||||
|
let s:violet = "13"
|
||||||
|
let s:blue = "4"
|
||||||
|
let s:cyan = "6"
|
||||||
|
let s:green = "2"
|
||||||
|
endif
|
||||||
|
"}}}
|
||||||
|
" Formatting options and null values for passthrough effect "{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
let s:none = "NONE"
|
||||||
|
let s:none = "NONE"
|
||||||
|
let s:t_none = "NONE"
|
||||||
|
let s:n = "NONE"
|
||||||
|
let s:c = ",undercurl"
|
||||||
|
let s:r = ",reverse"
|
||||||
|
let s:s = ",standout"
|
||||||
|
let s:ou = ""
|
||||||
|
let s:ob = ""
|
||||||
|
"}}}
|
||||||
|
" Background value based on termtrans setting "{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
if (has("gui_running") || g:solarized_termtrans == 0)
|
||||||
|
let s:back = s:base03
|
||||||
|
else
|
||||||
|
let s:back = "NONE"
|
||||||
|
endif
|
||||||
|
"}}}
|
||||||
|
" Alternate light scheme "{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
if &background == "light"
|
||||||
|
let s:temp03 = s:base03
|
||||||
|
let s:temp02 = s:base02
|
||||||
|
let s:temp01 = s:base01
|
||||||
|
let s:temp00 = s:base00
|
||||||
|
let s:base03 = s:base3
|
||||||
|
let s:base02 = s:base2
|
||||||
|
let s:base01 = s:base1
|
||||||
|
let s:base00 = s:base0
|
||||||
|
let s:base0 = s:temp00
|
||||||
|
let s:base1 = s:temp01
|
||||||
|
let s:base2 = s:temp02
|
||||||
|
let s:base3 = s:temp03
|
||||||
|
if (s:back != "NONE")
|
||||||
|
let s:back = s:base03
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
"}}}
|
||||||
|
" Optional contrast schemes "{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
if g:solarized_contrast == "high"
|
||||||
|
let s:base01 = s:base00
|
||||||
|
let s:base00 = s:base0
|
||||||
|
let s:base0 = s:base1
|
||||||
|
let s:base1 = s:base2
|
||||||
|
let s:base2 = s:base3
|
||||||
|
let s:back = s:back
|
||||||
|
endif
|
||||||
|
if g:solarized_contrast == "low"
|
||||||
|
let s:back = s:base02
|
||||||
|
let s:ou = ",underline"
|
||||||
|
endif
|
||||||
|
"}}}
|
||||||
|
" Overrides dependent on user specified values"{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
if g:solarized_bold == 1
|
||||||
|
let s:b = ",bold"
|
||||||
|
else
|
||||||
|
let s:b = ""
|
||||||
|
endif
|
||||||
|
|
||||||
|
if g:solarized_underline == 1
|
||||||
|
let s:u = ",underline"
|
||||||
|
else
|
||||||
|
let s:u = ""
|
||||||
|
endif
|
||||||
|
|
||||||
|
if g:solarized_italic == 1
|
||||||
|
let s:i = ",italic"
|
||||||
|
else
|
||||||
|
let s:i = ""
|
||||||
|
endif
|
||||||
|
"}}}
|
||||||
|
" Highlighting primitives"{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
|
||||||
|
exe "let s:bg_none = ' ".s:vmode."bg=".s:none ."'"
|
||||||
|
exe "let s:bg_back = ' ".s:vmode."bg=".s:back ."'"
|
||||||
|
exe "let s:bg_base03 = ' ".s:vmode."bg=".s:base03 ."'"
|
||||||
|
exe "let s:bg_base02 = ' ".s:vmode."bg=".s:base02 ."'"
|
||||||
|
exe "let s:bg_base01 = ' ".s:vmode."bg=".s:base01 ."'"
|
||||||
|
exe "let s:bg_base00 = ' ".s:vmode."bg=".s:base00 ."'"
|
||||||
|
exe "let s:bg_base0 = ' ".s:vmode."bg=".s:base0 ."'"
|
||||||
|
exe "let s:bg_base1 = ' ".s:vmode."bg=".s:base1 ."'"
|
||||||
|
exe "let s:bg_base2 = ' ".s:vmode."bg=".s:base2 ."'"
|
||||||
|
exe "let s:bg_base3 = ' ".s:vmode."bg=".s:base3 ."'"
|
||||||
|
exe "let s:bg_green = ' ".s:vmode."bg=".s:green ."'"
|
||||||
|
exe "let s:bg_yellow = ' ".s:vmode."bg=".s:yellow ."'"
|
||||||
|
exe "let s:bg_orange = ' ".s:vmode."bg=".s:orange ."'"
|
||||||
|
exe "let s:bg_red = ' ".s:vmode."bg=".s:red ."'"
|
||||||
|
exe "let s:bg_magenta = ' ".s:vmode."bg=".s:magenta."'"
|
||||||
|
exe "let s:bg_violet = ' ".s:vmode."bg=".s:violet ."'"
|
||||||
|
exe "let s:bg_blue = ' ".s:vmode."bg=".s:blue ."'"
|
||||||
|
exe "let s:bg_cyan = ' ".s:vmode."bg=".s:cyan ."'"
|
||||||
|
|
||||||
|
exe "let s:fg_none = ' ".s:vmode."fg=".s:none ."'"
|
||||||
|
exe "let s:fg_back = ' ".s:vmode."fg=".s:back ."'"
|
||||||
|
exe "let s:fg_base03 = ' ".s:vmode."fg=".s:base03 ."'"
|
||||||
|
exe "let s:fg_base02 = ' ".s:vmode."fg=".s:base02 ."'"
|
||||||
|
exe "let s:fg_base01 = ' ".s:vmode."fg=".s:base01 ."'"
|
||||||
|
exe "let s:fg_base00 = ' ".s:vmode."fg=".s:base00 ."'"
|
||||||
|
exe "let s:fg_base0 = ' ".s:vmode."fg=".s:base0 ."'"
|
||||||
|
exe "let s:fg_base1 = ' ".s:vmode."fg=".s:base1 ."'"
|
||||||
|
exe "let s:fg_base2 = ' ".s:vmode."fg=".s:base2 ."'"
|
||||||
|
exe "let s:fg_base3 = ' ".s:vmode."fg=".s:base3 ."'"
|
||||||
|
exe "let s:fg_green = ' ".s:vmode."fg=".s:green ."'"
|
||||||
|
exe "let s:fg_yellow = ' ".s:vmode."fg=".s:yellow ."'"
|
||||||
|
exe "let s:fg_orange = ' ".s:vmode."fg=".s:orange ."'"
|
||||||
|
exe "let s:fg_red = ' ".s:vmode."fg=".s:red ."'"
|
||||||
|
exe "let s:fg_magenta = ' ".s:vmode."fg=".s:magenta."'"
|
||||||
|
exe "let s:fg_violet = ' ".s:vmode."fg=".s:violet ."'"
|
||||||
|
exe "let s:fg_blue = ' ".s:vmode."fg=".s:blue ."'"
|
||||||
|
exe "let s:fg_cyan = ' ".s:vmode."fg=".s:cyan ."'"
|
||||||
|
|
||||||
|
exe "let s:fmt_none = ' ".s:vmode."=NONE". " term=NONE". "'"
|
||||||
|
exe "let s:fmt_bold = ' ".s:vmode."=NONE".s:b. " term=NONE".s:b."'"
|
||||||
|
exe "let s:fmt_bldi = ' ".s:vmode."=NONE".s:b. " term=NONE".s:b."'"
|
||||||
|
exe "let s:fmt_undr = ' ".s:vmode."=NONE".s:u. " term=NONE".s:u."'"
|
||||||
|
exe "let s:fmt_undb = ' ".s:vmode."=NONE".s:u.s:b. " term=NONE".s:u.s:b."'"
|
||||||
|
exe "let s:fmt_undi = ' ".s:vmode."=NONE".s:u. " term=NONE".s:u."'"
|
||||||
|
exe "let s:fmt_uopt = ' ".s:vmode."=NONE".s:ou. " term=NONE".s:ou."'"
|
||||||
|
exe "let s:fmt_curl = ' ".s:vmode."=NONE".s:c. " term=NONE".s:c."'"
|
||||||
|
exe "let s:fmt_ital = ' ".s:vmode."=NONE". " term=NONE". "'"
|
||||||
|
exe "let s:fmt_revr = ' ".s:vmode."=NONE".s:r. " term=NONE".s:r."'"
|
||||||
|
exe "let s:fmt_stnd = ' ".s:vmode."=NONE".s:s. " term=NONE".s:s."'"
|
||||||
|
|
||||||
|
if has("gui_running")
|
||||||
|
exe "let s:sp_none = ' guisp=".s:none ."'"
|
||||||
|
exe "let s:sp_back = ' guisp=".s:back ."'"
|
||||||
|
exe "let s:sp_base03 = ' guisp=".s:base03 ."'"
|
||||||
|
exe "let s:sp_base02 = ' guisp=".s:base02 ."'"
|
||||||
|
exe "let s:sp_base01 = ' guisp=".s:base01 ."'"
|
||||||
|
exe "let s:sp_base00 = ' guisp=".s:base00 ."'"
|
||||||
|
exe "let s:sp_base0 = ' guisp=".s:base0 ."'"
|
||||||
|
exe "let s:sp_base1 = ' guisp=".s:base1 ."'"
|
||||||
|
exe "let s:sp_base2 = ' guisp=".s:base2 ."'"
|
||||||
|
exe "let s:sp_base3 = ' guisp=".s:base3 ."'"
|
||||||
|
exe "let s:sp_green = ' guisp=".s:green ."'"
|
||||||
|
exe "let s:sp_yellow = ' guisp=".s:yellow ."'"
|
||||||
|
exe "let s:sp_orange = ' guisp=".s:orange ."'"
|
||||||
|
exe "let s:sp_red = ' guisp=".s:red ."'"
|
||||||
|
exe "let s:sp_magenta = ' guisp=".s:magenta."'"
|
||||||
|
exe "let s:sp_violet = ' guisp=".s:violet ."'"
|
||||||
|
exe "let s:sp_blue = ' guisp=".s:blue ."'"
|
||||||
|
exe "let s:sp_cyan = ' guisp=".s:cyan ."'"
|
||||||
|
else
|
||||||
|
let s:sp_none = ""
|
||||||
|
let s:sp_back = ""
|
||||||
|
let s:sp_base03 = ""
|
||||||
|
let s:sp_base02 = ""
|
||||||
|
let s:sp_base01 = ""
|
||||||
|
let s:sp_base00 = ""
|
||||||
|
let s:sp_base0 = ""
|
||||||
|
let s:sp_base1 = ""
|
||||||
|
let s:sp_base2 = ""
|
||||||
|
let s:sp_base3 = ""
|
||||||
|
let s:sp_green = ""
|
||||||
|
let s:sp_yellow = ""
|
||||||
|
let s:sp_orange = ""
|
||||||
|
let s:sp_red = ""
|
||||||
|
let s:sp_magenta = ""
|
||||||
|
let s:sp_violet = ""
|
||||||
|
let s:sp_blue = ""
|
||||||
|
let s:sp_cyan = ""
|
||||||
|
endif
|
||||||
|
|
||||||
|
"}}}
|
||||||
|
" Basic highlighting"{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" note that link syntax to avoid duplicate configuration doesn't work with the
|
||||||
|
" exe compiled formats
|
||||||
|
|
||||||
|
exe "hi! Normal" .s:fmt_none .s:fg_base0 .s:bg_back
|
||||||
|
|
||||||
|
exe "hi! Comment" .s:fmt_ital .s:fg_base01 .s:bg_none
|
||||||
|
" *Comment any comment
|
||||||
|
|
||||||
|
exe "hi! Constant" .s:fmt_none .s:fg_cyan .s:bg_none
|
||||||
|
" *Constant any constant
|
||||||
|
" String a string constant: "this is a string"
|
||||||
|
" Character a character constant: 'c', '\n'
|
||||||
|
" Number a number constant: 234, 0xff
|
||||||
|
" Boolean a boolean constant: TRUE, false
|
||||||
|
" Float a floating point constant: 2.3e10
|
||||||
|
|
||||||
|
exe "hi! Identifier" .s:fmt_none .s:fg_blue .s:bg_none
|
||||||
|
" *Identifier any variable name
|
||||||
|
" Function function name (also: methods for classes)
|
||||||
|
"
|
||||||
|
exe "hi! Statement" .s:fmt_none .s:fg_green .s:bg_none
|
||||||
|
" *Statement any statement
|
||||||
|
" Conditional if, then, else, endif, switch, etc.
|
||||||
|
" Repeat for, do, while, etc.
|
||||||
|
" Label case, default, etc.
|
||||||
|
" Operator "sizeof", "+", "*", etc.
|
||||||
|
" Keyword any other keyword
|
||||||
|
" Exception try, catch, throw
|
||||||
|
|
||||||
|
exe "hi! PreProc" .s:fmt_none .s:fg_orange .s:bg_none
|
||||||
|
" *PreProc generic Preprocessor
|
||||||
|
" Include preprocessor #include
|
||||||
|
" Define preprocessor #define
|
||||||
|
" Macro same as Define
|
||||||
|
" PreCondit preprocessor #if, #else, #endif, etc.
|
||||||
|
|
||||||
|
exe "hi! Type" .s:fmt_none .s:fg_yellow .s:bg_none
|
||||||
|
" *Type int, long, char, etc.
|
||||||
|
" StorageClass static, register, volatile, etc.
|
||||||
|
" Structure struct, union, enum, etc.
|
||||||
|
" Typedef A typedef
|
||||||
|
|
||||||
|
exe "hi! Special" .s:fmt_none .s:fg_red .s:bg_none
|
||||||
|
" *Special any special symbol
|
||||||
|
" SpecialChar special character in a constant
|
||||||
|
" Tag you can use CTRL-] on this
|
||||||
|
" Delimiter character that needs attention
|
||||||
|
" SpecialComment special things inside a comment
|
||||||
|
" Debug debugging statements
|
||||||
|
|
||||||
|
exe "hi! Underlined" .s:fmt_none .s:fg_violet .s:bg_none
|
||||||
|
" *Underlined text that stands out, HTML links
|
||||||
|
|
||||||
|
exe "hi! Ignore" .s:fmt_none .s:fg_none .s:bg_none
|
||||||
|
" *Ignore left blank, hidden |hl-Ignore|
|
||||||
|
|
||||||
|
exe "hi! Error" .s:fmt_bold .s:fg_red .s:bg_none
|
||||||
|
" *Error any erroneous construct
|
||||||
|
|
||||||
|
exe "hi! Todo" .s:fmt_bold .s:fg_magenta.s:bg_none
|
||||||
|
" *Todo anything that needs extra attention; mostly the
|
||||||
|
" keywords TODO FIXME and XXX
|
||||||
|
"
|
||||||
|
"}}}
|
||||||
|
" Extended highlighting "{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
if (g:solarized_visibility=="high")
|
||||||
|
exe "hi! SpecialKey" .s:fmt_revr .s:fg_red .s:bg_none
|
||||||
|
exe "hi! NonText" .s:fmt_bold .s:fg_base1 .s:bg_none
|
||||||
|
elseif (g:solarized_visibility=="low")
|
||||||
|
exe "hi! SpecialKey" .s:fmt_bold .s:fg_base02 .s:bg_none
|
||||||
|
exe "hi! NonText" .s:fmt_bold .s:fg_base02 .s:bg_none
|
||||||
|
else
|
||||||
|
exe "hi! SpecialKey" .s:fmt_bold .s:fg_red .s:bg_none
|
||||||
|
exe "hi! NonText" .s:fmt_bold .s:fg_base01 .s:bg_none
|
||||||
|
endif
|
||||||
|
if (has("gui_running")) || &t_Co > 8
|
||||||
|
exe "hi! StatusLine" .s:fmt_none .s:fg_base02 .s:bg_base1
|
||||||
|
exe "hi! StatusLineNC" .s:fmt_none .s:fg_base02 .s:bg_base00
|
||||||
|
"exe "hi! Visual" .s:fmt_stnd .s:fg_none .s:bg_base02
|
||||||
|
exe "hi! Visual" .s:fmt_none .s:fg_base03 .s:bg_base01
|
||||||
|
else
|
||||||
|
exe "hi! StatusLine" .s:fmt_none .s:fg_base02 .s:bg_base2
|
||||||
|
exe "hi! StatusLineNC" .s:fmt_none .s:fg_base02 .s:bg_base2
|
||||||
|
exe "hi! Visual" .s:fmt_none .s:fg_none .s:bg_base2
|
||||||
|
endif
|
||||||
|
exe "hi! Directory" .s:fmt_none .s:fg_blue .s:bg_none
|
||||||
|
exe "hi! ErrorMsg" .s:fmt_revr .s:fg_red .s:bg_none
|
||||||
|
exe "hi! IncSearch" .s:fmt_stnd .s:fg_orange .s:bg_none
|
||||||
|
exe "hi! Search" .s:fmt_revr .s:fg_yellow .s:bg_none
|
||||||
|
exe "hi! MoreMsg" .s:fmt_none .s:fg_blue .s:bg_none
|
||||||
|
exe "hi! ModeMsg" .s:fmt_none .s:fg_blue .s:bg_none
|
||||||
|
exe "hi! LineNr" .s:fmt_none .s:fg_base01 .s:bg_base02
|
||||||
|
exe "hi! Question" .s:fmt_bold .s:fg_cyan .s:bg_none
|
||||||
|
exe "hi! VertSplit" .s:fmt_bold .s:fg_base00 .s:bg_base00
|
||||||
|
exe "hi! Title" .s:fmt_bold .s:fg_orange .s:bg_none
|
||||||
|
exe "hi! VisualNOS" .s:fmt_stnd .s:fg_none .s:bg_base02
|
||||||
|
exe "hi! WarningMsg" .s:fmt_bold .s:fg_red .s:bg_none
|
||||||
|
exe "hi! WildMenu" .s:fmt_none .s:fg_base2 .s:bg_base02
|
||||||
|
exe "hi! Folded" .s:fmt_undb .s:fg_base0 .s:bg_base02 .s:sp_base03
|
||||||
|
exe "hi! FoldColumn" .s:fmt_bold .s:fg_base0 .s:bg_base02
|
||||||
|
exe "hi! DiffAdd" .s:fmt_revr .s:fg_green .s:bg_none
|
||||||
|
exe "hi! DiffChange" .s:fmt_revr .s:fg_yellow .s:bg_none
|
||||||
|
exe "hi! DiffDelete" .s:fmt_revr .s:fg_red .s:bg_none
|
||||||
|
exe "hi! DiffText" .s:fmt_revr .s:fg_blue .s:bg_none
|
||||||
|
exe "hi! SignColumn" .s:fmt_none .s:fg_base0 .s:bg_base02
|
||||||
|
exe "hi! Conceal" .s:fmt_none .s:fg_blue .s:bg_none
|
||||||
|
exe "hi! SpellBad" .s:fmt_curl .s:fg_none .s:bg_none .s:sp_red
|
||||||
|
exe "hi! SpellCap" .s:fmt_curl .s:fg_none .s:bg_none .s:sp_violet
|
||||||
|
exe "hi! SpellRare" .s:fmt_curl .s:fg_none .s:bg_none .s:sp_cyan
|
||||||
|
exe "hi! SpellLocal" .s:fmt_curl .s:fg_none .s:bg_none .s:sp_yellow
|
||||||
|
exe "hi! Pmenu" .s:fmt_none .s:fg_base0 .s:bg_base02
|
||||||
|
exe "hi! PmenuSel" .s:fmt_none .s:fg_base2 .s:bg_base01
|
||||||
|
exe "hi! PmenuSbar" .s:fmt_none .s:fg_base0 .s:bg_base2
|
||||||
|
exe "hi! PmenuThumb" .s:fmt_none .s:fg_base03 .s:bg_base0
|
||||||
|
exe "hi! TabLine" .s:fmt_undr .s:fg_base0 .s:bg_base02 .s:sp_base0
|
||||||
|
exe "hi! TabLineSel" .s:fmt_undr .s:fg_base2 .s:bg_base01 .s:sp_base0
|
||||||
|
exe "hi! TabLineFill" .s:fmt_undr .s:fg_base0 .s:bg_base02 .s:sp_base0
|
||||||
|
exe "hi! CursorColumn" .s:fmt_none .s:fg_none .s:bg_base02
|
||||||
|
exe "hi! CursorLine" .s:fmt_uopt .s:fg_none .s:bg_base02 .s:sp_base1
|
||||||
|
exe "hi! ColorColumn" .s:fmt_none .s:fg_none .s:bg_base02
|
||||||
|
exe "hi! Cursor" .s:fmt_none .s:fg_base03 .s:bg_base0
|
||||||
|
hi! link lCursor Cursor
|
||||||
|
exe "hi! MatchParen" .s:fmt_bold .s:fg_red .s:bg_base01
|
||||||
|
|
||||||
|
"}}}
|
||||||
|
" vim syntax highlighting "{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
exe "hi! vimLineComment" . s:fg_base01 .s:bg_none .s:fmt_ital
|
||||||
|
exe "hi! vimCommentString".s:fg_violet .s:bg_none .s:fmt_none
|
||||||
|
hi! link vimVar Identifier
|
||||||
|
hi! link vimFunc Function
|
||||||
|
hi! link vimUserFunc Function
|
||||||
|
exe "hi! vimCommand" . s:fg_yellow .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! vimCmdSep" . s:fg_blue .s:bg_none .s:fmt_bold
|
||||||
|
exe "hi! helpExample" . s:fg_base1 .s:bg_none .s:fmt_none
|
||||||
|
hi! link helpSpecial Special
|
||||||
|
exe "hi! helpOption" . s:fg_cyan .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! helpNote" . s:fg_magenta.s:bg_none .s:fmt_none
|
||||||
|
exe "hi! helpVim" . s:fg_magenta.s:bg_none .s:fmt_none
|
||||||
|
exe "hi! helpHyperTextJump" .s:fg_blue .s:bg_none .s:fmt_undr
|
||||||
|
exe "hi! helpHyperTextEntry".s:fg_green .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! vimIsCommand" . s:fg_base00 .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! vimSynMtchOpt" . s:fg_yellow .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! vimSynType" . s:fg_cyan .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! vimHiLink" . s:fg_blue .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! vimHiGroup" . s:fg_blue .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! vimGroup" . s:fg_blue .s:bg_none .s:fmt_undb
|
||||||
|
"}}}
|
||||||
|
" html highlighting "{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
exe "hi! htmlTag" . s:fg_base01 .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! htmlEndTag" . s:fg_base01 .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! htmlTagN" . s:fg_base1 .s:bg_none .s:fmt_bold
|
||||||
|
exe "hi! htmlTagName" . s:fg_blue .s:bg_none .s:fmt_bold
|
||||||
|
exe "hi! htmlSpecialTagName". s:fg_blue .s:bg_none .s:fmt_ital
|
||||||
|
exe "hi! htmlArg" . s:fg_base00 .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! javaScript" . s:fg_yellow .s:bg_none .s:fmt_none
|
||||||
|
"}}}
|
||||||
|
" perl highlighting "{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
exe "hi! perlHereDoc" . s:fg_base1 .s:bg_back .s:fmt_none
|
||||||
|
exe "hi! perlVarPlain" . s:fg_yellow .s:bg_back .s:fmt_none
|
||||||
|
exe "hi! perlStatementFileDesc". s:fg_cyan.s:bg_back.s:fmt_none
|
||||||
|
|
||||||
|
"}}}
|
||||||
|
" tex highlighting "{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
exe "hi! texStatement" . s:fg_cyan .s:bg_back .s:fmt_none
|
||||||
|
exe "hi! texMathZoneX" . s:fg_yellow .s:bg_back .s:fmt_none
|
||||||
|
exe "hi! texMathMatcher" . s:fg_yellow .s:bg_back .s:fmt_none
|
||||||
|
exe "hi! texMathMatcher" . s:fg_yellow .s:bg_back .s:fmt_none
|
||||||
|
exe "hi! texRefLabel" . s:fg_yellow .s:bg_back .s:fmt_none
|
||||||
|
"}}}
|
||||||
|
" ruby highlighting "{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
exe "hi! rubyDefine" . s:fg_base1 .s:bg_back .s:fmt_bold
|
||||||
|
"rubyInclude
|
||||||
|
"rubySharpBang
|
||||||
|
"rubyAccess
|
||||||
|
"rubyPredefinedVariable
|
||||||
|
"rubyBoolean
|
||||||
|
"rubyClassVariable
|
||||||
|
"rubyBeginEnd
|
||||||
|
"rubyRepeatModifier
|
||||||
|
"hi! link rubyArrayDelimiter Special " [ , , ]
|
||||||
|
"rubyCurlyBlock { , , }
|
||||||
|
|
||||||
|
"hi! link rubyClass Keyword
|
||||||
|
"hi! link rubyModule Keyword
|
||||||
|
"hi! link rubyKeyword Keyword
|
||||||
|
"hi! link rubyOperator Operator
|
||||||
|
"hi! link rubyIdentifier Identifier
|
||||||
|
"hi! link rubyInstanceVariable Identifier
|
||||||
|
"hi! link rubyGlobalVariable Identifier
|
||||||
|
"hi! link rubyClassVariable Identifier
|
||||||
|
"hi! link rubyConstant Type
|
||||||
|
"}}}
|
||||||
|
" haskell syntax highlighting"{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" For use with syntax/haskell.vim : Haskell Syntax File
|
||||||
|
" http://www.vim.org/scripts/script.php?script_id=3034
|
||||||
|
" See also Steffen Siering's github repository:
|
||||||
|
" http://github.com/urso/dotrc/blob/master/vim/syntax/haskell.vim
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
"
|
||||||
|
" Treat True and False specially, see the plugin referenced above
|
||||||
|
let hs_highlight_boolean=1
|
||||||
|
" highlight delims, see the plugin referenced above
|
||||||
|
let hs_highlight_delimiters=1
|
||||||
|
|
||||||
|
exe "hi! cPreCondit". s:fg_orange.s:bg_none .s:fmt_none
|
||||||
|
|
||||||
|
exe "hi! VarId" . s:fg_blue .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! ConId" . s:fg_yellow .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! hsImport" . s:fg_magenta.s:bg_none .s:fmt_none
|
||||||
|
exe "hi! hsString" . s:fg_base00 .s:bg_none .s:fmt_none
|
||||||
|
|
||||||
|
exe "hi! hsStructure" . s:fg_cyan .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! hs_hlFunctionName" . s:fg_blue .s:bg_none
|
||||||
|
exe "hi! hsStatement" . s:fg_cyan .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! hsImportLabel" . s:fg_cyan .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! hs_OpFunctionName" . s:fg_yellow .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! hs_DeclareFunction" . s:fg_orange .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! hsVarSym" . s:fg_cyan .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! hsType" . s:fg_yellow .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! hsTypedef" . s:fg_cyan .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! hsModuleName" . s:fg_green .s:bg_none .s:fmt_undr
|
||||||
|
exe "hi! hsModuleStartLabel" . s:fg_magenta.s:bg_none .s:fmt_none
|
||||||
|
hi! link hsImportParams Delimiter
|
||||||
|
hi! link hsDelimTypeExport Delimiter
|
||||||
|
hi! link hsModuleStartLabel hsStructure
|
||||||
|
hi! link hsModuleWhereLabel hsModuleStartLabel
|
||||||
|
|
||||||
|
" following is for the haskell-conceal plugin
|
||||||
|
" the first two items don't have an impact, but better safe
|
||||||
|
exe "hi! hsNiceOperator" . s:fg_cyan .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! hsniceoperator" . s:fg_cyan .s:bg_none .s:fmt_none
|
||||||
|
|
||||||
|
"}}}
|
||||||
|
" pandoc markdown syntax highlighting "{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
|
||||||
|
"PandocHiLink pandocNormalBlock
|
||||||
|
exe "hi! pandocTitleBlock" .s:fg_blue .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocTitleBlockTitle" .s:fg_blue .s:bg_none .s:fmt_bold
|
||||||
|
exe "hi! pandocTitleComment" .s:fg_blue .s:bg_none .s:fmt_bold
|
||||||
|
exe "hi! pandocComment" .s:fg_base01 .s:bg_none .s:fmt_ital
|
||||||
|
exe "hi! pandocVerbatimBlock" .s:fg_yellow .s:bg_none .s:fmt_none
|
||||||
|
hi! link pandocVerbatimBlockDeep pandocVerbatimBlock
|
||||||
|
hi! link pandocCodeBlock pandocVerbatimBlock
|
||||||
|
hi! link pandocCodeBlockDelim pandocVerbatimBlock
|
||||||
|
exe "hi! pandocBlockQuote" .s:fg_blue .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocBlockQuoteLeader1" .s:fg_blue .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocBlockQuoteLeader2" .s:fg_cyan .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocBlockQuoteLeader3" .s:fg_yellow .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocBlockQuoteLeader4" .s:fg_red .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocBlockQuoteLeader5" .s:fg_base0 .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocBlockQuoteLeader6" .s:fg_base01 .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocListMarker" .s:fg_magenta.s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocListReference" .s:fg_magenta.s:bg_none .s:fmt_undr
|
||||||
|
|
||||||
|
" Definitions
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
let s:fg_pdef = s:fg_violet
|
||||||
|
exe "hi! pandocDefinitionBlock" .s:fg_pdef .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocDefinitionTerm" .s:fg_pdef .s:bg_none .s:fmt_stnd
|
||||||
|
exe "hi! pandocDefinitionIndctr" .s:fg_pdef .s:bg_none .s:fmt_bold
|
||||||
|
exe "hi! pandocEmphasisDefinition" .s:fg_pdef .s:bg_none .s:fmt_ital
|
||||||
|
exe "hi! pandocEmphasisNestedDefinition" .s:fg_pdef .s:bg_none .s:fmt_bldi
|
||||||
|
exe "hi! pandocStrongEmphasisDefinition" .s:fg_pdef .s:bg_none .s:fmt_bold
|
||||||
|
exe "hi! pandocStrongEmphasisNestedDefinition" .s:fg_pdef.s:bg_none.s:fmt_bldi
|
||||||
|
exe "hi! pandocStrongEmphasisEmphasisDefinition" .s:fg_pdef.s:bg_none.s:fmt_bldi
|
||||||
|
exe "hi! pandocStrikeoutDefinition" .s:fg_pdef .s:bg_none .s:fmt_revr
|
||||||
|
exe "hi! pandocVerbatimInlineDefinition" .s:fg_pdef .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocSuperscriptDefinition" .s:fg_pdef .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocSubscriptDefinition" .s:fg_pdef .s:bg_none .s:fmt_none
|
||||||
|
|
||||||
|
" Tables
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
let s:fg_ptable = s:fg_blue
|
||||||
|
exe "hi! pandocTable" .s:fg_ptable.s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocTableStructure" .s:fg_ptable.s:bg_none .s:fmt_none
|
||||||
|
hi! link pandocTableStructureTop pandocTableStructre
|
||||||
|
hi! link pandocTableStructureEnd pandocTableStructre
|
||||||
|
exe "hi! pandocTableZebraLight" .s:fg_ptable.s:bg_base03.s:fmt_none
|
||||||
|
exe "hi! pandocTableZebraDark" .s:fg_ptable.s:bg_base02.s:fmt_none
|
||||||
|
exe "hi! pandocEmphasisTable" .s:fg_ptable.s:bg_none .s:fmt_ital
|
||||||
|
exe "hi! pandocEmphasisNestedTable" .s:fg_ptable.s:bg_none .s:fmt_bldi
|
||||||
|
exe "hi! pandocStrongEmphasisTable" .s:fg_ptable.s:bg_none .s:fmt_bold
|
||||||
|
exe "hi! pandocStrongEmphasisNestedTable" .s:fg_ptable.s:bg_none .s:fmt_bldi
|
||||||
|
exe "hi! pandocStrongEmphasisEmphasisTable" .s:fg_ptable.s:bg_none .s:fmt_bldi
|
||||||
|
exe "hi! pandocStrikeoutTable" .s:fg_ptable.s:bg_none .s:fmt_revr
|
||||||
|
exe "hi! pandocVerbatimInlineTable" .s:fg_ptable.s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocSuperscriptTable" .s:fg_ptable.s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocSubscriptTable" .s:fg_ptable.s:bg_none .s:fmt_none
|
||||||
|
|
||||||
|
" Headings
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
let s:fg_phead = s:fg_orange
|
||||||
|
exe "hi! pandocHeading" .s:fg_phead .s:bg_none.s:fmt_bold
|
||||||
|
exe "hi! pandocHeadingMarker" .s:fg_yellow.s:bg_none.s:fmt_bold
|
||||||
|
exe "hi! pandocEmphasisHeading" .s:fg_phead .s:bg_none.s:fmt_bldi
|
||||||
|
exe "hi! pandocEmphasisNestedHeading" .s:fg_phead .s:bg_none.s:fmt_bldi
|
||||||
|
exe "hi! pandocStrongEmphasisHeading" .s:fg_phead .s:bg_none.s:fmt_bold
|
||||||
|
exe "hi! pandocStrongEmphasisNestedHeading" .s:fg_phead .s:bg_none.s:fmt_bldi
|
||||||
|
exe "hi! pandocStrongEmphasisEmphasisHeading".s:fg_phead .s:bg_none.s:fmt_bldi
|
||||||
|
exe "hi! pandocStrikeoutHeading" .s:fg_phead .s:bg_none.s:fmt_revr
|
||||||
|
exe "hi! pandocVerbatimInlineHeading" .s:fg_phead .s:bg_none.s:fmt_bold
|
||||||
|
exe "hi! pandocSuperscriptHeading" .s:fg_phead .s:bg_none.s:fmt_bold
|
||||||
|
exe "hi! pandocSubscriptHeading" .s:fg_phead .s:bg_none.s:fmt_bold
|
||||||
|
|
||||||
|
" Links
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
exe "hi! pandocLinkDelim" .s:fg_base01 .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocLinkLabel" .s:fg_blue .s:bg_none .s:fmt_undr
|
||||||
|
exe "hi! pandocLinkText" .s:fg_blue .s:bg_none .s:fmt_undb
|
||||||
|
exe "hi! pandocLinkURL" .s:fg_base00 .s:bg_none .s:fmt_undr
|
||||||
|
exe "hi! pandocLinkTitle" .s:fg_base00 .s:bg_none .s:fmt_undi
|
||||||
|
exe "hi! pandocLinkTitleDelim" .s:fg_base01 .s:bg_none .s:fmt_undi .s:sp_base00
|
||||||
|
exe "hi! pandocLinkDefinition" .s:fg_cyan .s:bg_none .s:fmt_undr .s:sp_base00
|
||||||
|
exe "hi! pandocLinkDefinitionID" .s:fg_blue .s:bg_none .s:fmt_bold
|
||||||
|
exe "hi! pandocImageCaption" .s:fg_violet .s:bg_none .s:fmt_undb
|
||||||
|
exe "hi! pandocFootnoteLink" .s:fg_green .s:bg_none .s:fmt_undr
|
||||||
|
exe "hi! pandocFootnoteDefLink" .s:fg_green .s:bg_none .s:fmt_bold
|
||||||
|
exe "hi! pandocFootnoteInline" .s:fg_green .s:bg_none .s:fmt_undb
|
||||||
|
exe "hi! pandocFootnote" .s:fg_green .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocCitationDelim" .s:fg_magenta.s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocCitation" .s:fg_magenta.s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocCitationID" .s:fg_magenta.s:bg_none .s:fmt_undr
|
||||||
|
exe "hi! pandocCitationRef" .s:fg_magenta.s:bg_none .s:fmt_none
|
||||||
|
|
||||||
|
" Main Styles
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
exe "hi! pandocStyleDelim" .s:fg_base01 .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocEmphasis" .s:fg_base0 .s:bg_none .s:fmt_ital
|
||||||
|
exe "hi! pandocEmphasisNested" .s:fg_base0 .s:bg_none .s:fmt_bldi
|
||||||
|
exe "hi! pandocStrongEmphasis" .s:fg_base0 .s:bg_none .s:fmt_bold
|
||||||
|
exe "hi! pandocStrongEmphasisNested" .s:fg_base0 .s:bg_none .s:fmt_bldi
|
||||||
|
exe "hi! pandocStrongEmphasisEmphasis" .s:fg_base0 .s:bg_none .s:fmt_bldi
|
||||||
|
exe "hi! pandocStrikeout" .s:fg_base01 .s:bg_none .s:fmt_revr
|
||||||
|
exe "hi! pandocVerbatimInline" .s:fg_yellow .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocSuperscript" .s:fg_violet .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocSubscript" .s:fg_violet .s:bg_none .s:fmt_none
|
||||||
|
|
||||||
|
exe "hi! pandocRule" .s:fg_blue .s:bg_none .s:fmt_bold
|
||||||
|
exe "hi! pandocRuleLine" .s:fg_blue .s:bg_none .s:fmt_bold
|
||||||
|
exe "hi! pandocEscapePair" .s:fg_red .s:bg_none .s:fmt_bold
|
||||||
|
exe "hi! pandocCitationRef" .s:fg_magenta.s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocNonBreakingSpace" . s:fg_red .s:bg_none .s:fmt_revr
|
||||||
|
hi! link pandocEscapedCharacter pandocEscapePair
|
||||||
|
hi! link pandocLineBreak pandocEscapePair
|
||||||
|
|
||||||
|
" Embedded Code
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
exe "hi! pandocMetadataDelim" .s:fg_base01 .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocMetadata" .s:fg_blue .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocMetadataKey" .s:fg_blue .s:bg_none .s:fmt_none
|
||||||
|
exe "hi! pandocMetadata" .s:fg_blue .s:bg_none .s:fmt_bold
|
||||||
|
hi! link pandocMetadataTitle pandocMetadata
|
||||||
|
|
||||||
|
"}}}
|
||||||
|
" Utility autocommand "{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" In cases where Solarized is initialized inside a terminal vim session and
|
||||||
|
" then transferred to a gui session via the command `:gui`, the gui vim process
|
||||||
|
" does not re-read the colorscheme (or .vimrc for that matter) so any `has_gui`
|
||||||
|
" related code that sets gui specific values isn't executed.
|
||||||
|
"
|
||||||
|
" Currently, Solarized sets only the cterm or gui values for the colorscheme
|
||||||
|
" depending on gui or terminal mode. It's possible that, if the following
|
||||||
|
" autocommand method is deemed excessively poor form, that approach will be
|
||||||
|
" used again and the autocommand below will be dropped.
|
||||||
|
"
|
||||||
|
" However it seems relatively benign in this case to include the autocommand
|
||||||
|
" here. It fires only in cases where vim is transferring from terminal to gui
|
||||||
|
" mode (detected with the script scope s:vmode variable). It also allows for
|
||||||
|
" other potential terminal customizations that might make gui mode suboptimal.
|
||||||
|
"
|
||||||
|
autocmd GUIEnter * if (s:vmode != "gui") | exe "colorscheme " . g:colors_name | endif
|
||||||
|
"}}}
|
||||||
|
" License "{{{
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
"
|
||||||
|
" Copyright (c) 2011 Ethan Schoonover
|
||||||
|
"
|
||||||
|
" Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
" of this software and associated documentation files (the "Software"), to deal
|
||||||
|
" in the Software without restriction, including without limitation the rights
|
||||||
|
" to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
" copies of the Software, and to permit persons to whom the Software is
|
||||||
|
" furnished to do so, subject to the following conditions:
|
||||||
|
"
|
||||||
|
" The above copyright notice and this permission notice shall be included in
|
||||||
|
" all copies or substantial portions of the Software.
|
||||||
|
"
|
||||||
|
" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
" AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
" OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
" THE SOFTWARE.
|
||||||
|
"
|
||||||
|
" vim:foldmethod=marker:foldlevel=0
|
||||||
|
"}}}
|
139
vimrc
Normal file
139
vimrc
Normal file
|
@ -0,0 +1,139 @@
|
||||||
|
" I wanna suffer: disable arrow keys
|
||||||
|
" noremap <Up> <NOP>
|
||||||
|
" noremap <Down> <NOP>
|
||||||
|
" noremap <Left> <NOP>
|
||||||
|
" noremap <Right> <NOP>
|
||||||
|
|
||||||
|
" Do not create swap files
|
||||||
|
set nobackup
|
||||||
|
set noswapfile
|
||||||
|
set noundofile
|
||||||
|
|
||||||
|
" Line numbering (hybrid: relative and absolute)
|
||||||
|
set number relativenumber
|
||||||
|
augroup numbertoggle
|
||||||
|
autocmd!
|
||||||
|
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
|
||||||
|
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" From https://github.com/jessfraz/.vim/blob/master/vimrc "
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
|
set splitright " Split vertical windows right to the current windows
|
||||||
|
set splitbelow " Split horizontal windows below to the current windows
|
||||||
|
set encoding=utf-8 " Set default encoding to UTF-8
|
||||||
|
set autowrite " Automatically save before :next, :make etc.
|
||||||
|
set autoread " Automatically reread changed files without asking me anything
|
||||||
|
set fileformats=unix,dos,mac " Prefer Unix over Windows over OS 9 formats
|
||||||
|
set noshowmatch " Do not show matching brackets by flickering
|
||||||
|
set noshowmode " We show the mode with airline or lightline
|
||||||
|
set incsearch " Shows the match while typing
|
||||||
|
set hlsearch " Highlight found searches
|
||||||
|
set ignorecase " Search case insensitive...
|
||||||
|
set smartcase " ... but not when search pattern contains upper case characters
|
||||||
|
|
||||||
|
" Indent
|
||||||
|
set autoindent
|
||||||
|
set complete-=i
|
||||||
|
set showmatch
|
||||||
|
set smarttab
|
||||||
|
|
||||||
|
set et
|
||||||
|
set tabstop=4
|
||||||
|
set shiftwidth=4
|
||||||
|
set expandtab
|
||||||
|
|
||||||
|
set nrformats-=octal
|
||||||
|
set shiftround
|
||||||
|
|
||||||
|
" In many terminal emulators the mouse works just fine, thus enable it.
|
||||||
|
if has('mouse')
|
||||||
|
set mouse=a
|
||||||
|
endif
|
||||||
|
" If linux then set ttymouse
|
||||||
|
let s:uname = system("echo -n \"$(uname)\"")
|
||||||
|
if !v:shell_error && s:uname == "Linux" && !has('nvim')
|
||||||
|
set ttymouse=xterm
|
||||||
|
endif
|
||||||
|
|
||||||
|
syntax enable
|
||||||
|
if has('gui_running')
|
||||||
|
set transparency=3
|
||||||
|
" fix js regex syntax
|
||||||
|
set regexpengine=1
|
||||||
|
syntax enable
|
||||||
|
endif
|
||||||
|
set background=dark
|
||||||
|
colorscheme solarized
|
||||||
|
let g:solarized_termtrans=1
|
||||||
|
let g:hybrid_use_Xresources = 1
|
||||||
|
let g:rehash256 = 1
|
||||||
|
set guifont=Inconsolata:h15
|
||||||
|
set guioptions-=L
|
||||||
|
|
||||||
|
" Search mappings: These will make it so that going to the next one in a
|
||||||
|
" search will center on the line it's found in.
|
||||||
|
nnoremap n nzzzv
|
||||||
|
nnoremap N Nzzzv
|
||||||
|
|
||||||
|
" Do not show stupid q: window
|
||||||
|
map q: :q
|
||||||
|
|
||||||
|
" never do this again --> :set paste <ctrl-v> :set no paste
|
||||||
|
let &t_SI .= "\<Esc>[?2004h"
|
||||||
|
let &t_EI .= "\<Esc>[?2004l"
|
||||||
|
|
||||||
|
" Allow saving of files as sudo when I forgot to start vim using sudo.
|
||||||
|
cmap w!! w !sudo tee > /dev/null %
|
||||||
|
|
||||||
|
" ----------------------------------------- "
|
||||||
|
" File Type settings "
|
||||||
|
" ----------------------------------------- "
|
||||||
|
|
||||||
|
au BufNewFile,BufRead *.vim setlocal noet ts=4 sw=4 sts=4
|
||||||
|
au BufNewFile,BufRead *.txt setlocal noet ts=4 sw=4
|
||||||
|
au BufNewFile,BufRead *.md setlocal spell noet ts=4 sw=4
|
||||||
|
au BufNewFile,BufRead *.yml,*.yaml setlocal expandtab ts=2 sw=2
|
||||||
|
au BufNewFile,BufRead *.cpp setlocal expandtab ts=2 sw=2
|
||||||
|
au BufNewFile,BufRead *.hpp setlocal expandtab ts=2 sw=2
|
||||||
|
au BufNewFile,BufRead *.json setlocal expandtab ts=2 sw=2
|
||||||
|
au BufNewFile,BufRead *.jade setlocal expandtab ts=2 sw=2
|
||||||
|
|
||||||
|
augroup filetypedetect
|
||||||
|
au BufNewFile,BufRead .tmux.conf*,tmux.conf* setf tmux
|
||||||
|
au BufNewFile,BufRead .nginx.conf*,nginx.conf* setf nginx
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
au FileType nginx setlocal noet ts=4 sw=4 sts=4
|
||||||
|
|
||||||
|
" Go settings
|
||||||
|
au BufNewFile,BufRead *.go setlocal noet ts=4 sw=4 sts=4
|
||||||
|
" autocmd BufEnter *.go colorscheme nofrils-dark
|
||||||
|
|
||||||
|
" scala settings
|
||||||
|
autocmd BufNewFile,BufReadPost *.scala setl shiftwidth=2 expandtab
|
||||||
|
|
||||||
|
" Markdown Settings
|
||||||
|
autocmd BufNewFile,BufReadPost *.md setl ts=4 sw=4 sts=4 expandtab
|
||||||
|
|
||||||
|
" lua settings
|
||||||
|
autocmd BufNewFile,BufRead *.lua setlocal noet ts=4 sw=4 sts=4
|
||||||
|
|
||||||
|
" Dockerfile settings
|
||||||
|
autocmd FileType dockerfile set noexpandtab
|
||||||
|
|
||||||
|
" shell/config/systemd settings
|
||||||
|
autocmd FileType fstab,systemd set noexpandtab
|
||||||
|
autocmd FileType gitconfig,sh,toml set noexpandtab
|
||||||
|
|
||||||
|
" python indent
|
||||||
|
autocmd BufNewFile,BufRead *.py setlocal tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80 smarttab expandtab
|
||||||
|
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" / From https://github.com/jessfraz/.vim/blob/master/vimrc "
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue