Merge remote-tracking branch 'origin/master' into everard

This commit is contained in:
Thomas Ruoff
2015-04-07 12:07:15 +02:00
4 changed files with 2106 additions and 105 deletions

4
.gitignore vendored
View File

@@ -1,7 +1,5 @@
irssi irssi
vim/plugged/*
vim/bundle/*
!vim/bundle/Vundle.vim
vim/spell vim/spell
.netrwhist .netrwhist
Xresources.compiled Xresources.compiled

2020
vim/autoload/plug.vim Normal file

File diff suppressed because it is too large Load Diff

182
vimrc
View File

@@ -1,82 +1,56 @@
" NeoBundle call plug#begin('~/.vim/plugged')
if !1 | finish | endif
if has('vim_starting') Plug 'tpope/vim-sensible'
set nocompatible " Be iMproved
set runtimepath+=~/.vim/bundle/neobundle.vim/ Plug 'L9'
endif Plug 'unimpaired.vim'
call neobundle#begin(expand('~/.vim/bundle/')) Plug 'Shougo/unite.vim'
NeoBundleFetch 'Shougo/neobundle.vim' Plug 'scrooloose/nerdtree'
Plug 'kien/ctrlp.vim'
" my bundles Plug 'scrooloose/nerdcommenter'
NeoBundle 'L9'
NeoBundle 'unimpaired.vim'
NeoBundle 'Shougo/unite.vim' Plug 'surround.vim'
NeoBundle 'scrooloose/nerdtree' Plug 'SirVer/ultisnips'
NeoBundle 'kien/ctrlp.vim' Plug 'honza/vim-snippets'
NeoBundle 'scrooloose/nerdcommenter' Plug 'sjl/gundo.vim'
NeoBundle 'surround.vim' Plug 'editorconfig/editorconfig-vim'
NeoBundle 'SirVer/ultisnips' Plug 'Valloric/YouCompleteMe', { 'do': './install.sh' }
NeoBundle 'honza/vim-snippets'
NeoBundle 'sjl/gundo.vim' Plug 'sheerun/vim-polyglot'
NeoBundle 'editorconfig/editorconfig-vim' Plug 'nathanaelkane/vim-indent-guides'
NeoBundle 'sheerun/vim-polyglot' Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
NeoBundle 'nathanaelkane/vim-indent-guides' Plug 'rking/ag.vim'
NeoBundle 'tpope/vim-fugitive' Plug 'christoomey/vim-tmux-navigator'
NeoBundle 'airblade/vim-gitgutter'
NeoBundle 'rking/ag.vim' Plug 'itchyny/lightline.vim'
Plug 'chriskempson/base16-vim'
NeoBundle 'christoomey/vim-tmux-navigator' Plug 'scrooloose/syntastic'
Plug 'Raimondi/delimitMate'
NeoBundle 'itchyny/lightline.vim' Plug 'marijnh/tern_for_vim', { 'do': 'npm install' }
NeoBundle 'chriskempson/base16-vim'
NeoBundle 'scrooloose/syntastic.git' Plug 'mustache/vim-mustache-handlebars'
NeoBundle 'Raimondi/delimitMate'
NeoBundle 'jelera/vim-javascript-syntax' Plug 'inside/vim-search-pulse'
NeoBundle 'JavaScript-Indent'
NeoBundle 'othree/javascript-libraries-syntax.vim'
NeoBundle 'marijnh/tern_for_vim'
NeoBundle 'mustache/vim-mustache-handlebars' call plug#end()
NeoBundle 'gorodinskiy/vim-coloresque'
NeoBundle 'inside/vim-search-pulse'
call neobundle#end()
filetype plugin indent on
NeoBundleCheck
" other stuff
"" reload when vim config changes "" reload when vim config changes
autocmd! bufwritepost .vimrc source % autocmd! bufwritepost .vimrc source %
"" Encoding
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8
"" Unleash all VIM power
set nocompatible
"" Tabs. May be overriten by autocmd rules "" Tabs. May be overriten by autocmd rules
set tabstop=4 set tabstop=4
set softtabstop=0 set softtabstop=0
@@ -88,28 +62,27 @@ set hidden
"" Searching "" Searching
set hlsearch set hlsearch
set incsearch
set ignorecase
set smartcase set smartcase
"" Encoding
set bomb
set ttyfast
set binary
"" Directories for swp files "" Directories for swp files
set nobackup set nobackup
set noswapfile set noswapfile
set fileformats=unix,mac,dos
set showcmd
"" Mouse "" Mouse
set mouse=a set mouse=a
" "" Visual settings
" Visual Settings syntax enable
" set cursorline
set number
if exists('+relativenumber')
set relativenumber
endif
set background=dark
let base16colorspace=256
colorscheme base16-solarized
if has("gui_running") if has("gui_running")
"disable menu, toolsbar, scrollbar "disable menu, toolsbar, scrollbar
@@ -118,22 +91,6 @@ if has("gui_running")
set guioptions -=r set guioptions -=r
endif endif
set ruler
set number
set t_Co=256
set cursorline
syntax enable
set background=dark
let base16colorspace=256
colorscheme base16-solarized
set scrolloff=3
"" Status bar
set laststatus=2
"" Use modeline overrides "" Use modeline overrides
set modeline set modeline
set modelines=10 set modelines=10
@@ -149,8 +106,34 @@ set t_vb=
"" enable spelling "" enable spelling
set spelllang=en,de set spelllang=en,de
"" long lines " Spelling highlights. Use underline in term to prevent cursorline highlights
set showbreak=~ " from interfering
if !has("gui_running")
hi clear SpellBad
hi SpellBad cterm=underline ctermfg=red
hi clear SpellCap
hi SpellCap cterm=underline ctermfg=blue
hi clear SpellLocal
hi SpellLocal cterm=underline ctermfg=blue
hi clear SpellRare
hi SpellRare cterm=underline ctermfg=blue
endif
" Display unprintable chars
set listchars=tab:▸\ ,extends:,precedes:,nbsp:␣
set showbreak=
" Open all folds initially
set foldmethod=indent
set foldlevelstart=99
" Writes to the unnamed register also writes to the * and + registers. This
" makes it easy to interact with the system clipboard
if has ('unnamedplus')
set clipboard=unnamedplus
else
set clipboard=unnamed
endif
" "
" KEY MAPPINGS " KEY MAPPINGS
@@ -165,15 +148,8 @@ let mapleader = ","
nmap <leader>w :update<cr> nmap <leader>w :update<cr>
"" fast escaping "" fast escaping
imap jj <ESC> imap jj <ESC>
"" prevent accidental striking of F1 key
map <F1> <ESC>
imap <F1> <ESC>
"" clear highlight "" clear highlight
nnoremap <leader><space> :noh<cr> nnoremap <leader><space> :noh<cr>
"" map Y to match C and D behavior
nnoremap Y y$
"" yank entire file (global yank)
nmap gy ggVGy
"" ignore lines when going up or down "" ignore lines when going up or down
nnoremap j gj nnoremap j gj
nnoremap k gk nnoremap k gk
@@ -238,9 +214,12 @@ nmap <silent> <leader>pp :set invpaste<CR>
nmap <silent> <leader>nn :set invnumber<CR> nmap <silent> <leader>nn :set invnumber<CR>
nmap <silent> <leader>ii :set invrelativenumber<CR> nmap <silent> <leader>ii :set invrelativenumber<CR>
if exists('+relativenumber') " <Leader>0: Run the visually selected code in node and replace it with the output
set relativenumber vnoremap <silent> <Leader>0 :!node<cr>
endif
" +/-: Increment number
nnoremap + <c-a>
nnoremap - <c-x>
" "
" Plugin Configuration " Plugin Configuration
@@ -276,10 +255,6 @@ nmap <leader>j ]e
vmap <leader>k [egv vmap <leader>k [egv
vmap <leader>j ]egv vmap <leader>j ]egv
"" yankstack
nmap <leader>p <Plug>yankstack_substitute_older_paste
nmap <leader>P <Plug>yankstack_substitute_newer_paste
"" Make Ctrl-P plugin a lot faster for Git projects "" Make Ctrl-P plugin a lot faster for Git projects
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . -co --exclude-standard', 'find %s -type f'] let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . -co --exclude-standard', 'find %s -type f']
let g:ctrlp_use_caching = 0 let g:ctrlp_use_caching = 0
@@ -290,8 +265,13 @@ nmap <leader>g :IndentGuidesToggle<CR>
"" Gundo "" Gundo
nmap <leader>u :GundoToggle<CR> nmap <leader>u :GundoToggle<CR>
"" YouCompleteMe
let g:ycm_key_list_select_completion = ['<c-j>', '<Down>']
let g:ycm_key_list_previous_completion = ['<u-k>', '<Up>']
let g:SuperTabDefaultCompletionType = '<c-tab>'
"" Ultisnips "" Ultisnips
"let g:UltiSnipsExpandTrigger="<tab>" let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>" let g:UltiSnipsJumpForwardTrigger="<tab>"
"let g:UltiSnipsJumpBackwardTrigger="<c-z>" "let g:UltiSnipsJumpBackwardTrigger="<c-z>"
@@ -308,8 +288,6 @@ autocmd BufEnter * :syntax sync fromstart
"" Remember cursor position "" Remember cursor position
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
set autoread
"" txt, mail, human, tex "" txt, mail, human, tex
au BufNewFile,BufRead *.txt set filetype=human au BufNewFile,BufRead *.txt set filetype=human
au FileType human,mail,tex set wrap wm=2 textwidth=78 nocindent spell au FileType human,mail,tex set wrap wm=2 textwidth=78 nocindent spell

5
zshrc
View File

@@ -49,6 +49,11 @@ bindkey -a '^R' redo
bindkey '^?' backward-delete-char bindkey '^?' backward-delete-char
bindkey '^H' backward-delete-char bindkey '^H' backward-delete-char
TRAPWINCH() {
zle && { zle reset-prompt; zle -R }
}
################## ##################
# Source Things # Source Things
################# #################