mirror of
https://github.com/balkian/dotfiles.git
synced 2024-12-04 17:12:29 +00:00
First commit
This commit is contained in:
commit
e4c1487749
22
README.md
Normal file
22
README.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# Balkian's dotfiles
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
### Download
|
||||||
|
The Git Way:
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/balkian/dotfiles.git
|
||||||
|
```
|
||||||
|
The fast way:
|
||||||
|
```bash
|
||||||
|
cd; curl -#L https://github.com/balkian/dotfiles/tarball/master | tar -xzv --strip-components 1 --exclude={README.md}
|
||||||
|
```
|
||||||
|
### Install
|
||||||
|
|
||||||
|
Just run:
|
||||||
|
```bash
|
||||||
|
source .make.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
## How it works
|
||||||
|
So far, this is the simplest way of keeping your dotfiles in a repository. The installation script will just back-up your files in a folder in your ~/ with the timestamp, so running it twice won't destroy your original files.
|
7
bash_logout
Normal file
7
bash_logout
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# ~/.bash_logout: executed by bash(1) when login shell exits.
|
||||||
|
|
||||||
|
# when leaving the console clear the screen to increase privacy
|
||||||
|
|
||||||
|
if [ "$SHLVL" = 1 ]; then
|
||||||
|
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
|
||||||
|
fi
|
7
bash_profile
Normal file
7
bash_profile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
if [ -f ~/.bashrc ]; then
|
||||||
|
source ~/.bashrc
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
### Added by the Heroku Toolbelt
|
||||||
|
export PATH="/usr/local/heroku/bin:$PATH"
|
187
bashrc
Normal file
187
bashrc
Normal file
@ -0,0 +1,187 @@
|
|||||||
|
# If not running interactively, don't do anything
|
||||||
|
[ -z "$PS1" ] && return
|
||||||
|
|
||||||
|
#osx color terminal
|
||||||
|
export CLICOLOR=1
|
||||||
|
# don't put duplicate lines in the history. See bash(1) for more options
|
||||||
|
# don't overwrite GNU Midnight Commander's setting of `ignorespace'.
|
||||||
|
#HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
|
||||||
|
# ... or force ignoredups and ignorespace
|
||||||
|
HISTCONTROL=ignoreboth
|
||||||
|
|
||||||
|
# append to the history file, don't overwrite it
|
||||||
|
shopt -s histappend
|
||||||
|
|
||||||
|
|
||||||
|
# make less more friendly for non-text input files, see lesspipe(1)
|
||||||
|
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||||
|
|
||||||
|
#Already in bash.bashrc
|
||||||
|
# set variable identifying the chroot you work in (used in the prompt below)
|
||||||
|
#if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
|
||||||
|
# debian_chroot=$(cat /etc/debian_chroot)
|
||||||
|
#fi
|
||||||
|
# check the window size after each command and, if necessary,
|
||||||
|
# update the values of LINES and COLUMNS.
|
||||||
|
#shopt -s checkwinsize
|
||||||
|
|
||||||
|
#$PS0='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||||
|
PS0='${debian_chroot:+($debian_chroot)}\u@\h:\W'
|
||||||
|
|
||||||
|
# If this is an xterm set the title to user@host:dir
|
||||||
|
case "$TERM" in
|
||||||
|
xterm*|rxvt*)
|
||||||
|
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
# Set up TERM variables.
|
||||||
|
# vt100 and xterm have no color in vim (at least on unixs), but if we call them xterm-color, they will.
|
||||||
|
# (vt100 for F-Secure SSH.)
|
||||||
|
# This may well be the case for some other terms, so I'm putting them here.
|
||||||
|
# Also set up a variable to indicate whether to set up the title functions.
|
||||||
|
# TODO gnome-terminal, or however it reports itself
|
||||||
|
case $TERM in
|
||||||
|
|
||||||
|
screen)
|
||||||
|
TERM_IS_COLOR=true
|
||||||
|
TERM_NOT_RECOGNIZED_AS_COLOR_BY_VIM=false
|
||||||
|
TERM_NOT_RECOGNIZED_BY_SUN_UTILS=false
|
||||||
|
TERM_CAN_TITLE=true
|
||||||
|
;;
|
||||||
|
|
||||||
|
xterm-color|color_xterm|rxvt|Eterm|screen*) # screen.linux|screen-w
|
||||||
|
TERM_IS_COLOR=true
|
||||||
|
TERM_NOT_RECOGNIZED_AS_COLOR_BY_VIM=false
|
||||||
|
TERM_NOT_RECOGNIZED_BY_SUN_UTILS=true
|
||||||
|
TERM_CAN_TITLE=true
|
||||||
|
;;
|
||||||
|
|
||||||
|
linux)
|
||||||
|
TERM_IS_COLOR=true
|
||||||
|
TERM_NOT_RECOGNIZED_AS_COLOR_BY_VIM=false
|
||||||
|
TERM_NOT_RECOGNIZED_BY_SUN_UTILS=true
|
||||||
|
TERM_CAN_TITLE=false
|
||||||
|
;;
|
||||||
|
|
||||||
|
xterm|vt100)
|
||||||
|
TERM_IS_COLOR=true
|
||||||
|
TERM_NOT_RECOGNIZED_AS_COLOR_BY_VIM=true
|
||||||
|
TERM_NOT_RECOGNIZED_BY_SUN_UTILS=false
|
||||||
|
TERM_CAN_TITLE=true
|
||||||
|
;;
|
||||||
|
|
||||||
|
*xterm*|eterm|rxvt*)
|
||||||
|
TERM_IS_COLOR=true
|
||||||
|
TERM_NOT_RECOGNIZED_AS_COLOR_BY_VIM=true
|
||||||
|
TERM_NOT_RECOGNIZED_BY_SUN_UTILS=true
|
||||||
|
TERM_CAN_TITLE=true
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
TERM_IS_COLOR=false
|
||||||
|
TERM_NOT_RECOGNIZED_AS_COLOR_BY_VIM=false
|
||||||
|
TERM_NOT_RECOGNIZED_BY_SUN_UTILS=false
|
||||||
|
TERM_CAN_TITLE=false
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
|
||||||
|
# dircolors... make sure that we have a color terminal, dircolors exists, and ls supports it.
|
||||||
|
if $TERM_IS_COLOR && ( dircolors --help && ls --color ) &> /dev/null; then
|
||||||
|
# For some reason, the unixs machines need me to use $HOME instead of ~
|
||||||
|
# List files from highest priority to lowest. As soon as the loop finds one that works, it will exit.
|
||||||
|
export PROMPT_COMMAND='PS1="\\[\033[1;\`if [[ \$? = "0" ]]; then echo "32m\\]"; else echo "31m\\]"; fi\`☠ \\[\033[0m\]$PS0"'
|
||||||
|
for POSSIBLE_DIR_COLORS in "$HOME/.dir_colors" "/etc/DIR_COLORS"; do
|
||||||
|
[[ -f "$POSSIBLE_DIR_COLORS" ]] && [[ -r "$POSSIBLE_DIR_COLORS" ]] && eval `dircolors -b "$POSSIBLE_DIR_COLORS"` && break
|
||||||
|
done
|
||||||
|
|
||||||
|
alias ls="ls --color=auto"
|
||||||
|
alias ll="ls --color=auto -l"
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias fgrep='fgrep --color=auto'
|
||||||
|
alias egrep='egrep --color=auto'
|
||||||
|
else
|
||||||
|
# No color, so put a slash at the end of directory names, etc. to differentiate.
|
||||||
|
alias ll="ls -lF"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Alias definitions.
|
||||||
|
if [ -f ~/.bash_aliases ]; then
|
||||||
|
. ~/.bash_aliases
|
||||||
|
fi
|
||||||
|
alias cp="cp -i"
|
||||||
|
|
||||||
|
# enable programmable completion features (you don't need to enable
|
||||||
|
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||||
|
# sources /etc/bash.bashrc).
|
||||||
|
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
|
||||||
|
# . /etc/bash_completion
|
||||||
|
#fi
|
||||||
|
|
||||||
|
# Set $TERM for libvte terminals that set $TERM wrong (like gnome-terminal)
|
||||||
|
{ [ "_$TERM" = "_xterm" ] && type ldd && type grep && type tput && [ -L "/proc/$PPID/exe" ] && {
|
||||||
|
if ldd /proc/$PPID/exe | grep libvte; then
|
||||||
|
if [ "`tput -Txterm-256color colors`" = "256" ]; then
|
||||||
|
TERM=xterm-256color
|
||||||
|
elif [ "`tput -Txterm-256color colors`" = "256" ]; then
|
||||||
|
TERM=xterm-256color
|
||||||
|
elif tput -T xterm; then
|
||||||
|
TERM=xterm
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
} >/dev/null 2>/dev/null
|
||||||
|
|
||||||
|
|
||||||
|
export PYTHONSTARTUP=~/.pythonrc.py
|
||||||
|
|
||||||
|
parse_git_branch ()
|
||||||
|
{
|
||||||
|
git name-rev HEAD 2> /dev/null | sed 's#HEAD\ \(.*\)#(git::\1)#'
|
||||||
|
}
|
||||||
|
#parse_svn_branch() {
|
||||||
|
# parse_svn_url | sed -e 's#^'"$(parse_svn_repository_root)"'##g' | awk -F / #'{print "(svn::"$1 "/" $2 ")"}'
|
||||||
|
#}
|
||||||
|
#parse_svn_url() {
|
||||||
|
# svn info 2>/dev/null | sed -ne 's#^URL: ##p'
|
||||||
|
#}
|
||||||
|
#parse_svn_repository_root() {
|
||||||
|
# svn info 2>/dev/null | sed -ne 's#^Repository Root: ##p'
|
||||||
|
#}
|
||||||
|
|
||||||
|
export EDITOR="vim"
|
||||||
|
|
||||||
|
#setWindowTitle() {
|
||||||
|
# if [ ! -z "$TMUX" ];then
|
||||||
|
# echo -ne "\\033k$*\033\\"
|
||||||
|
# fi
|
||||||
|
# echo -ne "\e]2;$*\a"
|
||||||
|
#}
|
||||||
|
#updateWindowTitle() {
|
||||||
|
# setWindowTitle "${HOSTNAME%%.*}:${PWD/$HOME/~}"
|
||||||
|
#}
|
||||||
|
|
||||||
|
# Add git and svn branch names
|
||||||
|
PS0="$PS0 \\[\033[1;32m\]\$(parse_git_branch)\\[\033[0m\]\$ "
|
||||||
|
#if [ "$TERM " = "xterm " ]; then
|
||||||
|
# export PROMPT_COMMAND="$PROMPT_COMMAND&&updateWindowTitle"
|
||||||
|
#fi
|
||||||
|
#[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
|
||||||
|
export PATH=$PATH:"/media/Data/code/personal-scripts/"
|
||||||
|
export CDPATH=$CDPATH:"/media/Data/"
|
||||||
|
|
||||||
|
# TMUX
|
||||||
|
if which tmux 2>&1 >/dev/null; then
|
||||||
|
# if no session is started, start a new session
|
||||||
|
test -z ${TMUX} && tmux attach
|
||||||
|
# when quitting tmux, try to attach
|
||||||
|
if test -z ${TMUX}; then
|
||||||
|
exit;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
|
34
make.sh
Normal file
34
make.sh
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
############################
|
||||||
|
# .make.sh
|
||||||
|
# This script creates symlinks from the home directory to any desired dotfiles in ~/dotfiles
|
||||||
|
############################
|
||||||
|
|
||||||
|
########## Variables
|
||||||
|
|
||||||
|
dir=$(pwd) # dotfiles directory
|
||||||
|
|
||||||
|
olddir=~/dotfiles$(date +%Y-%m-%d_%H:%M:%S) # old dotfiles backup directory
|
||||||
|
files=($(ls --ignore="not_dots" --ignore="README.md" --ignore="make.sh" $dir)) # list of files/folders to symlink in homedir
|
||||||
|
|
||||||
|
##########
|
||||||
|
|
||||||
|
# create dotfiles_old in homedir
|
||||||
|
echo "Creating $olddir for backup: of any existing dotfiles in ~"
|
||||||
|
mkdir -p $olddir
|
||||||
|
echo "...done"
|
||||||
|
|
||||||
|
# change to the dotfiles directory
|
||||||
|
echo "Changing to the $dir directory"
|
||||||
|
cd $dir
|
||||||
|
echo "...done"
|
||||||
|
|
||||||
|
# move any existing dotfiles in homedir to dotfiles_old directory, then create symlinks
|
||||||
|
for file in $files; do
|
||||||
|
echo "Moving any existing dotfiles from ~ to $olddir"
|
||||||
|
mv ~/.$file $olddir
|
||||||
|
echo "Creating symlink to $file in home directory."
|
||||||
|
ln -s $dir/$file ~/.$file
|
||||||
|
done
|
||||||
|
|
||||||
|
|
39
not_dots/grub
Normal file
39
not_dots/grub
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# /etc/default/grub
|
||||||
|
# If you change this file, run 'update-grub' afterwards to update
|
||||||
|
# /boot/grub/grub.cfg.
|
||||||
|
# For full documentation of the options in this file, see:
|
||||||
|
# info -f grub -n 'Simple configuration'
|
||||||
|
|
||||||
|
GRUB_DEFAULT=0
|
||||||
|
#GRUB_HIDDEN_TIMEOUT=0
|
||||||
|
GRUB_HIDDEN_TIMEOUT_QUIET=true
|
||||||
|
GRUB_TIMEOUT=10
|
||||||
|
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
|
||||||
|
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 i915.semaphores=1 acpi_backlight=vendor"
|
||||||
|
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 i915.semaphores=1 acpi_osi=Linux acpi_backlight=vendor"
|
||||||
|
GRUB_CMDLINE_LINUX=""
|
||||||
|
|
||||||
|
#GRUB_GFXMODE=1024x768
|
||||||
|
#GRUB_GFXPAYLOAD_LINUX=1024x768
|
||||||
|
|
||||||
|
# Uncomment to enable BadRAM filtering, modify to suit your needs
|
||||||
|
# This works with Linux (no patch required) and with any kernel that obtains
|
||||||
|
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
|
||||||
|
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
|
||||||
|
|
||||||
|
# Uncomment to disable graphical terminal (grub-pc only)
|
||||||
|
#GRUB_TERMINAL=console
|
||||||
|
|
||||||
|
# The resolution used on graphical terminal
|
||||||
|
# note that you can use only modes which your graphic card supports via VBE
|
||||||
|
# you can see them in real GRUB with the command `vbeinfo'
|
||||||
|
#GRUB_GFXMODE=640x480
|
||||||
|
|
||||||
|
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
|
||||||
|
#GRUB_DISABLE_LINUX_UUID=true
|
||||||
|
|
||||||
|
# Uncomment to disable generation of recovery mode menu entries
|
||||||
|
#GRUB_DISABLE_RECOVERY="true"
|
||||||
|
|
||||||
|
# Uncomment to get a beep at grub start
|
||||||
|
#GRUB_INIT_TUNE="480 440 1"
|
26
profile
Normal file
26
profile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# ~/.profile: executed by the command interpreter for login shells.
|
||||||
|
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
|
||||||
|
# exists.
|
||||||
|
# see /usr/share/doc/bash/examples/startup-files for examples.
|
||||||
|
# the files are located in the bash-doc package.
|
||||||
|
|
||||||
|
# the default umask is set in /etc/profile; for setting the umask
|
||||||
|
# for ssh logins, install and configure the libpam-umask package.
|
||||||
|
#umask 022
|
||||||
|
|
||||||
|
# if running bash
|
||||||
|
if [ -n "$BASH_VERSION" ]; then
|
||||||
|
# include .bashrc if it exists
|
||||||
|
if [ -f "$HOME/.bashrc" ]; then
|
||||||
|
. "$HOME/.bashrc"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# set PATH so it includes user's private bin if it exists
|
||||||
|
if [ -d "$HOME/bin" ] ; then
|
||||||
|
PATH="$HOME/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f $HOME/.Xmodmap ]; then
|
||||||
|
/usr/bin/xmodmap $HOME/.Xmodmap
|
||||||
|
fi
|
88
tmux.conf
Normal file
88
tmux.conf
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
#Bindings
|
||||||
|
set -g prefix C-a
|
||||||
|
unbind C-b
|
||||||
|
|
||||||
|
# C-a a should send ctrl-a to the underlying shell (move to start of line)
|
||||||
|
bind-key a send-prefix
|
||||||
|
|
||||||
|
# C-a C-a
|
||||||
|
bind-key C-a last-window
|
||||||
|
|
||||||
|
unbind %
|
||||||
|
# use "v" and "s" to do vertical/horizontal splits, like vim
|
||||||
|
bind s split-window -v
|
||||||
|
bind v split-window -h
|
||||||
|
|
||||||
|
# use the vim motion keys to move between panes
|
||||||
|
bind h select-pane -L
|
||||||
|
bind j select-pane -D
|
||||||
|
bind k select-pane -U
|
||||||
|
bind l select-pane -R
|
||||||
|
|
||||||
|
|
||||||
|
bind-key -t vi-copy 'v' begin-selection
|
||||||
|
bind-key -t vi-copy 'y' copy-selection
|
||||||
|
|
||||||
|
# use vim motion keys while in copy mode
|
||||||
|
setw -g mode-keys vi
|
||||||
|
# use the vim resize keys.
|
||||||
|
# the number at the end is how much the pane will be resized,
|
||||||
|
# and 1 is fairly small -- you might want to tweak this.
|
||||||
|
bind - resize-pane -D 1
|
||||||
|
bind + resize-pane -U 1
|
||||||
|
bind < resize-pane -L 1
|
||||||
|
bind > resize-pane -R 1
|
||||||
|
|
||||||
|
|
||||||
|
# Set status bar
|
||||||
|
set -g status-bg black
|
||||||
|
set -g status-fg white
|
||||||
|
set -g status-left '#[fg=green]#H'
|
||||||
|
set -g status-right '#[fg=yellow]#(uptime | sed -e "s/load average/load/g\;s/ / /g")' # | cut -d "," -f 2-)'
|
||||||
|
set -g status-right-length 50
|
||||||
|
|
||||||
|
# Highlight active window
|
||||||
|
set-window-option -g window-status-current-bg red
|
||||||
|
|
||||||
|
# Set window notifications
|
||||||
|
setw -g monitor-activity on
|
||||||
|
set -g visual-activity on
|
||||||
|
|
||||||
|
# Automatically set window title
|
||||||
|
setw -g automatic-rename on
|
||||||
|
|
||||||
|
# Mouse and panes
|
||||||
|
setw -g mode-mouse on
|
||||||
|
set-option -g mouse-select-pane on
|
||||||
|
|
||||||
|
|
||||||
|
# Start new-session as default
|
||||||
|
new-session
|
||||||
|
|
||||||
|
# resize only if actively looking
|
||||||
|
setw -g aggressive-resize on
|
||||||
|
|
||||||
|
set -g history-limit 100000
|
||||||
|
|
||||||
|
#Scrolling
|
||||||
|
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
|
||||||
|
#set-window-option -g xterm-keys on
|
||||||
|
|
||||||
|
##CLIPBOARD selection integration
|
||||||
|
##Requires prefix key before the command key
|
||||||
|
#Copy tmux paste buffer to CLIPBOARD
|
||||||
|
bind C-c run "tmux show-buffer | xclip -i -selection clipboard"
|
||||||
|
#Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer
|
||||||
|
bind C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
|
||||||
|
|
||||||
|
# set vi keys
|
||||||
|
setw -g mode-keys vi
|
||||||
|
unbind [
|
||||||
|
bind Escape copy-mode
|
||||||
|
unbind p
|
||||||
|
bind p paste-buffer
|
||||||
|
bind-key -t vi-copy 'v' begin-selection
|
||||||
|
bind-key -t vi-copy 'y' copy-selection
|
||||||
|
unbind C-s
|
||||||
|
# copy tmux buffer to clipboard
|
||||||
|
#bind-key Y save-buffer ~/.tmux/buffer \; run-shell "xsel -i -p <~/.tmux/buffer && rm ~/.tmux/buffer"
|
7
vim/.netrwhist
Normal file
7
vim/.netrwhist
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
let g:netrw_dirhistmax =10
|
||||||
|
let g:netrw_dirhist_cnt =5
|
||||||
|
let g:netrw_dirhist_1='/media/Data/code/web4.0/hookio/hooks/test'
|
||||||
|
let g:netrw_dirhist_2='/media/Data/code/web4.0/hookio/hooks'
|
||||||
|
let g:netrw_dirhist_3='/media/Data/code/web4.0/hookio/hooks/test'
|
||||||
|
let g:netrw_dirhist_4='/media/Data/code/web4.0/hookio/hooks/hook.io-mailer'
|
||||||
|
let g:netrw_dirhist_5='/home/balkian/.config/google-googletalkplugin'
|
1
vim/bundle/LaTeX-Box
Submodule
1
vim/bundle/LaTeX-Box
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit aa152c49e12e5bacc4add2d3fa34bfa39b58ef5d
|
1
vim/bundle/SpellCheck
Submodule
1
vim/bundle/SpellCheck
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 95d3226236a0270d095877d588be246e91fd0897
|
1
vim/bundle/nerdtree
Submodule
1
vim/bundle/nerdtree
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit a1433c485eb254838c1db52e087d5ec4d1e77cfd
|
1
vim/bundle/snipmate-snippets
Submodule
1
vim/bundle/snipmate-snippets
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit b1c30e017ef5c703e36ca7a79e102507a042b5a5
|
1
vim/bundle/taglist.vim
Submodule
1
vim/bundle/taglist.vim
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 53041fbc45398a9af631a20657e109707a455339
|
1
vim/bundle/tlib_vim
Submodule
1
vim/bundle/tlib_vim
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 992c21804d003faffcaec0014a5f61e2ce76f57e
|
1
vim/bundle/vim-addon-mw-utils
Submodule
1
vim/bundle/vim-addon-mw-utils
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit a1b611ab22745f8b877d8de4f09985a0ddf3acfd
|
1
vim/bundle/vim-fugitive
Submodule
1
vim/bundle/vim-fugitive
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 31dead6d8088dc7073d0e2645517ebc68d6de06b
|
1
vim/bundle/vim-snipmate
Submodule
1
vim/bundle/vim-snipmate
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 220347a0ddfa6ad4365b2f307518d2b33d080411
|
1
vim/bundle/vundle
Submodule
1
vim/bundle/vundle
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 8e9b933ed4a851ef1413bbd03560553c4339fb2f
|
213
vim/colors/ir_black.vim
Normal file
213
vim/colors/ir_black.vim
Normal file
@ -0,0 +1,213 @@
|
|||||||
|
" ir_black color scheme
|
||||||
|
" More at: http://blog.infinitered.com
|
||||||
|
|
||||||
|
|
||||||
|
" ********************************************************************************
|
||||||
|
" Standard colors used in all ir_black themes:
|
||||||
|
" Note, x:x:x are RGB values
|
||||||
|
"
|
||||||
|
" normal: #f6f3e8
|
||||||
|
"
|
||||||
|
" string: #A8FF60 168:255:96
|
||||||
|
" string inner (punc, code, etc): #00A0A0 0:160:160
|
||||||
|
" number: #FF73FD 255:115:253
|
||||||
|
" comments: #7C7C7C 124:124:124
|
||||||
|
" keywords: #96CBFE 150:203:254
|
||||||
|
" operators: white
|
||||||
|
" class: #FFFFB6 255:255:182
|
||||||
|
" method declaration name: #FFD2A7 255:210:167
|
||||||
|
" regular expression: #E9C062 233:192:98
|
||||||
|
" regexp alternate: #FF8000 255:128:0
|
||||||
|
" regexp alternate 2: #B18A3D 177:138:61
|
||||||
|
" variable: #C6C5FE 198:197:254
|
||||||
|
"
|
||||||
|
" Misc colors:
|
||||||
|
" red color (used for whatever): #FF6C60 255:108:96
|
||||||
|
" light red: #FFB6B0 255:182:176
|
||||||
|
"
|
||||||
|
" brown: #E18964 good for special
|
||||||
|
"
|
||||||
|
" lightpurpleish: #FFCCFF
|
||||||
|
"
|
||||||
|
" Interface colors:
|
||||||
|
" background color: black
|
||||||
|
" cursor (where underscore is used): #FFA560 255:165:96
|
||||||
|
" cursor (where block is used): white
|
||||||
|
" visual selection: #1D1E2C
|
||||||
|
" current line: #151515 21:21:21
|
||||||
|
" search selection: #07281C 7:40:28
|
||||||
|
" line number: #3D3D3D 61:61:61
|
||||||
|
|
||||||
|
|
||||||
|
" ********************************************************************************
|
||||||
|
" The following are the preferred 16 colors for your terminal
|
||||||
|
" Colors Bright Colors
|
||||||
|
" Black #4E4E4E #7C7C7C
|
||||||
|
" Red #FF6C60 #FFB6B0
|
||||||
|
" Green #A8FF60 #CEFFAB
|
||||||
|
" Yellow #FFFFB6 #FFFFCB
|
||||||
|
" Blue #96CBFE #B5DCFE
|
||||||
|
" Magenta #FF73FD #FF9CFE
|
||||||
|
" Cyan #C6C5FE #DFDFFE
|
||||||
|
" White #EEEEEE #FFFFFF
|
||||||
|
|
||||||
|
|
||||||
|
" ********************************************************************************
|
||||||
|
set background=dark
|
||||||
|
hi clear
|
||||||
|
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let colors_name = "ir_black"
|
||||||
|
|
||||||
|
|
||||||
|
"hi Example guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
|
||||||
|
" General colors
|
||||||
|
hi Normal guifg=#f6f3e8 guibg=black gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi NonText guifg=#070707 guibg=black gui=NONE ctermfg=black ctermbg=NONE cterm=NONE
|
||||||
|
|
||||||
|
hi Cursor guifg=black guibg=white gui=NONE ctermfg=black ctermbg=white cterm=reverse
|
||||||
|
hi LineNr guifg=#3D3D3D guibg=black gui=NONE ctermfg=darkgray ctermbg=NONE cterm=NONE
|
||||||
|
|
||||||
|
hi VertSplit guifg=#202020 guibg=#202020 gui=NONE ctermfg=darkgray ctermbg=darkgray cterm=NONE
|
||||||
|
hi StatusLine guifg=#CCCCCC guibg=#202020 gui=italic ctermfg=white ctermbg=darkgray cterm=NONE
|
||||||
|
hi StatusLineNC guifg=black guibg=#202020 gui=NONE ctermfg=blue ctermbg=darkgray cterm=NONE
|
||||||
|
|
||||||
|
hi Folded guifg=#a0a8b0 guibg=#384048 gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi Title guifg=#f6f3e8 guibg=NONE gui=bold ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi Visual guifg=NONE guibg=#262D51 gui=NONE ctermfg=NONE ctermbg=NONE cterm=REVERSE
|
||||||
|
|
||||||
|
hi SpecialKey guifg=#808080 guibg=#343434 gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
|
||||||
|
hi WildMenu guifg=green guibg=yellow gui=NONE ctermfg=black ctermbg=yellow cterm=NONE
|
||||||
|
hi PmenuSbar guifg=black guibg=white gui=NONE ctermfg=black ctermbg=white cterm=NONE
|
||||||
|
"hi Ignore guifg=gray guibg=black gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
|
||||||
|
hi Error guifg=NONE guibg=NONE gui=undercurl ctermfg=white ctermbg=red cterm=NONE guisp=#FF6C60 " undercurl color
|
||||||
|
hi ErrorMsg guifg=white guibg=#FF6C60 gui=BOLD ctermfg=white ctermbg=red cterm=NONE
|
||||||
|
hi WarningMsg guifg=white guibg=#FF6C60 gui=BOLD ctermfg=white ctermbg=red cterm=NONE
|
||||||
|
hi LongLineWarning guifg=NONE guibg=#371F1C gui=underline ctermfg=NONE ctermbg=NONE cterm=underline
|
||||||
|
|
||||||
|
" Message displayed in lower left, such as --INSERT--
|
||||||
|
hi ModeMsg guifg=black guibg=#C6C5FE gui=BOLD ctermfg=black ctermbg=cyan cterm=BOLD
|
||||||
|
|
||||||
|
if version >= 700 " Vim 7.x specific colors
|
||||||
|
hi CursorLine guifg=NONE guibg=#121212 gui=NONE ctermfg=NONE ctermbg=NONE cterm=BOLD
|
||||||
|
hi CursorColumn guifg=NONE guibg=#121212 gui=NONE ctermfg=NONE ctermbg=NONE cterm=BOLD
|
||||||
|
hi MatchParen guifg=#f6f3e8 guibg=#857b6f gui=BOLD ctermfg=white ctermbg=darkgray cterm=NONE
|
||||||
|
hi Pmenu guifg=#f6f3e8 guibg=#444444 gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi PmenuSel guifg=#000000 guibg=#cae682 gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi Search guifg=NONE guibg=#2F2F00 gui=underline ctermfg=NONE ctermbg=NONE cterm=underline
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Syntax highlighting
|
||||||
|
hi Comment guifg=#7C7C7C guibg=NONE gui=NONE ctermfg=darkgray ctermbg=NONE cterm=NONE
|
||||||
|
hi String guifg=#A8FF60 guibg=NONE gui=NONE ctermfg=green ctermbg=NONE cterm=NONE
|
||||||
|
hi Number guifg=#FF73FD guibg=NONE gui=NONE ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||||
|
|
||||||
|
hi Keyword guifg=#96CBFE guibg=NONE gui=NONE ctermfg=blue ctermbg=NONE cterm=NONE
|
||||||
|
hi PreProc guifg=#96CBFE guibg=NONE gui=NONE ctermfg=blue ctermbg=NONE cterm=NONE
|
||||||
|
hi Conditional guifg=#6699CC guibg=NONE gui=NONE ctermfg=blue ctermbg=NONE cterm=NONE " if else end
|
||||||
|
|
||||||
|
hi Todo guifg=#8f8f8f guibg=NONE gui=NONE ctermfg=red ctermbg=NONE cterm=NONE
|
||||||
|
hi Constant guifg=#99CC99 guibg=NONE gui=NONE ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||||
|
|
||||||
|
hi Identifier guifg=#C6C5FE guibg=NONE gui=NONE ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||||
|
hi Function guifg=#FFD2A7 guibg=NONE gui=NONE ctermfg=brown ctermbg=NONE cterm=NONE
|
||||||
|
hi Type guifg=#FFFFB6 guibg=NONE gui=NONE ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||||
|
hi Statement guifg=#6699CC guibg=NONE gui=NONE ctermfg=lightblue ctermbg=NONE cterm=NONE
|
||||||
|
|
||||||
|
hi Special guifg=#E18964 guibg=NONE gui=NONE ctermfg=white ctermbg=NONE cterm=NONE
|
||||||
|
hi Delimiter guifg=#00A0A0 guibg=NONE gui=NONE ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||||
|
hi Operator guifg=white guibg=NONE gui=NONE ctermfg=white ctermbg=NONE cterm=NONE
|
||||||
|
|
||||||
|
hi link Character Constant
|
||||||
|
hi link Boolean Constant
|
||||||
|
hi link Float Number
|
||||||
|
hi link Repeat Statement
|
||||||
|
hi link Label Statement
|
||||||
|
hi link Exception Statement
|
||||||
|
hi link Include PreProc
|
||||||
|
hi link Define PreProc
|
||||||
|
hi link Macro PreProc
|
||||||
|
hi link PreCondit PreProc
|
||||||
|
hi link StorageClass Type
|
||||||
|
hi link Structure Type
|
||||||
|
hi link Typedef Type
|
||||||
|
hi link Tag Special
|
||||||
|
hi link SpecialChar Special
|
||||||
|
hi link SpecialComment Special
|
||||||
|
hi link Debug Special
|
||||||
|
|
||||||
|
|
||||||
|
" Special for Ruby
|
||||||
|
hi rubyRegexp guifg=#B18A3D guibg=NONE gui=NONE ctermfg=brown ctermbg=NONE cterm=NONE
|
||||||
|
hi rubyRegexpDelimiter guifg=#FF8000 guibg=NONE gui=NONE ctermfg=brown ctermbg=NONE cterm=NONE
|
||||||
|
hi rubyEscape guifg=white guibg=NONE gui=NONE ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||||
|
hi rubyInterpolationDelimiter guifg=#00A0A0 guibg=NONE gui=NONE ctermfg=blue ctermbg=NONE cterm=NONE
|
||||||
|
hi rubyControl guifg=#6699CC guibg=NONE gui=NONE ctermfg=blue ctermbg=NONE cterm=NONE "and break, etc
|
||||||
|
"hi rubyGlobalVariable guifg=#FFCCFF guibg=NONE gui=NONE ctermfg=lightblue ctermbg=NONE cterm=NONE "yield
|
||||||
|
hi rubyStringDelimiter guifg=#336633 guibg=NONE gui=NONE ctermfg=lightgreen ctermbg=NONE cterm=NONE
|
||||||
|
"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
|
||||||
|
|
||||||
|
|
||||||
|
" Special for Java
|
||||||
|
" hi link javaClassDecl Type
|
||||||
|
hi link javaScopeDecl Identifier
|
||||||
|
hi link javaCommentTitle javaDocSeeTag
|
||||||
|
hi link javaDocTags javaDocSeeTag
|
||||||
|
hi link javaDocParam javaDocSeeTag
|
||||||
|
hi link javaDocSeeTagParam javaDocSeeTag
|
||||||
|
|
||||||
|
hi javaDocSeeTag guifg=#CCCCCC guibg=NONE gui=NONE ctermfg=darkgray ctermbg=NONE cterm=NONE
|
||||||
|
hi javaDocSeeTag guifg=#CCCCCC guibg=NONE gui=NONE ctermfg=darkgray ctermbg=NONE cterm=NONE
|
||||||
|
"hi javaClassDecl guifg=#CCFFCC guibg=NONE gui=NONE ctermfg=white ctermbg=NONE cterm=NONE
|
||||||
|
|
||||||
|
|
||||||
|
" Special for XML
|
||||||
|
hi link xmlTag Keyword
|
||||||
|
hi link xmlTagName Conditional
|
||||||
|
hi link xmlEndTag Identifier
|
||||||
|
|
||||||
|
|
||||||
|
" Special for HTML
|
||||||
|
hi link htmlTag Keyword
|
||||||
|
hi link htmlTagName Conditional
|
||||||
|
hi link htmlEndTag Identifier
|
||||||
|
|
||||||
|
|
||||||
|
" Special for Javascript
|
||||||
|
hi link javaScriptNumber Number
|
||||||
|
|
||||||
|
|
||||||
|
" Special for Python
|
||||||
|
"hi link pythonEscape Keyword
|
||||||
|
|
||||||
|
|
||||||
|
" Special for CSharp
|
||||||
|
hi link csXmlTag Keyword
|
||||||
|
|
||||||
|
|
||||||
|
" Special for PHP
|
80
vim/colors/matrix.vim
Normal file
80
vim/colors/matrix.vim
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
" vim:set ts=8 sts=2 sw=2 tw=0:
|
||||||
|
"
|
||||||
|
" matrix.vim - MATRIX like colorscheme.
|
||||||
|
"
|
||||||
|
" Maintainer: MURAOKA Taro <koron@tka.att.ne.jp>
|
||||||
|
" Last Change: 10-Jun-2003.
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
let g:colors_name = 'matrix'
|
||||||
|
|
||||||
|
" the character under the cursor
|
||||||
|
hi Cursor guifg=#226622 guibg=#55ff55
|
||||||
|
hi lCursor guifg=#226622 guibg=#55ff55
|
||||||
|
" like Cursor, but used when in IME mode |CursorIM|
|
||||||
|
hi CursorIM guifg=#226622 guibg=#55ff55
|
||||||
|
" directory names (and other special names in listings)
|
||||||
|
hi Directory guifg=#55ff55 guibg=#000000
|
||||||
|
" diff mode: Added line |diff.txt|
|
||||||
|
hi DiffAdd guifg=#55ff55 guibg=#226622 gui=none
|
||||||
|
" diff mode: Changed line |diff.txt|
|
||||||
|
hi DiffChange guifg=#55ff55 guibg=#226622 gui=none
|
||||||
|
" diff mode: Deleted line |diff.txt|
|
||||||
|
hi DiffDelete guifg=#113311 guibg=#113311 gui=none
|
||||||
|
" diff mode: Changed text within a changed line |diff.txt|
|
||||||
|
hi DiffText guifg=#55ff55 guibg=#339933 gui=bold
|
||||||
|
" error messages on the command line
|
||||||
|
hi ErrorMsg guifg=#55ff55 guibg=#339933
|
||||||
|
" the column separating vertically split windows
|
||||||
|
hi VertSplit guifg=#339933 guibg=#339933
|
||||||
|
" line used for closed folds
|
||||||
|
hi Folded guifg=#44cc44 guibg=#113311
|
||||||
|
" 'foldcolumn'
|
||||||
|
hi FoldColumn guifg=#44cc44 guibg=#226622
|
||||||
|
" 'incsearch' highlighting; also used for the text replaced with
|
||||||
|
hi IncSearch guifg=#226622 guibg=#55ff55 gui=none
|
||||||
|
" line number for ":number" and ":#" commands, and when 'number'
|
||||||
|
hi LineNr guifg=#44cc44 guibg=#000000
|
||||||
|
" 'showmode' message (e.g., "-- INSERT --")
|
||||||
|
hi ModeMsg guifg=#44cc44 guibg=#000000
|
||||||
|
" |more-prompt|
|
||||||
|
hi MoreMsg guifg=#44cc44 guibg=#000000
|
||||||
|
" '~' and '@' at the end of the window, characters from
|
||||||
|
hi NonText guifg=#44cc44 guibg=#113311
|
||||||
|
" normal text
|
||||||
|
hi Normal guifg=#44cc44 guibg=#000000
|
||||||
|
" |hit-enter| prompt and yes/no questions
|
||||||
|
hi Question guifg=#44cc44 guibg=#000000
|
||||||
|
" Last search pattern highlighting (see 'hlsearch').
|
||||||
|
hi Search guifg=#113311 guibg=#44cc44 gui=none
|
||||||
|
" Meta and special keys listed with ":map", also for text used
|
||||||
|
hi SpecialKey guifg=#44cc44 guibg=#000000
|
||||||
|
" status line of current window
|
||||||
|
hi StatusLine guifg=#55ff55 guibg=#339933 gui=none
|
||||||
|
" status lines of not-current windows
|
||||||
|
hi StatusLineNC guifg=#113311 guibg=#339933 gui=none
|
||||||
|
" titles for output from ":set all", ":autocmd" etc.
|
||||||
|
hi Title guifg=#55ff55 guibg=#113311 gui=bold
|
||||||
|
" Visual mode selection
|
||||||
|
hi Visual guifg=#55ff55 guibg=#339933 gui=none
|
||||||
|
" Visual mode selection when vim is "Not Owning the Selection".
|
||||||
|
hi VisualNOS guifg=#44cc44 guibg=#000000
|
||||||
|
" warning messages
|
||||||
|
hi WarningMsg guifg=#55ff55 guibg=#000000
|
||||||
|
" current match in 'wildmenu' completion
|
||||||
|
hi WildMenu guifg=#226622 guibg=#55ff55
|
||||||
|
|
||||||
|
hi Comment guifg=#226622 guibg=#000000
|
||||||
|
hi Constant guifg=#55ff55 guibg=#226622
|
||||||
|
hi Special guifg=#44cc44 guibg=#226622
|
||||||
|
hi Identifier guifg=#55ff55 guibg=#000000
|
||||||
|
hi Statement guifg=#55ff55 guibg=#000000 gui=bold
|
||||||
|
hi PreProc guifg=#339933 guibg=#000000
|
||||||
|
hi Type guifg=#55ff55 guibg=#000000 gui=bold
|
||||||
|
hi Underlined guifg=#55ff55 guibg=#000000 gui=underline
|
||||||
|
hi Error guifg=#55ff55 guibg=#339933
|
||||||
|
hi Todo guifg=#113311 guibg=#44cc44 gui=none
|
70
vim/colors/reloaded.vim
Normal file
70
vim/colors/reloaded.vim
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
" Vim color file
|
||||||
|
" Maintainer: connorberry@yahoo.com
|
||||||
|
" Last Change:
|
||||||
|
" URL: www.narwhale.org
|
||||||
|
|
||||||
|
set background=dark "or light
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
let g:colors_name="reloaded"
|
||||||
|
|
||||||
|
hi Normal ctermfg=Green ctermbg=Black
|
||||||
|
hi Normal guifg=Green guibg=Black
|
||||||
|
hi NonText ctermfg=DarkGreen ctermbg=Black
|
||||||
|
hi NonText guifg=DarkGreen guibg=Black
|
||||||
|
|
||||||
|
hi Statement ctermfg=Green ctermbg=Black
|
||||||
|
hi Statement guifg=Green guibg=Black
|
||||||
|
hi Comment ctermfg=DarkGreen ctermbg=Black cterm=bold term=bold
|
||||||
|
hi Comment guifg=DarkGreen guibg=Black gui=bold term=bold
|
||||||
|
hi Constant ctermfg=Green ctermbg=DarkGreen
|
||||||
|
hi Constant guifg=Green guibg=DarkGreen
|
||||||
|
hi Identifier ctermfg=Green ctermbg=Black
|
||||||
|
hi Identifier guifg=Green guibg=Black
|
||||||
|
hi Type ctermfg=Green ctermbg=Black
|
||||||
|
hi Type guifg=Green guibg=Black
|
||||||
|
hi String ctermfg=Green ctermbg=DarkGreen
|
||||||
|
hi String guifg=Green guibg=DarkGreen
|
||||||
|
hi Boolean ctermfg=Green ctermbg=DarkGreen
|
||||||
|
hi Boolean guifg=Green guibg=DarkGreen
|
||||||
|
hi Number ctermfg=Green ctermbg=DarkGreen
|
||||||
|
hi Number guifg=Green guibg=DarkGreen
|
||||||
|
hi Folded ctermfg=DarkYellow ctermbg=Black cterm=underline term=none
|
||||||
|
hi Folded guifg=DarkYellow guibg=Black gui=underline term=none
|
||||||
|
hi Special ctermfg=Black ctermbg=DarkGreen
|
||||||
|
hi Special guifg=Black guibg=DarkGreen
|
||||||
|
hi PreProc ctermfg=DarkGreen ctermbg=Black cterm=bold term=bold
|
||||||
|
hi PreProc guifg=DarkGreen guibg=Black gui=bold term=bold
|
||||||
|
hi Scrollbar ctermfg=DarkYellow ctermbg=Black
|
||||||
|
hi Scrollbar guifg=DarkYellow guibg=Black
|
||||||
|
hi Cursor ctermfg=Black ctermbg=Green
|
||||||
|
hi Cursor guifg=Black guibg=Green
|
||||||
|
hi ErrorMsg ctermfg=Red ctermbg=Black cterm=bold term=bold
|
||||||
|
hi ErrorMsg guifg=Red guibg=Black gui=bold term=bold
|
||||||
|
hi WarningMsg ctermfg=Yellow ctermbg=Black
|
||||||
|
hi WarningMsg guifg=Yellow guibg=Black
|
||||||
|
hi VertSplit ctermfg=White ctermbg=Black
|
||||||
|
hi VertSplit guifg=White guibg=Black
|
||||||
|
hi Directory ctermfg=DarkGreen ctermbg=Black
|
||||||
|
hi Directory guifg=DarkGreen guibg=Black
|
||||||
|
hi Visual ctermfg=White ctermbg=DarkGray cterm=underline term=none
|
||||||
|
hi Visual guifg=White guibg=DarkGray gui=underline term=none
|
||||||
|
hi Title ctermfg=White ctermbg=DarkBlue
|
||||||
|
hi Title guifg=White guibg=DarkBlue
|
||||||
|
|
||||||
|
hi StatusLine term=bold cterm=bold,underline ctermfg=Green ctermbg=Black
|
||||||
|
hi StatusLine term=bold gui=bold,underline guifg=Green guibg=Black
|
||||||
|
hi StatusLineNC term=bold cterm=bold,underline ctermfg=Gray ctermbg=Black
|
||||||
|
hi StatusLineNC term=bold gui=bold,underline guifg=Gray guibg=Black
|
||||||
|
hi LineNr term=bold cterm=bold ctermfg=Black ctermbg=DarkGreen
|
||||||
|
hi LineNr term=bold gui=bold guifg=Black guibg=DarkGreen
|
||||||
|
hi SpecialKey guifg=DarkGreen guibg=Black
|
||||||
|
hi SpecialKey ctermfg=DarkGreen ctermbg=Black
|
||||||
|
|
||||||
|
hi cursorline guifg=Black guibg=DarkGreen
|
||||||
|
hi cursorline ctermfg=Black ctermbg=DarkGreen
|
||||||
|
hi cursorcolumn guifg=Black guibg=Green
|
||||||
|
hi cursorcolumn ctermfg=Black ctermbg=Green
|
||||||
|
|
75
vim/colors/revolutions.vim
Normal file
75
vim/colors/revolutions.vim
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
" MATRIX-REVOLUTIONS colorscheme
|
||||||
|
" Author: Christian MICHON
|
||||||
|
" Version: 1.0
|
||||||
|
" Last Change: 23 Jun 2004
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let g:colors_name = 'revolutions'
|
||||||
|
|
||||||
|
hi Boolean guifg=#e6fff3 guibg=#43705a gui=none
|
||||||
|
hi Character guifg=#e6fff3 guibg=#43705a gui=none
|
||||||
|
hi Comment guifg=#43705a guibg=#000000 gui=underline
|
||||||
|
hi Conditional guifg=#e6fff3 guibg=#000000 gui=bold
|
||||||
|
hi Constant guifg=#e6fff3 guibg=#43705a gui=none
|
||||||
|
hi Cursor guifg=#43705a guibg=#e6fff3 gui=none
|
||||||
|
hi Debug guifg=#61a181 guibg=#000000 gui=none
|
||||||
|
hi Define guifg=#e6fff3 guibg=#000000 gui=none
|
||||||
|
hi Delimiter guifg=#61a181 guibg=#000000 gui=none
|
||||||
|
hi DiffAdd guifg=#e6fff3 guibg=#43705a gui=bold
|
||||||
|
hi DiffChange guifg=#e6fff3 guibg=#43705a gui=none
|
||||||
|
hi DiffDelete guifg=#e6fff3 guibg=#43705a gui=none
|
||||||
|
hi DiffText guifg=#000000 guibg=#e6fff3 gui=bold
|
||||||
|
hi Directory guifg=#e6fff3 guibg=#000000 gui=none
|
||||||
|
hi Error guifg=#e6fff3 guibg=#61a181 gui=bold
|
||||||
|
hi ErrorMsg guifg=#e6fff3 guibg=#61a181 gui=bold
|
||||||
|
hi Exception guifg=#e6fff3 guibg=#000000 gui=bold
|
||||||
|
hi Float guifg=#e6fff3 guibg=#43705a gui=none
|
||||||
|
hi FoldColumn guifg=#9bcfb5 guibg=#43705a gui=bold
|
||||||
|
hi Folded guifg=#9bcfb5 guibg=#43705a gui=bold
|
||||||
|
hi Function guifg=#e6fff3 guibg=#000000 gui=none
|
||||||
|
hi Identifier guifg=#e6fff3 guibg=#000000 gui=none
|
||||||
|
hi Ignore guifg=#000000 guibg=#000000 gui=none
|
||||||
|
hi Include guifg=#e6fff3 guibg=#000000 gui=none
|
||||||
|
hi IncSearch guifg=#1d3026 guibg=#61a181 gui=bold
|
||||||
|
hi Keyword guifg=#e6fff3 guibg=#000000 gui=bold
|
||||||
|
hi Label guifg=#e6fff3 guibg=#000000 gui=bold
|
||||||
|
hi lCursor guifg=#43705a guibg=#e6fff3 gui=none
|
||||||
|
hi LineNr guifg=#9bcfb5 guibg=#000000 gui=bold
|
||||||
|
hi Macro guifg=#e6fff3 guibg=#000000 gui=none
|
||||||
|
hi ModeMsg guifg=#9bcfb5 guibg=#000000 gui=bold
|
||||||
|
hi MoreMsg guifg=#9bcfb5 guibg=#000000 gui=bold
|
||||||
|
hi NonText guifg=#9bcfb5 guibg=#1d3026 gui=bold
|
||||||
|
hi Normal guifg=#9bcfb5 guibg=#000000 gui=none
|
||||||
|
hi Number guifg=#e6fff3 guibg=#000000 gui=none
|
||||||
|
hi Operator guifg=#e6fff3 guibg=#000000 gui=bold
|
||||||
|
hi PreCondit guifg=#e6fff3 guibg=#000000 gui=none
|
||||||
|
hi PreProc guifg=#61a181 guibg=#000000 gui=none
|
||||||
|
hi Question guifg=#9bcfb5 guibg=#000000 gui=bold
|
||||||
|
hi Repeat guifg=#e6fff3 guibg=#000000 gui=bold
|
||||||
|
hi Search guifg=#1d3026 guibg=#61a181 gui=bold
|
||||||
|
hi Special guifg=#61a181 guibg=#000000 gui=none
|
||||||
|
hi SpecialChar guifg=#61a181 guibg=#000000 gui=none
|
||||||
|
hi SpecialComment guifg=#61a181 guibg=#000000 gui=none
|
||||||
|
hi SpecialKey guifg=#9bcfb5 guibg=#000000 gui=none
|
||||||
|
hi Statement guifg=#e6fff3 guibg=#000000 gui=bold
|
||||||
|
hi StatusLine guifg=#e6fff3 guibg=#61a181 gui=bold
|
||||||
|
hi StatusLineNC guifg=#1d3026 guibg=#61a181 gui=bold
|
||||||
|
hi StorageClass guifg=#f070a0 guibg=#000000 gui=bold
|
||||||
|
hi String guifg=#e6fff3 guibg=#000000 gui=none
|
||||||
|
hi Structure guifg=#f070a0 guibg=#000000 gui=bold
|
||||||
|
hi Tag guifg=#61a181 guibg=#000000 gui=none
|
||||||
|
hi Title guifg=#e6fff3 guibg=#1d3026 gui=bold
|
||||||
|
hi Todo guifg=#1d3026 guibg=#9bcfb5 gui=none
|
||||||
|
hi Type guifg=#e6fff3 guibg=#000000 gui=bold
|
||||||
|
hi Typedef guifg=#f070a0 guibg=#000000 gui=bold
|
||||||
|
hi Underlined guifg=#e6fff3 guibg=#000000 gui=underline
|
||||||
|
hi VertSplit guifg=#61a181 guibg=#61a181 gui=none
|
||||||
|
hi Visual guifg=#e6fff3 guibg=#61a181 gui=none
|
||||||
|
hi VisualNOS guifg=#9bcfb5 guibg=#000000 gui=underline
|
||||||
|
hi WarningMsg guifg=#1d3026 guibg=#61a181 gui=bold
|
||||||
|
hi WildMenu guifg=#43705a guibg=#e6fff3 gui=none
|
1117
vim/colors/solarized.vim
Normal file
1117
vim/colors/solarized.vim
Normal file
File diff suppressed because it is too large
Load Diff
191
vim/colors/vividchalk.vim
Normal file
191
vim/colors/vividchalk.vim
Normal file
@ -0,0 +1,191 @@
|
|||||||
|
" Vim color scheme
|
||||||
|
" Name: vividchalk.vim
|
||||||
|
" Author: Tim Pope <vimNOSPAM@tpope.info>
|
||||||
|
" Version: 2.0
|
||||||
|
" GetLatestVimScripts: 1891 1 :AutoInstall: vividchalk.vim
|
||||||
|
|
||||||
|
" Based on the Vibrank Ink theme for TextMate
|
||||||
|
" Distributable under the same terms as Vim itself (see :help license)
|
||||||
|
|
||||||
|
if has("gui_running")
|
||||||
|
set background=dark
|
||||||
|
endif
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let colors_name = "vividchalk"
|
||||||
|
|
||||||
|
" First two functions adapted from inkpot.vim
|
||||||
|
|
||||||
|
" map a urxvt cube number to an xterm-256 cube number
|
||||||
|
fun! s:M(a)
|
||||||
|
return strpart("0245", a:a, 1) + 0
|
||||||
|
endfun
|
||||||
|
|
||||||
|
" map a urxvt colour to an xterm-256 colour
|
||||||
|
fun! s:X(a)
|
||||||
|
if &t_Co == 88
|
||||||
|
return a:a
|
||||||
|
else
|
||||||
|
if a:a == 8
|
||||||
|
return 237
|
||||||
|
elseif a:a < 16
|
||||||
|
return a:a
|
||||||
|
elseif a:a > 79
|
||||||
|
return 232 + (3 * (a:a - 80))
|
||||||
|
else
|
||||||
|
let l:b = a:a - 16
|
||||||
|
let l:x = l:b % 4
|
||||||
|
let l:y = (l:b / 4) % 4
|
||||||
|
let l:z = (l:b / 16)
|
||||||
|
return 16 + s:M(l:x) + (6 * s:M(l:y)) + (36 * s:M(l:z))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endfun
|
||||||
|
|
||||||
|
function! E2T(a)
|
||||||
|
return s:X(a:a)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:choose(mediocre,good)
|
||||||
|
if &t_Co != 88 && &t_Co != 256
|
||||||
|
return a:mediocre
|
||||||
|
else
|
||||||
|
return s:X(a:good)
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:hifg(group,guifg,first,second,...)
|
||||||
|
if a:0 && &t_Co == 256
|
||||||
|
let ctermfg = a:1
|
||||||
|
else
|
||||||
|
let ctermfg = s:choose(a:first,a:second)
|
||||||
|
endif
|
||||||
|
exe "highlight ".a:group." guifg=".a:guifg." ctermfg=".ctermfg
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:hibg(group,guibg,first,second)
|
||||||
|
let ctermbg = s:choose(a:first,a:second)
|
||||||
|
exe "highlight ".a:group." guibg=".a:guibg." ctermbg=".ctermbg
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
hi link railsMethod PreProc
|
||||||
|
hi link rubyDefine Keyword
|
||||||
|
hi link rubySymbol Constant
|
||||||
|
hi link rubyAccess rubyMethod
|
||||||
|
hi link rubyAttribute rubyMethod
|
||||||
|
hi link rubyEval rubyMethod
|
||||||
|
hi link rubyException rubyMethod
|
||||||
|
hi link rubyInclude rubyMethod
|
||||||
|
hi link rubyStringDelimiter rubyString
|
||||||
|
hi link rubyRegexp Regexp
|
||||||
|
hi link rubyRegexpDelimiter rubyRegexp
|
||||||
|
"hi link rubyConstant Variable
|
||||||
|
"hi link rubyGlobalVariable Variable
|
||||||
|
"hi link rubyClassVariable Variable
|
||||||
|
"hi link rubyInstanceVariable Variable
|
||||||
|
hi link javascriptRegexpString Regexp
|
||||||
|
hi link javascriptNumber Number
|
||||||
|
hi link javascriptNull Constant
|
||||||
|
highlight link diffAdded String
|
||||||
|
highlight link diffRemoved Statement
|
||||||
|
highlight link diffLine PreProc
|
||||||
|
highlight link diffSubname Comment
|
||||||
|
|
||||||
|
call s:hifg("Normal","#EEEEEE","White",87)
|
||||||
|
if &background == "light" || has("gui_running")
|
||||||
|
hi Normal guibg=Black ctermbg=Black
|
||||||
|
else
|
||||||
|
hi Normal guibg=Black ctermbg=NONE
|
||||||
|
endif
|
||||||
|
highlight StatusLine guifg=Black guibg=#aabbee gui=bold ctermfg=Black ctermbg=White cterm=bold
|
||||||
|
highlight StatusLineNC guifg=#444444 guibg=#aaaaaa gui=none ctermfg=Black ctermbg=Grey cterm=none
|
||||||
|
"if &t_Co == 256
|
||||||
|
"highlight StatusLine ctermbg=117
|
||||||
|
"else
|
||||||
|
"highlight StatusLine ctermbg=43
|
||||||
|
"endif
|
||||||
|
|
||||||
|
highlight Ignore ctermfg=Black
|
||||||
|
highlight WildMenu guifg=Black guibg=#ffff00 gui=bold ctermfg=Black ctermbg=Yellow cterm=bold
|
||||||
|
highlight Cursor guifg=Black guibg=White ctermfg=Black ctermbg=White
|
||||||
|
highlight CursorLine guibg=#333333 guifg=NONE
|
||||||
|
highlight CursorColumn guibg=#333333 guifg=NONE
|
||||||
|
highlight NonText guifg=#404040 ctermfg=8
|
||||||
|
highlight SpecialKey guifg=#404040 ctermfg=8
|
||||||
|
highlight Directory none
|
||||||
|
high link Directory Identifier
|
||||||
|
highlight ErrorMsg guibg=Red ctermbg=DarkRed guifg=NONE ctermfg=NONE
|
||||||
|
highlight Search guifg=NONE ctermfg=NONE gui=none cterm=none
|
||||||
|
call s:hibg("Search" ,"#555555","DarkBlue",81)
|
||||||
|
highlight IncSearch guifg=White guibg=Black ctermfg=White ctermbg=Black
|
||||||
|
highlight MoreMsg guifg=#00AA00 ctermfg=Green
|
||||||
|
highlight LineNr guifg=#DDEEFF ctermfg=White
|
||||||
|
call s:hibg("LineNr" ,"#222222","DarkBlue",80)
|
||||||
|
highlight Question none
|
||||||
|
high link Question MoreMsg
|
||||||
|
highlight Title guifg=Magenta ctermfg=Magenta
|
||||||
|
highlight VisualNOS gui=none cterm=none
|
||||||
|
call s:hibg("Visual" ,"#555577","LightBlue",83)
|
||||||
|
call s:hibg("VisualNOS" ,"#444444","DarkBlue",81)
|
||||||
|
call s:hibg("MatchParen","#1100AA","DarkBlue",18)
|
||||||
|
highlight WarningMsg guifg=Red ctermfg=Red
|
||||||
|
highlight Error ctermbg=DarkRed
|
||||||
|
highlight SpellBad ctermbg=DarkRed
|
||||||
|
" FIXME: Comments
|
||||||
|
highlight SpellRare ctermbg=DarkMagenta
|
||||||
|
highlight SpellCap ctermbg=DarkBlue
|
||||||
|
highlight SpellLocal ctermbg=DarkCyan
|
||||||
|
|
||||||
|
call s:hibg("Folded" ,"#110077","DarkBlue",17)
|
||||||
|
call s:hifg("Folded" ,"#aaddee","LightCyan",63)
|
||||||
|
highlight FoldColumn none
|
||||||
|
high link FoldColumn Folded
|
||||||
|
highlight DiffAdd ctermbg=4 guibg=DarkBlue
|
||||||
|
highlight DiffChange ctermbg=5 guibg=DarkMagenta
|
||||||
|
highlight DiffDelete ctermfg=12 ctermbg=6 gui=bold guifg=Blue guibg=DarkCyan
|
||||||
|
highlight DiffText ctermbg=DarkRed
|
||||||
|
highlight DiffText cterm=bold ctermbg=9 gui=bold guibg=Red
|
||||||
|
|
||||||
|
highlight Pmenu guifg=White ctermfg=White gui=bold cterm=bold
|
||||||
|
highlight PmenuSel guifg=White ctermfg=White gui=bold cterm=bold
|
||||||
|
call s:hibg("Pmenu" ,"#000099","Blue",18)
|
||||||
|
call s:hibg("PmenuSel" ,"#5555ff","DarkCyan",39)
|
||||||
|
highlight PmenuSbar guibg=Grey ctermbg=Grey
|
||||||
|
highlight PmenuThumb guibg=White ctermbg=White
|
||||||
|
highlight TabLine gui=underline cterm=underline
|
||||||
|
call s:hifg("TabLine" ,"#bbbbbb","LightGrey",85)
|
||||||
|
call s:hibg("TabLine" ,"#333333","DarkGrey",80)
|
||||||
|
highlight TabLineSel guifg=White guibg=Black ctermfg=White ctermbg=Black
|
||||||
|
highlight TabLineFill gui=underline cterm=underline
|
||||||
|
call s:hifg("TabLineFill","#bbbbbb","LightGrey",85)
|
||||||
|
call s:hibg("TabLineFill","#808080","Grey",83)
|
||||||
|
|
||||||
|
hi Type gui=none
|
||||||
|
hi Statement gui=none
|
||||||
|
if !has("gui_mac")
|
||||||
|
" Mac GUI degrades italics to ugly underlining.
|
||||||
|
hi Comment gui=italic
|
||||||
|
hi railsUserClass gui=italic
|
||||||
|
hi railsUserMethod gui=italic
|
||||||
|
endif
|
||||||
|
hi Identifier cterm=none
|
||||||
|
" Commented numbers at the end are *old* 256 color values
|
||||||
|
"highlight PreProc guifg=#EDF8F9
|
||||||
|
call s:hifg("Comment" ,"#9933CC","DarkMagenta",34) " 92
|
||||||
|
" 26 instead?
|
||||||
|
call s:hifg("Constant" ,"#339999","DarkCyan",21) " 30
|
||||||
|
call s:hifg("rubyNumber" ,"#CCFF33","Yellow",60) " 190
|
||||||
|
call s:hifg("String" ,"#66FF00","LightGreen",44,82) " 82
|
||||||
|
call s:hifg("Identifier" ,"#FFCC00","Yellow",72) " 220
|
||||||
|
call s:hifg("Statement" ,"#FF6600","Brown",68) " 202
|
||||||
|
call s:hifg("PreProc" ,"#AAFFFF","LightCyan",47) " 213
|
||||||
|
call s:hifg("railsUserMethod","#AACCFF","LightCyan",27)
|
||||||
|
call s:hifg("Type" ,"#AAAA77","Grey",57) " 101
|
||||||
|
call s:hifg("railsUserClass" ,"#AAAAAA","Grey",7) " 101
|
||||||
|
call s:hifg("Special" ,"#33AA00","DarkGreen",24) " 7
|
||||||
|
call s:hifg("Regexp" ,"#44B4CC","DarkCyan",21) " 74
|
||||||
|
call s:hifg("rubyMethod" ,"#DDE93D","Yellow",77) " 191
|
||||||
|
"highlight railsMethod guifg=#EE1122 ctermfg=1
|
51
vim/colors/wombat.vim
Normal file
51
vim/colors/wombat.vim
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
" Maintainer: Lars H. Nielsen (dengmao@gmail.com)
|
||||||
|
" Last Change: January 22 2007
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
|
||||||
|
hi clear
|
||||||
|
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let colors_name = "wombat"
|
||||||
|
|
||||||
|
|
||||||
|
" Vim >= 7.0 specific colors
|
||||||
|
if version >= 700
|
||||||
|
hi CursorLine guibg=#2d2d2d
|
||||||
|
hi CursorColumn guibg=#2d2d2d
|
||||||
|
hi MatchParen guifg=#f6f3e8 guibg=#857b6f gui=bold
|
||||||
|
hi Pmenu guifg=#f6f3e8 guibg=#444444
|
||||||
|
hi PmenuSel guifg=#000000 guibg=#cae682
|
||||||
|
endif
|
||||||
|
|
||||||
|
" General colors
|
||||||
|
hi Cursor guifg=NONE guibg=#656565 gui=none
|
||||||
|
hi Normal guifg=#f6f3e8 guibg=#242424 gui=none
|
||||||
|
hi NonText guifg=#808080 guibg=#303030 gui=none
|
||||||
|
hi LineNr guifg=#857b6f guibg=#000000 gui=none
|
||||||
|
hi StatusLine guifg=#f6f3e8 guibg=#444444 gui=italic
|
||||||
|
hi StatusLineNC guifg=#857b6f guibg=#444444 gui=none
|
||||||
|
hi VertSplit guifg=#444444 guibg=#444444 gui=none
|
||||||
|
hi Folded guibg=#384048 guifg=#a0a8b0 gui=none
|
||||||
|
hi Title guifg=#f6f3e8 guibg=NONE gui=bold
|
||||||
|
hi Visual guifg=#f6f3e8 guibg=#444444 gui=none
|
||||||
|
hi SpecialKey guifg=#808080 guibg=#343434 gui=none
|
||||||
|
|
||||||
|
" Syntax highlighting
|
||||||
|
hi Comment guifg=#99968b gui=italic
|
||||||
|
hi Todo guifg=#8f8f8f gui=italic
|
||||||
|
hi Constant guifg=#e5786d gui=none
|
||||||
|
hi String guifg=#95e454 gui=italic
|
||||||
|
hi Identifier guifg=#cae682 gui=none
|
||||||
|
hi Function guifg=#cae682 gui=none
|
||||||
|
hi Type guifg=#cae682 gui=none
|
||||||
|
hi Statement guifg=#8ac6f2 gui=none
|
||||||
|
hi Keyword guifg=#8ac6f2 gui=none
|
||||||
|
hi PreProc guifg=#e5786d gui=none
|
||||||
|
hi Number guifg=#e5786d gui=none
|
||||||
|
hi Special guifg=#e7f6da gui=none
|
||||||
|
|
||||||
|
|
11
vim/ftplugin/tex.vim
Normal file
11
vim/ftplugin/tex.vim
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
setlocal formatoptions+=wa
|
||||||
|
|
||||||
|
function! SyncTexForward()
|
||||||
|
let execstr = "silent !okular --unique ".LatexBox_GetOutputFile()."\\#src:".line(".")."%:p &"
|
||||||
|
exec execstr
|
||||||
|
endfunction
|
||||||
|
nmap <Leader>f :call SyncTexForward()<CR>
|
||||||
|
map <leader>ct yyp:s/begin/end/<CR>
|
||||||
|
|
||||||
|
|
||||||
|
|
141
vimrc
Normal file
141
vimrc
Normal file
@ -0,0 +1,141 @@
|
|||||||
|
" Balkian
|
||||||
|
|
||||||
|
set nocompatible " be iMproved
|
||||||
|
filetype off " required!
|
||||||
|
|
||||||
|
set rtp+=~/.vim/bundle/vundle/
|
||||||
|
call vundle#rc()
|
||||||
|
|
||||||
|
" let Vundle manage Vundle
|
||||||
|
" required!
|
||||||
|
Bundle 'gmarik/vundle'
|
||||||
|
Bundle 'LaTeX-Box-Team/LaTeX-Box'
|
||||||
|
Bundle 'tpope/vim-fugitive'
|
||||||
|
Bundle 'scrooloose/nerdtree'
|
||||||
|
Bundle 'taglist.vim'
|
||||||
|
Bundle "MarcWeber/vim-addon-mw-utils"
|
||||||
|
Bundle "tomtom/tlib_vim"
|
||||||
|
Bundle "honza/snipmate-snippets"
|
||||||
|
Bundle "garbas/vim-snipmate"
|
||||||
|
Bundle "SpellCheck"
|
||||||
|
|
||||||
|
|
||||||
|
filetype plugin indent on " required!
|
||||||
|
|
||||||
|
highlight SpecialKey ctermfg=DarkGray
|
||||||
|
set listchars=tab:>-,trail:~
|
||||||
|
set list
|
||||||
|
set tabstop=4
|
||||||
|
set shiftwidth=4
|
||||||
|
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
|
||||||
|
autocmd Filetype javascript set ts=4 sts=4 sw=4 expandtab smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
|
||||||
|
set expandtab
|
||||||
|
set autoindent
|
||||||
|
set smartindent
|
||||||
|
syntax on
|
||||||
|
set ignorecase
|
||||||
|
set smartcase
|
||||||
|
set softtabstop=4
|
||||||
|
set number
|
||||||
|
"set paste
|
||||||
|
set mouse=a
|
||||||
|
set autochdir
|
||||||
|
set showmatch
|
||||||
|
set incsearch
|
||||||
|
set hlsearch
|
||||||
|
|
||||||
|
"Better Map Leader
|
||||||
|
let mapleader=","
|
||||||
|
noremap \ ,
|
||||||
|
|
||||||
|
|
||||||
|
"Latex
|
||||||
|
let g:tex_flavor = "latex"
|
||||||
|
set suffixes+=.log,.aux,.bbl,.blg,.idx,.ilg,.ind,.out,.pdf
|
||||||
|
|
||||||
|
let g:LatexBox_latexmk_options="-pvc"
|
||||||
|
let g:LatexBox_output_type="pdf"
|
||||||
|
let g:LatexBox_viewer="okular --unique"
|
||||||
|
|
||||||
|
|
||||||
|
let tlist_tex_settings = 'latex;l:labels;s:sections;t:subsections;u:subsubsections'
|
||||||
|
|
||||||
|
|
||||||
|
" Commenting blocks of code.
|
||||||
|
autocmd FileType c,cpp,java,scala,javascript let b:comment_leader = '// '
|
||||||
|
autocmd FileType sh,ruby,python let b:comment_leader = '# '
|
||||||
|
autocmd FileType conf,fstab let b:comment_leader = '# '
|
||||||
|
autocmd FileType tex let b:comment_leader = '% '
|
||||||
|
autocmd FileType mail let b:comment_leader = '> '
|
||||||
|
autocmd FileType vim let b:comment_leader = '" '
|
||||||
|
noremap <silent> ,cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR>
|
||||||
|
noremap <silent> ,cu :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR>
|
||||||
|
|
||||||
|
imap <C-v> <C-O>"+gP<CR>
|
||||||
|
noremap <C-S> :w<CR>
|
||||||
|
imap <C-S> <C-O>:w<CR>
|
||||||
|
|
||||||
|
"Custom maps
|
||||||
|
noremap <Leader>n :NERDTreeToggle<CR>
|
||||||
|
noremap <Leader>t :TlistToggle<CR>
|
||||||
|
"Omni
|
||||||
|
|
||||||
|
set completeopt=longest,menuone
|
||||||
|
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
|
||||||
|
inoremap <expr> <C-n> pumvisible() ? '<C-n>' :
|
||||||
|
\ '<C-n><C-r>=pumvisible() ? "\<lt>Down>" : ""<CR>'
|
||||||
|
inoremap <expr> <M-,> pumvisible() ? '<C-n>' :
|
||||||
|
\ '<C-x><C-o><C-n><C-p><C-r>=pumvisible() ? "\<lt>Down>" : ""<CR>'
|
||||||
|
inoremap <expr> <C-Space> (pumvisible() ? (col('.') > 1 ? '<Esc>i<Right>' : '<Esc>i') : '') .
|
||||||
|
\ '<C-x><C-o><C-r>=pumvisible() ? "\<lt>C-n>\<lt>C-p>\<lt>Down>" : ""<CR>'
|
||||||
|
set spell spelllang=en_gb
|
||||||
|
|
||||||
|
" tab navigation like firefox
|
||||||
|
nnoremap <C-S-tab> :tabprevious<CR>
|
||||||
|
nnoremap <C-tab> :tabnext<CR>
|
||||||
|
nnoremap <C-t> :tabnew<CR>
|
||||||
|
inoremap <C-S-tab> <Esc>:tabprevious<CR>i
|
||||||
|
inoremap <C-tab> <Esc>:tabnext<CR>i
|
||||||
|
"inoremap <C-t> <Esc>:tabnew<CR>
|
||||||
|
|
||||||
|
|
||||||
|
" Save sessions
|
||||||
|
function! RestoreSession()
|
||||||
|
if argc() == 0 "vim called without arguments
|
||||||
|
execute 'source ~/.vim/Session.vim'
|
||||||
|
end
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
nmap Sq <ESC>:mksession! ~/.vim/Session.vim<CR>:qa!<CR>
|
||||||
|
nmap SQ <ESC>:mksession! ~/.vim/Session.vim<CR>:wqa<CR>
|
||||||
|
nmap SO :so ~/.vim/Session.vim<CR>
|
||||||
|
|
||||||
|
"autocmd VimEnter * call RestoreSession()
|
||||||
|
|
||||||
|
"Make tabs and buffers work better
|
||||||
|
:se switchbuf=usetab,newtab
|
||||||
|
":tab sball
|
||||||
|
|
||||||
|
" Color and shit
|
||||||
|
"colo vividchalk
|
||||||
|
|
||||||
|
"Statusline
|
||||||
|
|
||||||
|
set statusline=%t%h%m%r%y%{fugitive#statusline()}\%=[%{strlen(&fenc)?&fenc:'none'},%{&ff}]\ \ %c,%l/%L\ %P
|
||||||
|
set laststatus=2
|
||||||
|
|
||||||
|
" Forward search
|
||||||
|
" function! PDFForward()
|
||||||
|
" " if filereadable(b:RootFileName.".".b:Ext)
|
||||||
|
"
|
||||||
|
" " silent! call system("okular --unique \"".b:RootFileName.".".b:Ext."\"\#src:".line('.').expand("%")." &")
|
||||||
|
"
|
||||||
|
" silent! call system(g:LatexBox_viewer . " \"".LatexBox_GetOutputFile()."#src:".line('.')."".expand("%:p")."\" &")
|
||||||
|
" " else
|
||||||
|
" " echo "Output file not readable."
|
||||||
|
" " endif
|
||||||
|
" endfunction
|
||||||
|
|
||||||
|
" Encryption
|
||||||
|
set cm=blowfish
|
||||||
|
" Transparent editing of gpg encrypted files.
|
70
zshrc
Normal file
70
zshrc
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
# Lines configured by zsh-newuser-install
|
||||||
|
HISTFILE=~/.histfile
|
||||||
|
HISTSIZE=1000
|
||||||
|
SAVEHIST=1000
|
||||||
|
setopt appendhistory autocd extendedglob nomatch notify share_history
|
||||||
|
bindkey -v
|
||||||
|
# End of lines configured by zsh-newuser-install
|
||||||
|
# The following lines were added by compinstall
|
||||||
|
zstyle :compinstall filename '/home/balkian/.zshrc'
|
||||||
|
|
||||||
|
autoload -Uz compinit
|
||||||
|
compinit
|
||||||
|
# End of lines added by compinstall
|
||||||
|
|
||||||
|
autoload -U colors
|
||||||
|
colors
|
||||||
|
setopt prompt_subst
|
||||||
|
|
||||||
|
local smiley="%B%(?,%{$fg[green]%}☠%{$reset_color%},%{$fg[red]%}☠%{$reset_color%})%b"
|
||||||
|
PS0='${debian_chroot:+($debian_chroot)}%n@%M'
|
||||||
|
|
||||||
|
parse_git_branch()
|
||||||
|
{
|
||||||
|
git name-rev HEAD 2> /dev/null | sed 's#HEAD\ \(.*\)#(git::\1)#'
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( dircolors --help && ls --color ) &> /dev/null; then
|
||||||
|
# For some reason, the unixs machines need me to use $HOME instead of ~
|
||||||
|
# List files from highest priority to lowest. As soon as the loop finds one that works, it will exit.
|
||||||
|
function precmd {
|
||||||
|
PROMPT="%~ %{$fg[green]%}%B$(parse_git_branch)%b%{$reset_color%}
|
||||||
|
${smiley} $PS0: ";
|
||||||
|
RPROMPT="%T";
|
||||||
|
}
|
||||||
|
|
||||||
|
for POSSIBLE_DIR_COLORS in "$HOME/.dir_colors" "/etc/DIR_COLORS"; do
|
||||||
|
[[ -f "$POSSIBLE_DIR_COLORS" ]] && [[ -r "$POSSIBLE_DIR_COLORS" ]] && eval `dircolors -b "$POSSIBLE_DIR_COLORS"` && break
|
||||||
|
done
|
||||||
|
|
||||||
|
alias ls="ls --color=auto"
|
||||||
|
alias ll="ls --color=auto -l"
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias fgrep='fgrep --color=auto'
|
||||||
|
alias egrep='egrep --color=auto'
|
||||||
|
else
|
||||||
|
# No color, so put a slash at the end of directory names, etc. to differentiate.
|
||||||
|
alias ll="ls -lF"
|
||||||
|
fi
|
||||||
|
## Completions
|
||||||
|
#autoload -U compinit
|
||||||
|
#compinit -C
|
||||||
|
#
|
||||||
|
### case-insensitive (all),partial-word and then substring completion
|
||||||
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' \
|
||||||
|
'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
||||||
|
|
||||||
|
bindkey -M vicmd 'r' history-incremental-search-backward
|
||||||
|
|
||||||
|
# TMUX
|
||||||
|
# if [[ -z "$KONSOLE_DBUS_SERVICE" & `which tmux` ]]; then
|
||||||
|
# if no session is started, start a new session
|
||||||
|
if [[ -z "$KONSOLE_DBUS_SERVICE" && -n $(which tmux) ]]; then
|
||||||
|
stty -ixon
|
||||||
|
test -z ${TMUX} && tmux attach
|
||||||
|
# when quitting tmux, try to attach
|
||||||
|
if [[ -z ${TMUX} ]]; then
|
||||||
|
exit;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user