Initial commit
This commit is contained in:
30
.gitmodules
vendored
Normal file
30
.gitmodules
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
[submodule "vim/bundle/vim-gitgutter"]
|
||||
path = vim/bundle/vim-gitgutter
|
||||
url = https://github.com/airblade/vim-gitgutter.git
|
||||
[submodule "vim/bundle/nerdtree"]
|
||||
path = vim/bundle/nerdtree
|
||||
url = https://github.com/preservim/nerdtree.git
|
||||
[submodule "vim/bundle/OmniCppComplete"]
|
||||
path = vim/bundle/OmniCppComplete
|
||||
url = https://github.com/vim-scripts/OmniCppComplete.git
|
||||
[submodule "vim/bundle/supertab"]
|
||||
path = vim/bundle/supertab
|
||||
url = https://github.com/ervandew/supertab.git
|
||||
[submodule "vim/bundle/taglist"]
|
||||
path = vim/bundle/taglist
|
||||
url = https://github.com/vim-scripts/taglist.vim.git
|
||||
[submodule "vim/bundle/lightline"]
|
||||
path = vim/bundle/lightline
|
||||
url = https://github.com/itchyny/lightline.vim.git
|
||||
[submodule "vim/bundle/rainbow"]
|
||||
path = vim/bundle/rainbow
|
||||
url = https://github.com/frazrepo/vim-rainbow.git
|
||||
[submodule "vim/bundle/fugitive"]
|
||||
path = vim/bundle/fugitive
|
||||
url = https://github.com/tpope/vim-fugitive.git
|
||||
[submodule "vim/bundle/syntastic"]
|
||||
path = vim/bundle/syntastic
|
||||
url = https://github.com/vim-syntastic/syntastic.git
|
||||
[submodule "vim/bundle/indentLine"]
|
||||
path = vim/bundle/indentLine
|
||||
url = https://github.com/Yggdroot/indentLine.git
|
||||
20
Xdefaults
Normal file
20
Xdefaults
Normal file
@@ -0,0 +1,20 @@
|
||||
! Molokai theme
|
||||
*xterm*background: #101010
|
||||
*xterm*foreground: #d0d0d0
|
||||
*xterm*cursorColor: #d0d0d0
|
||||
*xterm*color0: #101010
|
||||
*xterm*color1: #960050
|
||||
*xterm*color2: #66aa11
|
||||
*xterm*color3: #c47f2c
|
||||
*xterm*color4: #30309b
|
||||
*xterm*color5: #7e40a5
|
||||
*xterm*color6: #3579a8
|
||||
*xterm*color7: #9999aa
|
||||
*xterm*color8: #303030
|
||||
*xterm*color9: #ff0090
|
||||
*xterm*color10: #80ff00
|
||||
*xterm*color11: #ffba68
|
||||
*xterm*color12: #5f5fee
|
||||
*xterm*color13: #bb88dd
|
||||
*xterm*color14: #4eb4fa
|
||||
*xterm*color15: #d0d0d0[
|
||||
17
bash_profile_ext
Normal file
17
bash_profile_ext
Normal file
@@ -0,0 +1,17 @@
|
||||
#### MAGIC VALUE: AZSQFRB8
|
||||
|
||||
export PS1="\[\033[38;5;34m\]\u@\h \W]\\$\[$(tput sgr0)\] "
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias ll='ls -lah'
|
||||
alias grep='grep --color=auto'
|
||||
|
||||
# Git should ask for password through the command line
|
||||
unset GIT_ASKPASS
|
||||
unset SSH_ASKPASS
|
||||
|
||||
[ -e "$HOME/.dircolors" ] && DIR_COLORS="$HOME/.dircolors"
|
||||
[ -e "$DIR_COLORS" ] || DIR_COLORS=""
|
||||
eval "`dircolors -b $DIR_COLORS`"
|
||||
|
||||
#### END MAGIC VALUE: AZSQFRB8
|
||||
4
ctags
Normal file
4
ctags
Normal file
@@ -0,0 +1,4 @@
|
||||
--c++-kinds=+p
|
||||
--fields=+iaS
|
||||
--extra=+q
|
||||
--exclude=build
|
||||
382
dircolors
Normal file
382
dircolors
Normal file
@@ -0,0 +1,382 @@
|
||||
# Monokai color theme for the color GNU ls utility.
|
||||
# Designed for dircolors (GNU coreutils) 5.97
|
||||
#
|
||||
# This file was largely inspired by seebi/dircolors-solarized on github.
|
||||
#
|
||||
# How the colors were selected:
|
||||
# - Terminal emulators often have an option typically enabled by default that makes
|
||||
# bold a different color. It is important to leave this option enabled so that
|
||||
# you can access the entire 16-color palette, and not just 8 colors.
|
||||
# - We favor universality over a greater number of colors. So we limit the number
|
||||
# of colors so that this theme will work out of the box in all terminals.
|
||||
# - We choose to have the following category of files:
|
||||
# NORMAL & FILE, DIR, LINK, EXEC and
|
||||
# editable text including source, unimportant text, binary docs & multimedia source
|
||||
# files, viewable multimedia, archived/compressed, and unimportant non-text
|
||||
# - See table below to see the assignments.
|
||||
|
||||
|
||||
# Installation instructions
|
||||
# This file goes in the /etc directory, and must be world readable.
|
||||
# You can copy this file to .dir_colors in your $HOME directory to override
|
||||
# the system defaults.
|
||||
|
||||
# Init {{{
|
||||
|
||||
# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not
|
||||
# pipes. 'all' adds color characters to all output. 'none' shuts colorization
|
||||
# off.
|
||||
COLOR tty
|
||||
|
||||
# Below, there should be one TERM entry for each termtype that is colorizable
|
||||
TERM ansi
|
||||
TERM color_xterm
|
||||
TERM color-xterm
|
||||
TERM con132x25
|
||||
TERM con132x30
|
||||
TERM con132x43
|
||||
TERM con132x60
|
||||
TERM con80x25
|
||||
TERM con80x28
|
||||
TERM con80x30
|
||||
TERM con80x43
|
||||
TERM con80x50
|
||||
TERM con80x60
|
||||
TERM cons25
|
||||
TERM console
|
||||
TERM cygwin
|
||||
TERM dtterm
|
||||
TERM Eterm
|
||||
TERM eterm-color
|
||||
TERM gnome
|
||||
TERM gnome-256color
|
||||
TERM jfbterm
|
||||
TERM konsole
|
||||
TERM kterm
|
||||
TERM linux
|
||||
TERM linux-c
|
||||
TERM mach-color
|
||||
TERM mlterm
|
||||
TERM nxterm
|
||||
TERM putty
|
||||
TERM rxvt
|
||||
TERM rxvt-256color
|
||||
TERM rxvt-cygwin
|
||||
TERM rxvt-cygwin-native
|
||||
TERM rxvt-unicode
|
||||
TERM rxvt-unicode256
|
||||
TERM rxvt-unicode-256color
|
||||
TERM screen
|
||||
TERM screen-256color
|
||||
TERM screen-256color-bce
|
||||
TERM screen-bce
|
||||
TERM screen.linux
|
||||
TERM screen-w
|
||||
TERM vt100
|
||||
TERM xterm
|
||||
TERM xterm-16color
|
||||
TERM xterm-256color
|
||||
TERM xterm-88color
|
||||
TERM xterm-color
|
||||
TERM xterm-debian
|
||||
|
||||
# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output)
|
||||
EIGHTBIT 1
|
||||
|
||||
#############################################################################
|
||||
# Below are the color init strings for the basic file types. A color init
|
||||
# string consists of one or more of the following numeric codes:
|
||||
#
|
||||
# Attribute codes:
|
||||
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
|
||||
# Text color codes:
|
||||
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
|
||||
# Background color codes:
|
||||
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
|
||||
#
|
||||
# NOTES:
|
||||
# - See http://www.oreilly.com/catalog/wdnut/excerpt/color_names.html
|
||||
# - Color combinations
|
||||
# ANSI Color code Monokai
|
||||
# ~~~~~~~~~~~~~~~ ~~~~~~~~~
|
||||
# 00 none
|
||||
# 30 black black
|
||||
# 01;30 bright black bright black
|
||||
# 31 red red
|
||||
# 01;31 bright red orange
|
||||
# 32 green green
|
||||
# 01;32 bright green bright green
|
||||
# 33 yellow yellow
|
||||
# 01;33 bright yellow bright yellow
|
||||
# 34 blue blue
|
||||
# 01;34 bright blue bright blue
|
||||
# 35 magenta magenta
|
||||
# 01;35 bright magenta violet
|
||||
# 36 cyan cyan
|
||||
# 01;36 bright cyan bright cyan
|
||||
# 37 white white
|
||||
# 01;37 bright white bright white
|
||||
# 05;37;41
|
||||
|
||||
# }}}
|
||||
# File type {{{
|
||||
|
||||
# global default
|
||||
NORMAL 00
|
||||
# normal file
|
||||
FILE 00
|
||||
# directory
|
||||
DIR 36
|
||||
# symbolic link
|
||||
LINK 35
|
||||
|
||||
# pipe, socket, block device, character device (blue bg)
|
||||
FIFO 37;44
|
||||
SOCK 37;44
|
||||
DOOR 37;44 # Solaris 2.5 and later
|
||||
BLK 37;44
|
||||
CHR 37;44
|
||||
|
||||
# }}}
|
||||
# File attributes {{{
|
||||
|
||||
# Orphaned symlinks (blinking white on red)
|
||||
# Blink may or may not work (works on iTerm dark or light, and Putty dark)
|
||||
ORPHAN 05;37;45
|
||||
# ... and the files that orphaned symlinks point to (blinking white on red)
|
||||
MISSING 05;37;45
|
||||
# dir that is sticky and other-writable (+t,o+w)
|
||||
STICKY_OTHER_WRITABLE 30;46
|
||||
# dir that is other-writable (o+w) and not sticky
|
||||
OTHER_WRITABLE 30;46
|
||||
|
||||
# files with execute permission
|
||||
EXEC 01;31 # Unix
|
||||
.cmd 01;31 # Win
|
||||
.exe 01;31 # Win
|
||||
.com 01;31 # Win
|
||||
.bat 01;31 # Win
|
||||
.reg 01;31 # Win
|
||||
.app 01;31 # OSX
|
||||
|
||||
# }}}
|
||||
# File extension {{{
|
||||
|
||||
# List any file extensions like '.gz' or '.tar' that you would like ls
|
||||
# to colorize below. Put the extension, a space, and the color init string.
|
||||
# (and any comments you want to add after a '#')
|
||||
|
||||
# Text {{{
|
||||
|
||||
.txt 33
|
||||
.org 33
|
||||
.md 33
|
||||
.mkd 33
|
||||
|
||||
# }}}
|
||||
# Source {{{
|
||||
|
||||
.C 32
|
||||
.c 32
|
||||
.cc 32
|
||||
.csh 32
|
||||
.css 32
|
||||
.cxx 32
|
||||
.el 32
|
||||
.h 32
|
||||
.hs 32
|
||||
.htm 32
|
||||
.html 32
|
||||
.java 32
|
||||
.js 32
|
||||
.man 32
|
||||
.objc 32
|
||||
.php 32
|
||||
.pl 32
|
||||
.pm 32
|
||||
.pod 32
|
||||
.py 32
|
||||
.rb 32
|
||||
.rdf 32
|
||||
.sh 32
|
||||
.shtml 32
|
||||
.tex 32
|
||||
.vim 32
|
||||
.xml 32
|
||||
.zsh 32
|
||||
|
||||
# }}}
|
||||
# Image {{{
|
||||
.bmp 01;35
|
||||
.cgm 01;35
|
||||
.dl 01;35
|
||||
.dvi 01;35
|
||||
.emf 01;35
|
||||
.eps 01;35
|
||||
.gif 01;35
|
||||
.jpeg 01;35
|
||||
.jpg 01;35
|
||||
.JPG 01;35
|
||||
.mng 01;35
|
||||
.pbm 01;35
|
||||
.pcx 01;35
|
||||
.pdf 01;35
|
||||
.pgm 01;35
|
||||
.png 01;35
|
||||
.ppm 01;35
|
||||
.pps 01;35
|
||||
.ppsx 01;35
|
||||
.ps 01;35
|
||||
.svg 01;35
|
||||
.svgz 01;35
|
||||
.tga 01;35
|
||||
.tif 01;35
|
||||
.tiff 01;35
|
||||
.xbm 01;35
|
||||
.xcf 01;35
|
||||
.xpm 01;35
|
||||
.xwd 01;35
|
||||
.xwd 01;35
|
||||
.yuv 01;35
|
||||
|
||||
# }}}
|
||||
# Audio {{{
|
||||
|
||||
.aac 01;35
|
||||
.au 01;35
|
||||
.flac 01;35
|
||||
.mid 01;35
|
||||
.midi 01;35
|
||||
.mka 01;35
|
||||
.mp3 01;35
|
||||
.mpa 01;35
|
||||
.mpeg 01;35
|
||||
.mpg 01;35
|
||||
.ogg 01;35
|
||||
.ra 01;35
|
||||
.wav 01;35
|
||||
|
||||
# }}}
|
||||
# Video {{{
|
||||
|
||||
.anx 01;35
|
||||
.asf 01;35
|
||||
.avi 01;35
|
||||
.axv 01;35
|
||||
.flc 01;35
|
||||
.fli 01;35
|
||||
.flv 01;35
|
||||
.gl 01;35
|
||||
.m2v 01;35
|
||||
.m4v 01;35
|
||||
.mkv 01;35
|
||||
.mov 01;35
|
||||
.mp4 01;35
|
||||
.mp4v 01;35
|
||||
.mpeg 01;35
|
||||
.mpg 01;35
|
||||
.nuv 01;35
|
||||
.ogm 01;35
|
||||
.ogv 01;35
|
||||
.ogx 01;35
|
||||
.qt 01;35
|
||||
.rm 01;35
|
||||
.rmvb 01;35
|
||||
.swf 01;35
|
||||
.vob 01;35
|
||||
.wmv 01;35
|
||||
|
||||
# }}}
|
||||
# Documents {{{
|
||||
|
||||
.doc 33
|
||||
.docx 33
|
||||
.rtf 33
|
||||
.dot 33
|
||||
.dotx 33
|
||||
.xls 33
|
||||
.xlsx 33
|
||||
.ppt 33
|
||||
.pptx 33
|
||||
.fla 33
|
||||
.psd 33
|
||||
|
||||
# }}}
|
||||
# Archives {{{
|
||||
|
||||
.7z 1;35
|
||||
.apk 1;35
|
||||
.arj 1;35
|
||||
.bin 1;35
|
||||
.bz 1;35
|
||||
.bz2 1;35
|
||||
.cab 1;35 # Win
|
||||
.deb 1;35
|
||||
.dmg 1;35 # OSX
|
||||
.gem 1;35
|
||||
.gz 1;35
|
||||
.iso 1;35
|
||||
.jar 1;35
|
||||
.msi 1;35 # Win
|
||||
.rar 1;35
|
||||
.rpm 1;35
|
||||
.tar 1;35
|
||||
.tbz 1;35
|
||||
.tbz2 1;35
|
||||
.tgz 1;35
|
||||
.tx 1;35
|
||||
.war 1;35
|
||||
.xpi 1;35
|
||||
.xz 1;35
|
||||
.z 1;35
|
||||
.Z 1;35
|
||||
.zip 1;35
|
||||
|
||||
# }}}
|
||||
# Testing {{{
|
||||
|
||||
.ANSI-black 30
|
||||
.ANSI-black-bright 01;30
|
||||
.ANSI-red 31
|
||||
.ANSI-red-bright 01;31
|
||||
.ANSI-green 32
|
||||
.ANSI-green-bright 01;32
|
||||
.ANSI-yellow 33
|
||||
.ANSI-yellow-bright 01;33
|
||||
.ANSI-blue 34
|
||||
.ANSI-blue-bright 01;34
|
||||
.ANSI-magenta 35
|
||||
.ANSI-magenta-bright 01;35
|
||||
.ANSI-cyan 36
|
||||
.ANSI-cyan-bright 01;36
|
||||
.ANSI-white 37
|
||||
.ANSI-white-bright 01;37
|
||||
|
||||
# }}}
|
||||
# Custom {{{
|
||||
|
||||
# Unimportant text files
|
||||
*# 32
|
||||
*~ 32
|
||||
.log 32
|
||||
|
||||
# Unimportant non-text files
|
||||
*,v 01;30
|
||||
.BAK 01;30
|
||||
.DIST 01;30
|
||||
.OFF 01;30
|
||||
.OLD 01;30
|
||||
.ORIG 01;30
|
||||
.bak 01;30
|
||||
.dist 01;30
|
||||
.off 01;30
|
||||
.old 01;30
|
||||
.org_archive 01;30
|
||||
.orig 01;30
|
||||
.swo 01;30
|
||||
.swp 01;30
|
||||
|
||||
# }}}
|
||||
|
||||
# }}}
|
||||
|
||||
15
gitconfig
Normal file
15
gitconfig
Normal file
@@ -0,0 +1,15 @@
|
||||
[user]
|
||||
email = anaber@pm.me
|
||||
name = Autumn Naber
|
||||
[diff]
|
||||
tool = vimdiff
|
||||
[difftool]
|
||||
prompt = false
|
||||
[merge]
|
||||
tool = fugitive
|
||||
[mergetool]
|
||||
prompt = false
|
||||
[mergetool "fugitive"]
|
||||
cmd = vim -f -c \"Gvdiff\" \"$MERGED\"
|
||||
[push]
|
||||
default = simple
|
||||
11
inputrc
Normal file
11
inputrc
Normal file
@@ -0,0 +1,11 @@
|
||||
$include /etc/inputrc
|
||||
|
||||
set colored-stats On
|
||||
#set completion-ignore-case On
|
||||
set completion-prefix-display-length 6
|
||||
set mark-symlinked-directories On
|
||||
|
||||
#"\e[1;3D": beginning-of-line
|
||||
#"\e[1;3C": end-of-line
|
||||
#bind "\e[1;3D": beginning-of-line
|
||||
#bind "\e[1;3C": end-of-line
|
||||
21
setup.sh
Executable file
21
setup.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -n "$(grep AZSQFRB8 $HOME/.bash_profile)" ]; then
|
||||
read -p "These configurations have already been applied. Continue? [y/N] "
|
||||
if [ "$REPLY" == "y" ] || [ "$REPLY" == "Y" ]; then
|
||||
echo "Overwriting..."
|
||||
sed -i '/AZSQFRB8/,/END.*AZSQFRB8/d' $HOME/.bash_profile
|
||||
else
|
||||
echo "Aborting..."
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
cat bash_profile_ext >> $HOME/.bash_profile
|
||||
|
||||
copy_list=(ctags dircolors gitconfig inputrc tmux.conf vim vimrc Xdefaults)
|
||||
for config in ${copy_list[@]}; do
|
||||
cp -r "$config" $HOME/."$config"
|
||||
done
|
||||
|
||||
echo "Please log out and log back in for changes to take effect."
|
||||
58
tmux.conf
Normal file
58
tmux.conf
Normal file
@@ -0,0 +1,58 @@
|
||||
# split panes using | and -
|
||||
bind | split-window -h
|
||||
bind - split-window -v
|
||||
unbind '"'
|
||||
unbind %
|
||||
|
||||
# reload config file (change file location to your the tmux.conf you want to use)
|
||||
bind r source-file ~/.tmux.conf
|
||||
|
||||
# switch panes using Alt-arrow without prefix
|
||||
bind -n M-Left select-pane -L
|
||||
bind -n M-Right select-pane -R
|
||||
bind -n M-Up select-pane -U
|
||||
bind -n M-Down select-pane -D
|
||||
|
||||
# Enable mouse control (clickable windows, panes, resizable panes)
|
||||
set -g mouse-select-window on
|
||||
set -g mouse-select-pane on
|
||||
set -g mouse-resize-pane on
|
||||
|
||||
######################
|
||||
### DESIGN CHANGES ###
|
||||
######################
|
||||
|
||||
# loud or quiet?
|
||||
set -g visual-activity off
|
||||
set -g visual-bell off
|
||||
set -g visual-silence off
|
||||
setw -g monitor-activity off
|
||||
set -g bell-action none
|
||||
|
||||
# modes
|
||||
setw -g clock-mode-colour colour5
|
||||
setw -g mode-style 'fg=colour1 bg=colour18 bold'
|
||||
|
||||
# panes
|
||||
set -g pane-border-style 'fg=colour19 bg=colour0'
|
||||
set -g pane-active-border-style 'bg=colour0 fg=colour9'
|
||||
|
||||
# statusbar
|
||||
set -g status-position bottom
|
||||
set -g status-justify left
|
||||
set -g status-style 'bg=colour18 fg=colour137 dim'
|
||||
set -g status-left ''
|
||||
set -g status-right '#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S '
|
||||
set -g status-right-length 50
|
||||
set -g status-left-length 20
|
||||
|
||||
setw -g window-status-current-style 'fg=colour1 bg=colour19 bold'
|
||||
setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
|
||||
|
||||
setw -g window-status-style 'fg=colour9 bg=colour18'
|
||||
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
|
||||
|
||||
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
|
||||
|
||||
# messages
|
||||
set -g message-style 'fg=colour232 bg=colour16 bold'
|
||||
264
vim/autoload/pathogen.vim
Normal file
264
vim/autoload/pathogen.vim
Normal file
@@ -0,0 +1,264 @@
|
||||
" pathogen.vim - path option manipulation
|
||||
" Maintainer: Tim Pope <http://tpo.pe/>
|
||||
" Version: 2.4
|
||||
|
||||
" Install in ~/.vim/autoload (or ~\vimfiles\autoload).
|
||||
"
|
||||
" For management of individually installed plugins in ~/.vim/bundle (or
|
||||
" ~\vimfiles\bundle), adding `execute pathogen#infect()` to the top of your
|
||||
" .vimrc is the only other setup necessary.
|
||||
"
|
||||
" The API is documented inline below.
|
||||
|
||||
if exists("g:loaded_pathogen") || &cp
|
||||
finish
|
||||
endif
|
||||
let g:loaded_pathogen = 1
|
||||
|
||||
" Point of entry for basic default usage. Give a relative path to invoke
|
||||
" pathogen#interpose() or an absolute path to invoke pathogen#surround().
|
||||
" Curly braces are expanded with pathogen#expand(): "bundle/{}" finds all
|
||||
" subdirectories inside "bundle" inside all directories in the runtime path.
|
||||
" If no arguments are given, defaults "bundle/{}", and also "pack/{}/start/{}"
|
||||
" on versions of Vim without native package support.
|
||||
function! pathogen#infect(...) abort
|
||||
if a:0
|
||||
let paths = filter(reverse(copy(a:000)), 'type(v:val) == type("")')
|
||||
else
|
||||
let paths = ['bundle/{}', 'pack/{}/start/{}']
|
||||
endif
|
||||
if has('packages')
|
||||
call filter(paths, 'v:val !~# "^pack/[^/]*/start/[^/]*$"')
|
||||
endif
|
||||
let static = '^\%([$~\\/]\|\w:[\\/]\)[^{}*]*$'
|
||||
for path in filter(copy(paths), 'v:val =~# static')
|
||||
call pathogen#surround(path)
|
||||
endfor
|
||||
for path in filter(copy(paths), 'v:val !~# static')
|
||||
if path =~# '^\%([$~\\/]\|\w:[\\/]\)'
|
||||
call pathogen#surround(path)
|
||||
else
|
||||
call pathogen#interpose(path)
|
||||
endif
|
||||
endfor
|
||||
call pathogen#cycle_filetype()
|
||||
if pathogen#is_disabled($MYVIMRC)
|
||||
return 'finish'
|
||||
endif
|
||||
return ''
|
||||
endfunction
|
||||
|
||||
" Split a path into a list.
|
||||
function! pathogen#split(path) abort
|
||||
if type(a:path) == type([]) | return a:path | endif
|
||||
if empty(a:path) | return [] | endif
|
||||
let split = split(a:path,'\\\@<!\%(\\\\\)*\zs,')
|
||||
return map(split,'substitute(v:val,''\\\([\\,]\)'',''\1'',"g")')
|
||||
endfunction
|
||||
|
||||
" Convert a list to a path.
|
||||
function! pathogen#join(...) abort
|
||||
if type(a:1) == type(1) && a:1
|
||||
let i = 1
|
||||
let space = ' '
|
||||
else
|
||||
let i = 0
|
||||
let space = ''
|
||||
endif
|
||||
let path = ""
|
||||
while i < a:0
|
||||
if type(a:000[i]) == type([])
|
||||
let list = a:000[i]
|
||||
let j = 0
|
||||
while j < len(list)
|
||||
let escaped = substitute(list[j],'[,'.space.']\|\\[\,'.space.']\@=','\\&','g')
|
||||
let path .= ',' . escaped
|
||||
let j += 1
|
||||
endwhile
|
||||
else
|
||||
let path .= "," . a:000[i]
|
||||
endif
|
||||
let i += 1
|
||||
endwhile
|
||||
return substitute(path,'^,','','')
|
||||
endfunction
|
||||
|
||||
" Convert a list to a path with escaped spaces for 'path', 'tag', etc.
|
||||
function! pathogen#legacyjoin(...) abort
|
||||
return call('pathogen#join',[1] + a:000)
|
||||
endfunction
|
||||
|
||||
" Turn filetype detection off and back on again if it was already enabled.
|
||||
function! pathogen#cycle_filetype() abort
|
||||
if exists('g:did_load_filetypes')
|
||||
filetype off
|
||||
filetype on
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" Check if a bundle is disabled. A bundle is considered disabled if its
|
||||
" basename or full name is included in the list g:pathogen_blacklist or the
|
||||
" comma delimited environment variable $VIMBLACKLIST.
|
||||
function! pathogen#is_disabled(path) abort
|
||||
if a:path =~# '\~$'
|
||||
return 1
|
||||
endif
|
||||
let sep = pathogen#slash()
|
||||
let blacklist = get(g:, 'pathogen_blacklist', get(g:, 'pathogen_disabled', [])) + pathogen#split($VIMBLACKLIST)
|
||||
if !empty(blacklist)
|
||||
call map(blacklist, 'substitute(v:val, "[\\/]$", "", "")')
|
||||
endif
|
||||
return index(blacklist, fnamemodify(a:path, ':t')) != -1 || index(blacklist, a:path) != -1
|
||||
endfunction
|
||||
|
||||
" Prepend the given directory to the runtime path and append its corresponding
|
||||
" after directory. Curly braces are expanded with pathogen#expand().
|
||||
function! pathogen#surround(path) abort
|
||||
let sep = pathogen#slash()
|
||||
let rtp = pathogen#split(&rtp)
|
||||
let path = fnamemodify(a:path, ':s?[\\/]\=$??')
|
||||
let before = filter(pathogen#expand(path), '!pathogen#is_disabled(v:val)')
|
||||
let after = filter(reverse(pathogen#expand(path, sep.'after')), '!pathogen#is_disabled(v:val[0 : -7])')
|
||||
call filter(rtp, 'index(before + after, v:val) == -1')
|
||||
let &rtp = pathogen#join(before, rtp, after)
|
||||
return &rtp
|
||||
endfunction
|
||||
|
||||
" For each directory in the runtime path, add a second entry with the given
|
||||
" argument appended. Curly braces are expanded with pathogen#expand().
|
||||
function! pathogen#interpose(name) abort
|
||||
let sep = pathogen#slash()
|
||||
let name = a:name
|
||||
if has_key(s:done_bundles, name)
|
||||
return ""
|
||||
endif
|
||||
let s:done_bundles[name] = 1
|
||||
let list = []
|
||||
for dir in pathogen#split(&rtp)
|
||||
if dir =~# '\<after$'
|
||||
let list += reverse(filter(pathogen#expand(dir[0 : -6].name, sep.'after'), '!pathogen#is_disabled(v:val[0 : -7])')) + [dir]
|
||||
else
|
||||
let list += [dir] + filter(pathogen#expand(dir.sep.name), '!pathogen#is_disabled(v:val)')
|
||||
endif
|
||||
endfor
|
||||
let &rtp = pathogen#join(pathogen#uniq(list))
|
||||
return 1
|
||||
endfunction
|
||||
|
||||
let s:done_bundles = {}
|
||||
|
||||
" Invoke :helptags on all non-$VIM doc directories in runtimepath.
|
||||
function! pathogen#helptags() abort
|
||||
let sep = pathogen#slash()
|
||||
for glob in pathogen#split(&rtp)
|
||||
for dir in map(split(glob(glob), "\n"), 'v:val.sep."/doc/".sep')
|
||||
if (dir)[0 : strlen($VIMRUNTIME)] !=# $VIMRUNTIME.sep && filewritable(dir) == 2 && !empty(split(glob(dir.'*.txt'))) && (!filereadable(dir.'tags') || filewritable(dir.'tags'))
|
||||
silent! execute 'helptags' pathogen#fnameescape(dir)
|
||||
endif
|
||||
endfor
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
command! -bar Helptags :call pathogen#helptags()
|
||||
|
||||
" Execute the given command. This is basically a backdoor for --remote-expr.
|
||||
function! pathogen#execute(...) abort
|
||||
for command in a:000
|
||||
execute command
|
||||
endfor
|
||||
return ''
|
||||
endfunction
|
||||
|
||||
" Section: Unofficial
|
||||
|
||||
function! pathogen#is_absolute(path) abort
|
||||
return a:path =~# (has('win32') ? '^\%([\\/]\|\w:\)[\\/]\|^[~$]' : '^[/~$]')
|
||||
endfunction
|
||||
|
||||
" Given a string, returns all possible permutations of comma delimited braced
|
||||
" alternatives of that string. pathogen#expand('/{a,b}/{c,d}') yields
|
||||
" ['/a/c', '/a/d', '/b/c', '/b/d']. Empty braces are treated as a wildcard
|
||||
" and globbed. Actual globs are preserved.
|
||||
function! pathogen#expand(pattern, ...) abort
|
||||
let after = a:0 ? a:1 : ''
|
||||
let pattern = substitute(a:pattern, '^[~$][^\/]*', '\=expand(submatch(0))', '')
|
||||
if pattern =~# '{[^{}]\+}'
|
||||
let [pre, pat, post] = split(substitute(pattern, '\(.\{-\}\){\([^{}]\+\)}\(.*\)', "\\1\001\\2\001\\3", ''), "\001", 1)
|
||||
let found = map(split(pat, ',', 1), 'pre.v:val.post')
|
||||
let results = []
|
||||
for pattern in found
|
||||
call extend(results, pathogen#expand(pattern))
|
||||
endfor
|
||||
elseif pattern =~# '{}'
|
||||
let pat = matchstr(pattern, '^.*{}[^*]*\%($\|[\\/]\)')
|
||||
let post = pattern[strlen(pat) : -1]
|
||||
let results = map(split(glob(substitute(pat, '{}', '*', 'g')), "\n"), 'v:val.post')
|
||||
else
|
||||
let results = [pattern]
|
||||
endif
|
||||
let vf = pathogen#slash() . 'vimfiles'
|
||||
call map(results, 'v:val =~# "\\*" ? v:val.after : isdirectory(v:val.vf.after) ? v:val.vf.after : isdirectory(v:val.after) ? v:val.after : ""')
|
||||
return filter(results, '!empty(v:val)')
|
||||
endfunction
|
||||
|
||||
" \ on Windows unless shellslash is set, / everywhere else.
|
||||
function! pathogen#slash() abort
|
||||
return !exists("+shellslash") || &shellslash ? '/' : '\'
|
||||
endfunction
|
||||
|
||||
function! pathogen#separator() abort
|
||||
return pathogen#slash()
|
||||
endfunction
|
||||
|
||||
" Convenience wrapper around glob() which returns a list.
|
||||
function! pathogen#glob(pattern) abort
|
||||
let files = split(glob(a:pattern),"\n")
|
||||
return map(files,'substitute(v:val,"[".pathogen#slash()."/]$","","")')
|
||||
endfunction
|
||||
|
||||
" Like pathogen#glob(), only limit the results to directories.
|
||||
function! pathogen#glob_directories(pattern) abort
|
||||
return filter(pathogen#glob(a:pattern),'isdirectory(v:val)')
|
||||
endfunction
|
||||
|
||||
" Remove duplicates from a list.
|
||||
function! pathogen#uniq(list) abort
|
||||
let i = 0
|
||||
let seen = {}
|
||||
while i < len(a:list)
|
||||
if (a:list[i] ==# '' && exists('empty')) || has_key(seen,a:list[i])
|
||||
call remove(a:list,i)
|
||||
elseif a:list[i] ==# ''
|
||||
let i += 1
|
||||
let empty = 1
|
||||
else
|
||||
let seen[a:list[i]] = 1
|
||||
let i += 1
|
||||
endif
|
||||
endwhile
|
||||
return a:list
|
||||
endfunction
|
||||
|
||||
" Backport of fnameescape().
|
||||
function! pathogen#fnameescape(string) abort
|
||||
if exists('*fnameescape')
|
||||
return fnameescape(a:string)
|
||||
elseif a:string ==# '-'
|
||||
return '\-'
|
||||
else
|
||||
return substitute(escape(a:string," \t\n*?[{`$\\%#'\"|!<"),'^[+>]','\\&','')
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" Like findfile(), but hardcoded to use the runtimepath.
|
||||
function! pathogen#runtime_findfile(file,count) abort
|
||||
let rtp = pathogen#join(1,pathogen#split(&rtp))
|
||||
let file = findfile(a:file,rtp,a:count)
|
||||
if file ==# ''
|
||||
return ''
|
||||
else
|
||||
return fnamemodify(file,':p')
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" vim:set et sw=2 foldmethod=expr foldexpr=getline(v\:lnum)=~'^\"\ Section\:'?'>1'\:getline(v\:lnum)=~#'^fu'?'a1'\:getline(v\:lnum)=~#'^endf'?'s1'\:'=':
|
||||
1
vim/bundle/OmniCppComplete
Submodule
1
vim/bundle/OmniCppComplete
Submodule
Submodule vim/bundle/OmniCppComplete added at 2fac015957
1
vim/bundle/fugitive
Submodule
1
vim/bundle/fugitive
Submodule
Submodule vim/bundle/fugitive added at a93ceff61f
1
vim/bundle/indentLine
Submodule
1
vim/bundle/indentLine
Submodule
Submodule vim/bundle/indentLine added at 5617a1cf7d
1
vim/bundle/lightline
Submodule
1
vim/bundle/lightline
Submodule
Submodule vim/bundle/lightline added at a29b8331e1
1
vim/bundle/nerdtree
Submodule
1
vim/bundle/nerdtree
Submodule
Submodule vim/bundle/nerdtree added at eed488b1cd
1
vim/bundle/rainbow
Submodule
1
vim/bundle/rainbow
Submodule
Submodule vim/bundle/rainbow added at a6c7fd5a2b
1
vim/bundle/supertab
Submodule
1
vim/bundle/supertab
Submodule
Submodule vim/bundle/supertab added at f0093ae12a
1
vim/bundle/syntastic
Submodule
1
vim/bundle/syntastic
Submodule
Submodule vim/bundle/syntastic added at 2c4b33f6e6
1
vim/bundle/taglist
Submodule
1
vim/bundle/taglist
Submodule
Submodule vim/bundle/taglist added at 53041fbc45
1
vim/bundle/vim-gitgutter
Submodule
1
vim/bundle/vim-gitgutter
Submodule
Submodule vim/bundle/vim-gitgutter added at 256702dd14
224
vim/colors/apprentice.vim
Executable file
224
vim/colors/apprentice.vim
Executable file
@@ -0,0 +1,224 @@
|
||||
" Apprentice.vim -- Vim color scheme.
|
||||
" Author: Romain Lafourcade (romainlafourcade@gmail.com)
|
||||
" Webpage: https://github.com/romainl/Apprentice
|
||||
" Description: Essentially a streamlining and conversion to xterm colors of 'sorcerer' by Jeet Sukumaran (jeetsukumaran@gmailcom)
|
||||
" Last Change: 2020-12-19
|
||||
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
|
||||
let colors_name = "apprentice"
|
||||
|
||||
if ($TERM =~ '256' || &t_Co >= 256) || has("gui_running")
|
||||
hi Normal ctermbg=235 ctermfg=250 cterm=NONE guibg=#262626 guifg=#bcbcbc gui=NONE
|
||||
hi NonText ctermbg=NONE ctermfg=240 cterm=NONE guibg=NONE guifg=#585858 gui=NONE
|
||||
hi EndOfBuffer ctermbg=NONE ctermfg=240 cterm=NONE guibg=NONE guifg=#585858 gui=NONE
|
||||
hi LineNr ctermbg=234 ctermfg=242 cterm=NONE guibg=#1c1c1c guifg=#6c6c6c gui=NONE
|
||||
hi FoldColumn ctermbg=234 ctermfg=242 cterm=NONE guibg=#1c1c1c guifg=#6c6c6c gui=NONE
|
||||
hi Folded ctermbg=234 ctermfg=242 cterm=NONE guibg=#1c1c1c guifg=#6c6c6c gui=NONE
|
||||
hi MatchParen ctermbg=234 ctermfg=229 cterm=NONE guibg=#1c1c1c guifg=#ffffaf gui=NONE
|
||||
hi SignColumn ctermbg=234 ctermfg=242 cterm=NONE guibg=#1c1c1c guifg=#6c6c6c gui=NONE
|
||||
hi Comment ctermbg=NONE ctermfg=240 cterm=NONE guibg=NONE guifg=#585858 gui=NONE
|
||||
hi Conceal ctermbg=NONE ctermfg=250 cterm=NONE guibg=NONE guifg=#bcbcbc gui=NONE
|
||||
hi Constant ctermbg=NONE ctermfg=208 cterm=NONE guibg=NONE guifg=#ff8700 gui=NONE
|
||||
hi Error ctermbg=NONE ctermfg=131 cterm=reverse guibg=NONE guifg=#af5f5f gui=reverse
|
||||
hi Identifier ctermbg=NONE ctermfg=67 cterm=NONE guibg=NONE guifg=#5f87af gui=NONE
|
||||
hi Ignore ctermbg=NONE ctermfg=NONE cterm=NONE guibg=NONE guifg=NONE gui=NONE
|
||||
hi PreProc ctermbg=NONE ctermfg=66 cterm=NONE guibg=NONE guifg=#5f8787 gui=NONE
|
||||
hi Special ctermbg=NONE ctermfg=65 cterm=NONE guibg=NONE guifg=#5f875f gui=NONE
|
||||
hi Statement ctermbg=NONE ctermfg=110 cterm=NONE guibg=NONE guifg=#87afd7 gui=NONE
|
||||
hi String ctermbg=NONE ctermfg=108 cterm=NONE guibg=NONE guifg=#87af87 gui=NONE
|
||||
hi Todo ctermbg=NONE ctermfg=NONE cterm=reverse guibg=NONE guifg=NONE gui=reverse
|
||||
hi Type ctermbg=NONE ctermfg=103 cterm=NONE guibg=NONE guifg=#8787af gui=NONE
|
||||
hi Underlined ctermbg=NONE ctermfg=66 cterm=underline guibg=NONE guifg=#5f8787 gui=underline
|
||||
hi Pmenu ctermbg=238 ctermfg=250 cterm=NONE guibg=#444444 guifg=#bcbcbc gui=NONE
|
||||
hi PmenuSbar ctermbg=240 ctermfg=NONE cterm=NONE guibg=#585858 guifg=NONE gui=NONE
|
||||
hi PmenuSel ctermbg=66 ctermfg=235 cterm=NONE guibg=#5f8787 guifg=#262626 gui=NONE
|
||||
hi PmenuThumb ctermbg=66 ctermfg=66 cterm=NONE guibg=#5f8787 guifg=#5f8787 gui=NONE
|
||||
hi ErrorMsg ctermbg=235 ctermfg=131 cterm=reverse guibg=#262626 guifg=#af5f5f gui=reverse
|
||||
hi ModeMsg ctermbg=235 ctermfg=108 cterm=reverse guibg=#262626 guifg=#87af87 gui=reverse
|
||||
hi MoreMsg ctermbg=NONE ctermfg=66 cterm=NONE guibg=NONE guifg=#5f8787 gui=NONE
|
||||
hi Question ctermbg=NONE ctermfg=108 cterm=NONE guibg=NONE guifg=#87af87 gui=NONE
|
||||
hi WarningMsg ctermbg=NONE ctermfg=131 cterm=NONE guibg=NONE guifg=#af5f5f gui=NONE
|
||||
hi TabLine ctermbg=238 ctermfg=101 cterm=NONE guibg=#444444 guifg=#87875f gui=NONE
|
||||
hi TabLineFill ctermbg=238 ctermfg=238 cterm=NONE guibg=#444444 guifg=#444444 gui=NONE
|
||||
hi TabLineSel ctermbg=101 ctermfg=235 cterm=NONE guibg=#87875f guifg=#262626 gui=NONE
|
||||
hi ToolbarLine ctermbg=234 ctermfg=NONE cterm=NONE guibg=#1c1c1c guifg=NONE gui=NONE
|
||||
hi ToolbarButton ctermbg=240 ctermfg=250 cterm=NONE guibg=#585858 guifg=#bcbcbc gui=NONE
|
||||
hi Cursor ctermbg=242 ctermfg=NONE cterm=NONE guibg=#6c6c6c guifg=NONE gui=NONE
|
||||
hi CursorColumn ctermbg=236 ctermfg=NONE cterm=NONE guibg=#303030 guifg=NONE gui=NONE
|
||||
hi CursorLineNr ctermbg=236 ctermfg=73 cterm=NONE guibg=#303030 guifg=#5fafaf gui=NONE
|
||||
hi CursorLine ctermbg=236 ctermfg=NONE cterm=NONE guibg=#303030 guifg=NONE gui=NONE
|
||||
hi helpLeadBlank ctermbg=NONE ctermfg=NONE cterm=NONE guibg=NONE guifg=NONE gui=NONE
|
||||
hi helpNormal ctermbg=NONE ctermfg=NONE cterm=NONE guibg=NONE guifg=NONE gui=NONE
|
||||
hi StatusLine ctermbg=101 ctermfg=235 cterm=NONE guibg=#87875f guifg=#262626 gui=NONE
|
||||
hi StatusLineNC ctermbg=238 ctermfg=101 cterm=NONE guibg=#444444 guifg=#87875f gui=NONE
|
||||
hi StatusLineTerm ctermbg=101 ctermfg=235 cterm=NONE guibg=#87875f guifg=#262626 gui=NONE
|
||||
hi StatusLineTermNC ctermbg=238 ctermfg=101 cterm=NONE guibg=#444444 guifg=#87875f gui=NONE
|
||||
hi Visual ctermbg=235 ctermfg=110 cterm=reverse guibg=#262626 guifg=#87afd7 gui=reverse
|
||||
hi VisualNOS ctermbg=NONE ctermfg=NONE cterm=underline guibg=NONE guifg=NONE gui=underline
|
||||
hi VertSplit ctermbg=238 ctermfg=238 cterm=NONE guibg=#444444 guifg=#444444 gui=NONE
|
||||
hi WildMenu ctermbg=110 ctermfg=235 cterm=NONE guibg=#87afd7 guifg=#262626 gui=NONE
|
||||
hi Function ctermbg=NONE ctermfg=229 cterm=NONE guibg=NONE guifg=#ffffaf gui=NONE
|
||||
hi SpecialKey ctermbg=NONE ctermfg=240 cterm=NONE guibg=NONE guifg=#585858 gui=NONE
|
||||
hi Title ctermbg=NONE ctermfg=231 cterm=NONE guibg=NONE guifg=#ffffff gui=NONE
|
||||
hi DiffAdd ctermbg=235 ctermfg=108 cterm=reverse guibg=#262626 guifg=#87af87 gui=reverse
|
||||
hi DiffChange ctermbg=235 ctermfg=103 cterm=reverse guibg=#262626 guifg=#8787af gui=reverse
|
||||
hi DiffDelete ctermbg=235 ctermfg=131 cterm=reverse guibg=#262626 guifg=#af5f5f gui=reverse
|
||||
hi DiffText ctermbg=235 ctermfg=208 cterm=reverse guibg=#262626 guifg=#ff8700 gui=reverse
|
||||
hi IncSearch ctermbg=131 ctermfg=235 cterm=NONE guibg=#af5f5f guifg=#262626 gui=NONE
|
||||
hi Search ctermbg=229 ctermfg=235 cterm=NONE guibg=#ffffaf guifg=#262626 gui=NONE
|
||||
hi Directory ctermbg=NONE ctermfg=73 cterm=NONE guibg=NONE guifg=#5fafaf gui=NONE
|
||||
hi debugPC ctermbg=67 ctermfg=NONE cterm=NONE guibg=#5f87af guifg=NONE gui=NONE
|
||||
hi debugBreakpoint ctermbg=131 ctermfg=NONE cterm=NONE guibg=#af5f5f guifg=NONE gui=NONE
|
||||
hi SpellBad ctermbg=NONE ctermfg=131 cterm=undercurl guibg=NONE guifg=#af5f5f gui=undercurl guisp=#af5f5f
|
||||
hi SpellCap ctermbg=NONE ctermfg=73 cterm=undercurl guibg=NONE guifg=#5fafaf gui=undercurl guisp=#5fafaf
|
||||
hi SpellLocal ctermbg=NONE ctermfg=65 cterm=undercurl guibg=NONE guifg=#5f875f gui=undercurl guisp=#5f875f
|
||||
hi SpellRare ctermbg=NONE ctermfg=208 cterm=undercurl guibg=NONE guifg=#ff8700 gui=undercurl guisp=#ff8700
|
||||
hi ColorColumn ctermbg=234 ctermfg=NONE cterm=NONE guibg=#1c1c1c guifg=NONE gui=NONE
|
||||
|
||||
elseif &t_Co == 8 || $TERM !~# '^linux' || &t_Co == 16
|
||||
set t_Co=16
|
||||
|
||||
hi Normal ctermbg=black ctermfg=lightgrey cterm=NONE
|
||||
hi NonText ctermbg=NONE ctermfg=darkgrey cterm=NONE
|
||||
hi EndOfBuffer ctermbg=NONE ctermfg=darkgrey cterm=NONE
|
||||
hi LineNr ctermbg=black ctermfg=lightgrey cterm=NONE
|
||||
hi FoldColumn ctermbg=black ctermfg=lightgrey cterm=NONE
|
||||
hi Folded ctermbg=black ctermfg=lightgrey cterm=NONE
|
||||
hi MatchParen ctermbg=black ctermfg=yellow cterm=NONE
|
||||
hi SignColumn ctermbg=black ctermfg=lightgrey cterm=NONE
|
||||
hi Comment ctermbg=NONE ctermfg=darkgrey cterm=NONE
|
||||
hi Conceal ctermbg=NONE ctermfg=lightgrey cterm=NONE
|
||||
hi Constant ctermbg=NONE ctermfg=red cterm=NONE
|
||||
hi Error ctermbg=NONE ctermfg=darkred cterm=reverse
|
||||
hi Identifier ctermbg=NONE ctermfg=darkblue cterm=NONE
|
||||
hi Ignore ctermbg=NONE ctermfg=NONE cterm=NONE
|
||||
hi PreProc ctermbg=NONE ctermfg=darkcyan cterm=NONE
|
||||
hi Special ctermbg=NONE ctermfg=darkgreen cterm=NONE
|
||||
hi Statement ctermbg=NONE ctermfg=blue cterm=NONE
|
||||
hi String ctermbg=NONE ctermfg=green cterm=NONE
|
||||
hi Todo ctermbg=NONE ctermfg=NONE cterm=reverse
|
||||
hi Type ctermbg=NONE ctermfg=magenta cterm=NONE
|
||||
hi Underlined ctermbg=NONE ctermfg=darkcyan cterm=underline
|
||||
hi Pmenu ctermbg=darkgrey ctermfg=lightgrey cterm=NONE
|
||||
hi PmenuSbar ctermbg=darkgrey ctermfg=NONE cterm=NONE
|
||||
hi PmenuSel ctermbg=darkcyan ctermfg=black cterm=NONE
|
||||
hi PmenuThumb ctermbg=darkcyan ctermfg=darkcyan cterm=NONE
|
||||
hi ErrorMsg ctermbg=black ctermfg=darkred cterm=reverse
|
||||
hi ModeMsg ctermbg=black ctermfg=green cterm=reverse
|
||||
hi MoreMsg ctermbg=NONE ctermfg=darkcyan cterm=NONE
|
||||
hi Question ctermbg=NONE ctermfg=green cterm=NONE
|
||||
hi WarningMsg ctermbg=NONE ctermfg=darkred cterm=NONE
|
||||
hi TabLine ctermbg=darkgrey ctermfg=darkyellow cterm=NONE
|
||||
hi TabLineFill ctermbg=darkgrey ctermfg=darkgrey cterm=NONE
|
||||
hi TabLineSel ctermbg=darkyellow ctermfg=black cterm=NONE
|
||||
hi ToolbarLine ctermbg=black ctermfg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermbg=darkgrey ctermfg=lightgrey cterm=NONE
|
||||
hi Cursor ctermbg=lightgrey ctermfg=NONE cterm=NONE
|
||||
hi CursorColumn ctermbg=darkgrey ctermfg=NONE cterm=NONE
|
||||
hi CursorLineNr ctermbg=darkgrey ctermfg=cyan cterm=NONE
|
||||
hi CursorLine ctermbg=darkgrey ctermfg=NONE cterm=NONE
|
||||
hi helpLeadBlank ctermbg=NONE ctermfg=NONE cterm=NONE
|
||||
hi helpNormal ctermbg=NONE ctermfg=NONE cterm=NONE
|
||||
hi StatusLine ctermbg=darkyellow ctermfg=black cterm=NONE
|
||||
hi StatusLineNC ctermbg=darkgrey ctermfg=darkyellow cterm=NONE
|
||||
hi StatusLineTerm ctermbg=darkyellow ctermfg=black cterm=NONE
|
||||
hi StatusLineTermNC ctermbg=darkgrey ctermfg=darkyellow cterm=NONE
|
||||
hi Visual ctermbg=black ctermfg=blue cterm=reverse
|
||||
hi VisualNOS ctermbg=NONE ctermfg=NONE cterm=underline
|
||||
hi VertSplit ctermbg=darkgrey ctermfg=darkgrey cterm=NONE
|
||||
hi WildMenu ctermbg=blue ctermfg=black cterm=NONE
|
||||
hi Function ctermbg=NONE ctermfg=yellow cterm=NONE
|
||||
hi SpecialKey ctermbg=NONE ctermfg=darkgrey cterm=NONE
|
||||
hi Title ctermbg=NONE ctermfg=white cterm=NONE
|
||||
hi DiffAdd ctermbg=black ctermfg=green cterm=reverse
|
||||
hi DiffChange ctermbg=black ctermfg=magenta cterm=reverse
|
||||
hi DiffDelete ctermbg=black ctermfg=darkred cterm=reverse
|
||||
hi DiffText ctermbg=black ctermfg=red cterm=reverse
|
||||
hi IncSearch ctermbg=darkred ctermfg=black cterm=NONE
|
||||
hi Search ctermbg=yellow ctermfg=black cterm=NONE
|
||||
hi Directory ctermbg=NONE ctermfg=cyan cterm=NONE
|
||||
hi debugPC ctermbg=darkblue ctermfg=NONE cterm=NONE
|
||||
hi debugBreakpoint ctermbg=darkred ctermfg=NONE cterm=NONE
|
||||
hi SpellBad ctermbg=NONE ctermfg=darkred cterm=undercurl
|
||||
hi SpellCap ctermbg=NONE ctermfg=cyan cterm=undercurl
|
||||
hi SpellLocal ctermbg=NONE ctermfg=darkgreen cterm=undercurl
|
||||
hi SpellRare ctermbg=NONE ctermfg=red cterm=undercurl
|
||||
hi ColorColumn ctermbg=black ctermfg=NONE cterm=NONE
|
||||
endif
|
||||
|
||||
hi link Terminal Normal
|
||||
hi link Number Constant
|
||||
hi link CursorIM Cursor
|
||||
hi link Boolean Constant
|
||||
hi link Character Constant
|
||||
hi link Conditional Statement
|
||||
hi link Debug Special
|
||||
hi link Define PreProc
|
||||
hi link Delimiter Special
|
||||
hi link Exception Statement
|
||||
hi link Float Number
|
||||
hi link HelpCommand Statement
|
||||
hi link HelpExample Statement
|
||||
hi link Include PreProc
|
||||
hi link Keyword Statement
|
||||
hi link Label Statement
|
||||
hi link Macro PreProc
|
||||
hi link Number Constant
|
||||
hi link Operator Statement
|
||||
hi link PreCondit PreProc
|
||||
hi link Repeat Statement
|
||||
hi link SpecialChar Special
|
||||
hi link SpecialComment Special
|
||||
hi link StorageClass Type
|
||||
hi link Structure Type
|
||||
hi link Tag Special
|
||||
hi link Terminal Normal
|
||||
hi link Typedef Type
|
||||
hi link htmlTagName Statement
|
||||
hi link htmlEndTag htmlTagName
|
||||
hi link htmlLink Function
|
||||
hi link htmlSpecialTagName htmlTagName
|
||||
hi link htmlTag htmlTagName
|
||||
hi link htmlBold Normal
|
||||
hi link htmlItalic Normal
|
||||
hi link htmlArg htmlTagName
|
||||
hi link xmlTag Statement
|
||||
hi link xmlTagName Statement
|
||||
hi link xmlEndTag Statement
|
||||
hi link markdownItalic Preproc
|
||||
hi link asciidocQuotedEmphasized Preproc
|
||||
hi link diffBDiffer WarningMsg
|
||||
hi link diffCommon WarningMsg
|
||||
hi link diffDiffer WarningMsg
|
||||
hi link diffIdentical WarningMsg
|
||||
hi link diffIsA WarningMsg
|
||||
hi link diffNoEOL WarningMsg
|
||||
hi link diffOnly WarningMsg
|
||||
hi link diffRemoved WarningMsg
|
||||
hi link diffAdded String
|
||||
hi link QuickFixLine Search
|
||||
|
||||
let g:terminal_ansi_colors = [
|
||||
\ '#1c1c1c',
|
||||
\ '#af5f5f',
|
||||
\ '#5f875f',
|
||||
\ '#87875f',
|
||||
\ '#5f87af',
|
||||
\ '#5f5f87',
|
||||
\ '#5f8787',
|
||||
\ '#6c6c6c',
|
||||
\ '#444444',
|
||||
\ '#ff8700',
|
||||
\ '#87af87',
|
||||
\ '#ffffaf',
|
||||
\ '#87afd7',
|
||||
\ '#8787af',
|
||||
\ '#5fafaf',
|
||||
\ '#ffffff',
|
||||
\ ]
|
||||
|
||||
" Generated with RNB (https://github.com/romainl/vim-rnb)
|
||||
73
vimrc
Normal file
73
vimrc
Normal file
@@ -0,0 +1,73 @@
|
||||
execute pathogen#infect()
|
||||
|
||||
set expandtab
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set mouse=nicr
|
||||
set ttymouse=sgr "Support wide screens
|
||||
set incsearch
|
||||
set hlsearch
|
||||
set ignorecase
|
||||
set smartcase
|
||||
set smartindent
|
||||
set tags=./tags;
|
||||
set tags+=./kernel.tags;
|
||||
:nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
|
||||
syntax on
|
||||
filetype plugin indent on
|
||||
"set omnifunc=syntaxcomplete#Complete
|
||||
colorscheme apprentice
|
||||
|
||||
map <C-\> :tab split<CR>:exec("tag ".expand("<cword>"))<CR>
|
||||
map <A-]> :vsp <CR>:exec("tag ".expand("<cword>"))<CR>
|
||||
|
||||
" Load all plugins now.
|
||||
" Plugins need to be added to runtimepath before helptags can be generated.
|
||||
" packloadall
|
||||
" Load all of the helptags now, after plugins have been loaded.
|
||||
" All messages and errors will be ignored.
|
||||
silent! helptags ALL
|
||||
"
|
||||
|
||||
nnoremap <leader>n :NERDTreeFocus<CR>
|
||||
nnoremap <C-n> :NERDTreeToggle<CR>
|
||||
nnoremap <C-f> :NERDTreeFind<CR>
|
||||
|
||||
nnoremap <C-l> :TlistToggle<CR>
|
||||
nnoremap <C-p> :TlistShowPrototype<CR>
|
||||
let Tlist_Use_Right_Window = 1 " Move window to right side
|
||||
let Tlist_Exit_OnlyWindow = 1 " Close if only window left
|
||||
let Tlist_Hightlight_Tag_On_BufEnter = 1 " Hightlight current tag
|
||||
let Tlist_Display_Prototypte = 1 " Show full prototype at bottom
|
||||
|
||||
" vim-rainbow
|
||||
let g:rainbow_active = 1
|
||||
|
||||
nnoremap <C-g> :GitGutterToggle<CR>
|
||||
|
||||
let OmniCpp_MayCompleteDot = 0
|
||||
let OmniCpp_MayCompleteArrow = 0
|
||||
|
||||
let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
|
||||
|
||||
" Fugitive conflict resolution
|
||||
nnoremap <leader>gd :Gvdiff<CR>
|
||||
nnoremap gdh :diffget //2<CR>
|
||||
nnoremap gdl :diffget //3<CR>
|
||||
|
||||
" YAML editor settings
|
||||
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
||||
autocmd FileType yml setlocal ts=2 sts=2 sw=2 expandtab
|
||||
let g:indentLine_char = '┆'
|
||||
let g:indentLine_color_term = 237
|
||||
|
||||
" Syntastic
|
||||
set statusline+=%#warningmsg#
|
||||
set statusline+=%{SyntasticStatuslineFlag()}
|
||||
set statusline+=%*
|
||||
|
||||
let g:syntastic_always_populate_loc_list = 1
|
||||
let g:syntastic_auto_loc_list = 1
|
||||
let g:syntastic_check_on_open = 0
|
||||
let g:syntastic_check_on_wq = 0
|
||||
nnoremap <C-y> :SyntasticToggleMode<CR>
|
||||
Reference in New Issue
Block a user