diff options
-rw-r--r-- | .bashrc | 133 | ||||
-rw-r--r-- | .gitconfig | 14 | ||||
-rw-r--r-- | .gitignore_global | 41 | ||||
m--------- | .vim/bundle/Vundle.vim | 0 | ||||
m--------- | .vim/bundle/ctrlp.vim | 0 | ||||
m--------- | .vim/bundle/delimitMate | 0 | ||||
m--------- | .vim/bundle/emmet-vim | 0 | ||||
m--------- | .vim/bundle/gruvbox | 0 | ||||
m--------- | .vim/bundle/nerdtree | 0 | ||||
m--------- | .vim/bundle/previm | 0 | ||||
m--------- | .vim/bundle/salt-vim | 0 | ||||
m--------- | .vim/bundle/syntastic | 0 | ||||
m--------- | .vim/bundle/vim-airline | 0 | ||||
m--------- | .vim/bundle/vim-ansible-yaml | 0 | ||||
m--------- | .vim/bundle/vim-bufferline | 0 | ||||
m--------- | .vim/bundle/vim-commentary | 0 | ||||
m--------- | .vim/bundle/vim-easymotion | 0 | ||||
m--------- | .vim/bundle/vim-fugitive | 0 | ||||
m--------- | .vim/bundle/vim-gitgutter | 0 | ||||
m--------- | .vim/bundle/vim-multiple-cursors | 0 | ||||
-rw-r--r-- | .vim/colors/256_jungle.vim | 102 | ||||
-rw-r--r-- | .vimrc | 188 | ||||
-rwxr-xr-x | linker.sh | 30 |
23 files changed, 508 insertions, 0 deletions
@@ -0,0 +1,133 @@ +# ~/.bashrc: executed by bash(1) for non-login shells. +# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) +# for examples + +# If not running interactively, don't do anything +case $- in + *i*) ;; + *) return;; +esac + +# don't put duplicate lines or lines starting with space in the history. +# See bash(1) for more options +HISTCONTROL=ignoreboth + +# append to the history file, don't overwrite it +shopt -s histappend + +# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) +HISTSIZE=1000 +HISTFILESIZE=2000 + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + +# If set, the pattern "**" used in a pathname expansion context will +# match all files and zero or more directories and subdirectories. +#shopt -s globstar + +# make less more friendly for non-text input files, see lesspipe(1) +[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" + +# 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 + +# set a fancy prompt (non-color, unless we know we "want" color) +export TERM=xterm-256color +case "$TERM" in + xterm-color|*-256color) color_prompt=yes;; +esac + +# uncomment for a colored prompt, if the terminal has the capability; turned +# off by default to not distract the user: the focus in a terminal window +# should be on the output of commands, not on the prompt +force_color_prompt=yes + +if [ -n "$force_color_prompt" ]; then + if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then + # We have color support; assume it's compliant with Ecma-48 + # (ISO/IEC-6429). (Lack of such support is extremely rare, and such + # a case would tend to support setf rather than setaf.) + color_prompt=yes + else + color_prompt= + fi +fi + +source /usr/share/git/completion/git-prompt.sh + +if [ "$color_prompt" = yes ]; then + PS1='\[\e[38;5;208m\]\u\[\e[38;5;167m\]@\h\[\e[38;5;142m\]:\w\[\e[38;5;66m\]$(__git_ps1 " (%s)")\[\e[00m\]\n\$ ' +else + PS1='\u@\h:\w\$ ' +fi +unset color_prompt force_color_prompt + +# If this is an xterm set the title to user@host:dir +case "$TERM" in +xterm*|rxvt*) + PS1="\[\e]0;\u@\h: \w\a\]$PS1" + ;; +*) + ;; +esac + +# enable color support of ls and also add handy aliases +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls --color=auto' + #alias dir='dir --color=auto' + #alias vdir='vdir --color=auto' + + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' +fi + +# colored GCC warnings and errors +export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' + +# some more ls aliases +alias ls='ls --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F' +alias ll='ls --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -alF' +alias la='ls --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -AF' +alias l='ls -CF' + +alias grep='grep --color=tty -d skip' + +alias vi=vim +alias cp="cp -i" #confirms before overwrite + +# Add an "alert" alias for long running commands. Use like so: +# sleep 10; alert +alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' + +# Alias definitions. +# You may want to put all your additions into a separate file like +# ~/.bash_aliases, instead of adding them here directly. +# See /usr/share/doc/bash-doc/examples in the bash-doc package. + +if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases +fi + +# 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 ! shopt -oq posix; then + if [ -f /usr/share/bash-completion/bash_completion ]; then + . /usr/share/bash-completion/bash_completion + elif [ -f /etc/bash_completion ]; then + . /etc/bash_completion + fi +fi +# >>>>BEGIN ADDED BY CNCHI INSTALLER<<<< # +BROWSER=/usr/bin/chromium +EDITOR=/usr/bin/vim +# >>>>>END ADDED BY CNCHI INSTALLER<<<<< # + +export PAGER='vimpager' +alias less=$PAGER diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..b1635ce --- /dev/null +++ b/.gitconfig @@ -0,0 +1,14 @@ +[user] + email = mattkohls13@gmail.com + name = Matt Kohls + signingkey = A07E2D8DC7660C76 +[help] + autocorrect = 1 +[alias] + st = status + ll = log --stat --abbrev-commit + graph1 = log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m" + graph2 = log --graph --full-history --all --color --pretty=tformat:"%C(red)%h%C(reset)%x09%C(green)%d%C(reset)%C(bold)%s%C(reset)%C(yellow)(%an)%C(reset)" +[core] + editor = vim + excludesfile = /home/matt/.gitignore_global diff --git a/.gitignore_global b/.gitignore_global new file mode 100644 index 0000000..622962e --- /dev/null +++ b/.gitignore_global @@ -0,0 +1,41 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so + +# Packages # +############ +*.7z +*.dmg +*.gz +*.iso +*.jar +*.rar +*.tar +*.zip + +# vim # +####### +**/*~ +**/*.bak +**/*.sw[abcdefghijklmnop] + +# Logs and databases # +###################### +*.log +*.sql +*.sqlite + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db diff --git a/.vim/bundle/Vundle.vim b/.vim/bundle/Vundle.vim new file mode 160000 +Subproject fef1c2f31862c44cf5295ef86c086efba4af20a diff --git a/.vim/bundle/ctrlp.vim b/.vim/bundle/ctrlp.vim new file mode 160000 +Subproject 564176f01d7f3f7f8ab452ff4e1f5314de7b098 diff --git a/.vim/bundle/delimitMate b/.vim/bundle/delimitMate new file mode 160000 +Subproject b5719054beebe0135c94f4711a06dc7588041f0 diff --git a/.vim/bundle/emmet-vim b/.vim/bundle/emmet-vim new file mode 160000 +Subproject f4b097af50833964e15f17192f2d1c336e34936 diff --git a/.vim/bundle/gruvbox b/.vim/bundle/gruvbox new file mode 160000 +Subproject 00729ba14e0c7dd51b1bb0b829860b8047d4dde diff --git a/.vim/bundle/nerdtree b/.vim/bundle/nerdtree new file mode 160000 +Subproject 29cf96e45b4830a9a2351514fe102bb7a95a27d diff --git a/.vim/bundle/previm b/.vim/bundle/previm new file mode 160000 +Subproject b5dba0837b464063284a8a97e7b9e5e378db545 diff --git a/.vim/bundle/salt-vim b/.vim/bundle/salt-vim new file mode 160000 +Subproject 5b15d379fbcbb84f82c6a345abc08cea9d374be diff --git a/.vim/bundle/syntastic b/.vim/bundle/syntastic new file mode 160000 +Subproject 2b84b14cd1ef0d4bb74d91ca08a8818d84d8982 diff --git a/.vim/bundle/vim-airline b/.vim/bundle/vim-airline new file mode 160000 +Subproject 7a720bbbd74b22fc029844c9ff087bbc1e09eff diff --git a/.vim/bundle/vim-ansible-yaml b/.vim/bundle/vim-ansible-yaml new file mode 160000 +Subproject 33643fc45b20e217e985436d005685dc8f476f0 diff --git a/.vim/bundle/vim-bufferline b/.vim/bundle/vim-bufferline new file mode 160000 +Subproject 651fd010aa9613a4b8636a4af8a2db0d2280026 diff --git a/.vim/bundle/vim-commentary b/.vim/bundle/vim-commentary new file mode 160000 +Subproject 73e0d9a9d1f51b6cc9dc965f62669194ae851cb diff --git a/.vim/bundle/vim-easymotion b/.vim/bundle/vim-easymotion new file mode 160000 +Subproject 5c6f3cd9a713491e6b32752a05c45198aa91540 diff --git a/.vim/bundle/vim-fugitive b/.vim/bundle/vim-fugitive new file mode 160000 +Subproject aac85a268e89a6c8be79341e130ac90256fadbd diff --git a/.vim/bundle/vim-gitgutter b/.vim/bundle/vim-gitgutter new file mode 160000 +Subproject 402257f920ea7e75af6c0a0c1a33ec4c0cd9d4a diff --git a/.vim/bundle/vim-multiple-cursors b/.vim/bundle/vim-multiple-cursors new file mode 160000 +Subproject 51d0717f63cc231f11b4b63ee5b611f589dce1b diff --git a/.vim/colors/256_jungle.vim b/.vim/colors/256_jungle.vim new file mode 100644 index 0000000..5a58587 --- /dev/null +++ b/.vim/colors/256_jungle.vim @@ -0,0 +1,102 @@ +" Vim color file - 256_jungle +" Generated by http://bytefluent.com/vivify 2016-02-13 +set background=dark +if version > 580 + hi clear + if exists("syntax_on") + syntax reset + endif +endif + +set t_Co=256 +let g:colors_name = "256_jungle" + +"hi IncSearch -- no settings -- +"hi WildMenu -- no settings -- +"hi SignColumn -- no settings -- +"hi Title -- no settings -- +"hi CTagsMember -- no settings -- +"hi CTagsGlobalConstant -- no settings -- +hi Normal guifg=#dadada guibg=#1c1c1c guisp=#1c1c1c gui=NONE ctermfg=253 ctermbg=234 cterm=NONE +"hi CTagsImport -- no settings -- +"hi CTagsGlobalVariable -- no settings -- +"hi SpellRare -- no settings -- +"hi EnumerationValue -- no settings -- +"hi Float -- no settings -- +"hi CursorLine -- no settings -- +"hi Union -- no settings -- +"hi Question -- no settings -- +"hi WarningMsg -- no settings -- +"hi VisualNOS -- no settings -- +"hi DiffDelete -- no settings -- +"hi ModeMsg -- no settings -- +"hi CursorColumn -- no settings -- +"hi EnumerationName -- no settings -- +"hi MoreMsg -- no settings -- +"hi SpellCap -- no settings -- +"hi DiffChange -- no settings -- +"hi SpellLocal -- no settings -- +"hi DefinedName -- no settings -- +"hi MatchParen -- no settings -- +"hi LocalVariable -- no settings -- +"hi SpellBad -- no settings -- +"hi CTagsClass -- no settings -- +"hi Underlined -- no settings -- +"hi DiffAdd -- no settings -- +"hi clear -- no settings -- +hi SpecialComment guifg=#d78700 guibg=NONE guisp=NONE gui=NONE ctermfg=172 ctermbg=NONE cterm=NONE +hi Typedef guifg=#d75f00 guibg=NONE guisp=NONE gui=NONE ctermfg=166 ctermbg=NONE cterm=NONE +hi Folded guifg=#af5f87 guibg=NONE guisp=NONE gui=NONE ctermfg=132 ctermbg=NONE cterm=NONE +hi PreCondit guifg=#767676 guibg=NONE guisp=NONE gui=NONE ctermfg=243 ctermbg=NONE cterm=NONE +hi Include guifg=#767676 guibg=NONE guisp=NONE gui=NONE ctermfg=243 ctermbg=NONE cterm=NONE +hi TabLineSel guifg=#8787d7 guibg=#303030 guisp=#303030 gui=NONE ctermfg=104 ctermbg=236 cterm=NONE +hi StatusLineNC guifg=#a8a8a8 guibg=#4e4e4e guisp=#4e4e4e gui=NONE ctermfg=248 ctermbg=239 cterm=NONE +hi NonText guifg=#8787ff guibg=NONE guisp=NONE gui=NONE ctermfg=105 ctermbg=NONE cterm=NONE +hi DiffText guifg=#d700ff guibg=#808080 guisp=#808080 gui=NONE ctermfg=165 ctermbg=8 cterm=NONE +hi ErrorMsg guifg=#d70000 guibg=#8a8a8a guisp=#8a8a8a gui=NONE ctermfg=160 ctermbg=245 cterm=NONE +hi Ignore guifg=#ffd75f guibg=NONE guisp=NONE gui=NONE ctermfg=221 ctermbg=NONE cterm=NONE +hi Debug guifg=#d78700 guibg=NONE guisp=NONE gui=NONE ctermfg=172 ctermbg=NONE cterm=NONE +hi PMenuSbar guifg=#9e9e9e guibg=#121212 guisp=#121212 gui=NONE ctermfg=247 ctermbg=233 cterm=NONE +hi Identifier guifg=#afaf00 guibg=NONE guisp=NONE gui=NONE ctermfg=142 ctermbg=NONE cterm=NONE +hi SpecialChar guifg=#d78700 guibg=NONE guisp=NONE gui=NONE ctermfg=172 ctermbg=NONE cterm=NONE +hi Conditional guifg=#d75f00 guibg=NONE guisp=NONE gui=NONE ctermfg=166 ctermbg=NONE cterm=NONE +hi StorageClass guifg=#d75f00 guibg=NONE guisp=NONE gui=NONE ctermfg=166 ctermbg=NONE cterm=NONE +hi Todo guifg=#d70087 guibg=NONE guisp=NONE gui=NONE ctermfg=162 ctermbg=NONE cterm=NONE +hi Special guifg=#d78700 guibg=NONE guisp=NONE gui=NONE ctermfg=172 ctermbg=NONE cterm=NONE +hi LineNr guifg=#808080 guibg=#121212 guisp=#121212 gui=NONE ctermfg=8 ctermbg=233 cterm=NONE +hi StatusLine guifg=#00afff guibg=#4e4e4e guisp=#4e4e4e gui=NONE ctermfg=39 ctermbg=239 cterm=NONE +hi Label guifg=#d75f00 guibg=NONE guisp=NONE gui=NONE ctermfg=166 ctermbg=NONE cterm=NONE +hi PMenuSel guifg=#5f87ff guibg=#080808 guisp=#080808 gui=NONE ctermfg=69 ctermbg=232 cterm=NONE +hi Search guifg=#af005f guibg=NONE guisp=NONE gui=NONE ctermfg=125 ctermbg=NONE cterm=NONE +hi Delimiter guifg=#d78700 guibg=NONE guisp=NONE gui=NONE ctermfg=172 ctermbg=NONE cterm=NONE +hi Statement guifg=#d78700 guibg=NONE guisp=NONE gui=NONE ctermfg=172 ctermbg=NONE cterm=NONE +hi Comment guifg=#585858 guibg=NONE guisp=NONE gui=NONE ctermfg=240 ctermbg=NONE cterm=NONE +hi Character guifg=#5fd700 guibg=NONE guisp=NONE gui=NONE ctermfg=76 ctermbg=NONE cterm=NONE +hi Number guifg=#5fd700 guibg=NONE guisp=NONE gui=NONE ctermfg=76 ctermbg=NONE cterm=NONE +hi Boolean guifg=#d78700 guibg=NONE guisp=NONE gui=NONE ctermfg=172 ctermbg=NONE cterm=NONE +hi Operator guifg=#d75f00 guibg=NONE guisp=NONE gui=NONE ctermfg=166 ctermbg=NONE cterm=NONE +hi TabLineFill guifg=#4e4e4e guibg=#4e4e4e guisp=#4e4e4e gui=NONE ctermfg=239 ctermbg=239 cterm=NONE +hi Define guifg=#767676 guibg=NONE guisp=NONE gui=NONE ctermfg=243 ctermbg=NONE cterm=NONE +hi Function guifg=#afaf00 guibg=NONE guisp=NONE gui=NONE ctermfg=142 ctermbg=NONE cterm=NONE +hi FoldColumn guifg=#af5f87 guibg=NONE guisp=NONE gui=NONE ctermfg=132 ctermbg=NONE cterm=NONE +hi PreProc guifg=#767676 guibg=NONE guisp=NONE gui=NONE ctermfg=243 ctermbg=NONE cterm=NONE +hi Visual guifg=#a8a8a8 guibg=#444444 guisp=#444444 gui=NONE ctermfg=248 ctermbg=238 cterm=NONE +hi VertSplit guifg=#4e4e4e guibg=#4e4e4e guisp=#4e4e4e gui=NONE ctermfg=239 ctermbg=239 cterm=NONE +hi Exception guifg=#d75f00 guibg=NONE guisp=NONE gui=NONE ctermfg=166 ctermbg=NONE cterm=NONE +hi Keyword guifg=#d75f00 guibg=NONE guisp=NONE gui=NONE ctermfg=166 ctermbg=NONE cterm=NONE +hi Type guifg=#d75f00 guibg=NONE guisp=NONE gui=NONE ctermfg=166 ctermbg=NONE cterm=NONE +hi Cursor guifg=#dadada guibg=#5f00ff guisp=#5f00ff gui=NONE ctermfg=253 ctermbg=57 cterm=NONE +hi Error guifg=NONE guibg=#ff0000 guisp=#ff0000 gui=NONE ctermfg=NONE ctermbg=196 cterm=NONE +hi PMenu guifg=#5f5fd7 guibg=#121212 guisp=#121212 gui=NONE ctermfg=62 ctermbg=233 cterm=NONE +hi SpecialKey guifg=#5faf00 guibg=NONE guisp=NONE gui=NONE ctermfg=70 ctermbg=NONE cterm=NONE +hi Constant guifg=#5fd700 guibg=NONE guisp=NONE gui=NONE ctermfg=76 ctermbg=NONE cterm=NONE +hi Tag guifg=#d78700 guibg=NONE guisp=NONE gui=NONE ctermfg=172 ctermbg=NONE cterm=NONE +hi String guifg=#5fd700 guibg=NONE guisp=NONE gui=NONE ctermfg=76 ctermbg=NONE cterm=NONE +hi PMenuThumb guifg=#a8a8a8 guibg=#121212 guisp=#121212 gui=NONE ctermfg=248 ctermbg=233 cterm=NONE +hi Repeat guifg=#d75f00 guibg=NONE guisp=NONE gui=NONE ctermfg=166 ctermbg=NONE cterm=NONE +hi Directory guifg=#5f00ff guibg=#e4e4e4 guisp=#e4e4e4 gui=NONE ctermfg=57 ctermbg=254 cterm=NONE +hi Structure guifg=#d75f00 guibg=NONE guisp=NONE gui=NONE ctermfg=166 ctermbg=NONE cterm=NONE +hi Macro guifg=#767676 guibg=NONE guisp=NONE gui=NONE ctermfg=243 ctermbg=NONE cterm=NONE +hi TabLine guifg=#8a8a8a guibg=#4e4e4e guisp=#4e4e4e gui=NONE ctermfg=245 ctermbg=239 cterm=NONE +hi cursorim guifg=#192224 guibg=#536991 guisp=#536991 gui=NONE ctermfg=235 ctermbg=60 cterm=NONE +hi underline guifg=#afafff guibg=NONE guisp=NONE gui=NONE ctermfg=147 ctermbg=NONE cterm=NONE @@ -0,0 +1,188 @@ +" Enable Vim features +set nocompatible + +" BEGIN VUNDLE CONFIG +filetype off +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() + +" Vundle, a plugin manager for vim +Plugin 'gmarik/Vundle.vim' + +" gruvbox colorscheme +Plugin 'morhetz/gruvbox' + +" Syntastic syntax checking +" Install developer tools for syntax checking +" Install flake8 for Python PEP8 +Plugin 'scrooloose/syntastic' + +" YouCompleteMe completions +"Plugin 'Valloric/YouCompleteMe' +" If YCM is unavailable for your platform, try SuperTab instead +"Plugin 'ervandew/supertab' + +" Emmet, an HTML/CSS macro engine +" The trigger key is Ctrl-y-, +Plugin 'mattn/emmet-vim' + +" File tree +" Use :NERDTree to open the tree +Plugin 'scrooloose/nerdtree' + +" Sublime Text style multiple cursors +" Use Ctrl+n to highlight matches and Ctrl+b to undo highlight +Plugin 'terryma/vim-multiple-cursors' + +" Fancy statusbar +" Powerline fonts recommended +Plugin 'bling/vim-airline' +Plugin 'bling/vim-bufferline' + +" Git integration +Plugin 'tpope/vim-fugitive' +Plugin 'airblade/vim-gitgutter' + +" CtrlP fuzzy search +" Use Ctrl+P to search a project for a file +Plugin 'kien/ctrlp.vim' + +" Ansible syntax and indentation +Plugin 'chase/vim-ansible-yaml' + +" Salt syntax and indentation +Plugin 'saltstack/salt-vim' + +" Automatically close parentheses, etc. +Plugin 'Raimondi/delimitMate' + +" Hotkeys for commenting/uncommenting +" g-c-c to toggle a line, g-c-Motion to toggle a motion +Plugin 'tpope/vim-commentary' + +" Markdown Preview +" Use :PrevimOpen while editing Markdown to open a live preview +Plugin 'kannokanno/previm' + +" Highlight trailing whitespace +" Use :StripWhitespace to remove trailing shitespace +" Plugin 'ntpeters/vim-better-whitespace' + +" Jump around Vimium-style +" Use Leader-Leader-Motion <target> to jump around +Plugin 'easymotion/vim-easymotion' + +call vundle#end() +filetype plugin indent on +" END VUNDLE CONFIG + +" Allow the use of project-specific vimrc +set exrc +set secure + +" Color scheme +" If using a Base16 terminal theme designed to keep the 16 ANSI colors intact +" (a "256" variation) and have successfully modified your 256 colorspace with +" base16-shell you must uncomment the following line +" let base16colorspace=256 +" try +" colorscheme 256_jungle +" catch +" colorscheme slate +"endtry +let g:gruvbox_italic=1 +colorscheme gruvbox +set background=dark +syntax on + +" Unicode, because this is the future +set encoding=utf-8 + +" Sane defaults for indentation +" set expandtab +set softtabstop=4 +set shiftwidth=4 +set autoindent + +" Show line numbers +set number + +" Highlight current line +" set cursorline + +" Highlight columns 80 and 120 +"set colorcolumn=80,120 + +" Allow mouse +set mouse=a + +" Spell check +set spell +set spellsuggest=best,10 + +" Wrap searches +set wrapscan +let mapleader = "," + +" Smart search case sensitivity +set ignorecase +set smartcase + +" Show completions when using commands like :edit +set wildmenu + +" Allow switching buffer even if current buffer contains unsaved changes +set hidden + +" Disable scratch preview window +set completeopt-=preview + +" Use comma as the leader key +let mapleader=',' + +" Use Alt+hjkl to switch between windows +nmap <silent> <A-h> :wincmd h<CR> +nmap <silent> <A-j> :wincmd j<CR> +nmap <silent> <A-k> :wincmd k<CR> +nmap <silent> <A-l> :wincmd l<CR> + +" Airline tweaks +" Always show statusline +set laststatus=2 +" Use Powerline fonts +let g:airline_powerline_fonts = 1 + +" CtrlP tweaks +" keybinds +let g:ctrlp_map = '<c-p>' +let g:ctrlp_cmd = 'CtrlP' + +" Multiple cursors tweaks +" Since we bound Ctrl+P, we have to rebind previous selection +let g:multi_cursor_prev_key='<C-b>' + +" Command to open browser for Markdown Preview +let g:previm_open_cmd = 'google-chrome-stable' + +" Syntastic Tweaks +" Display a statusline message if errors are detected +let g:syntastic_stl_format = '%E{Errors: %e}%B{,}%W{Warnings: %w}' +set statusline+=%#warningmsg# +set statusline+=%{SyntasticStatuslineFlag()} +set statusline+=%* +" Automatically populate the list of error -> line number mappings +" (Disabled by default for compatibility) +let g:syntastic_always_populate_loc_list = 1 +" Check files when they are opened +let g:syntastic_check_on_open = 1 +" Don't check files when they are closed +let g:syntastic_check_on_wq = 0 + +" GitGutter tweaks +" Display diff markers between index and HEAD +let g:gitgutter_diff_args = ' HEAD ' + +" If using SuperTab instead of YCM, list completions top-to-bottom +" let g:SuperTabDefaultCompletionType = "<c-n>" +" +set clipboard=unnamedplus diff --git a/linker.sh b/linker.sh new file mode 100755 index 0000000..7d2aa61 --- /dev/null +++ b/linker.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +cd ~ + +# Start with .bashrc +if [[ -e .bashrc ]] ; then + cp .bashrc .bashrc.original +fi +ln -s ~/dotfiles/.bashrc ~/.bashrc + +# Next .vim(rc) +if [[ -e .vimrc ]] ; then + cp .vimrc .vimrc.original +fi +if [[ -e .vim ]] ; then + cp -r .vim .vim.original +fi +ln -s ~/dotfiles/.vimrc ~/.vimrc +ln -s ~/dotfiles/.vim ~/.vim + +# Next .git +if [[ -e .gitconfig ]] ; then + cp .gitconfig .gitconfig.original +fi +if [[ -e .gitignore_global ]] ; then + cp .gitignore_global .gitignore_global.original +fi +ln -s ~/dotfiles/.gitconfig ~/.gitconfig +ln -s ~/dotfiles/.gitignore_global .gitignore_global + |