mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-04 15:07:23 +01:00
Merge remote-tracking branch 'origin/master' into everard
Conflicts: zsh/bundle/oh-my-zilsh
This commit is contained in:
9
.gitmodules
vendored
9
.gitmodules
vendored
@@ -1,9 +1,6 @@
|
|||||||
[submodule "zsh/zilsh"]
|
|
||||||
path = zsh/zilsh
|
|
||||||
url = git@github.com:zilsh/zilsh.git
|
|
||||||
[submodule "zsh/bundle/oh-my-zilsh"]
|
|
||||||
path = zsh/bundle/oh-my-zilsh
|
|
||||||
url = git@github.com:zilsh/oh-my-zilsh.git
|
|
||||||
[submodule "vim/bundle/Vundle.vim"]
|
[submodule "vim/bundle/Vundle.vim"]
|
||||||
path = vim/bundle/Vundle.vim
|
path = vim/bundle/Vundle.vim
|
||||||
url = https://github.com/gmarik/Vundle.vim.git
|
url = https://github.com/gmarik/Vundle.vim.git
|
||||||
|
[submodule "oh-my-zsh"]
|
||||||
|
path = oh-my-zsh
|
||||||
|
url = git@github.com:robbyrussell/oh-my-zsh.git
|
||||||
|
|||||||
1
oh-my-zsh
Submodule
1
oh-my-zsh
Submodule
Submodule oh-my-zsh added at 1b7a3ea99a
82
vimrc
82
vimrc
@@ -2,6 +2,7 @@
|
|||||||
set nocompatible
|
set nocompatible
|
||||||
|
|
||||||
" Vundle
|
" Vundle
|
||||||
|
|
||||||
filetype off " required!
|
filetype off " required!
|
||||||
" set the runtime path to include Vundle and initialize
|
" set the runtime path to include Vundle and initialize
|
||||||
set rtp+=~/.vim/bundle/Vundle.vim
|
set rtp+=~/.vim/bundle/Vundle.vim
|
||||||
@@ -17,6 +18,8 @@ Plugin 'scrooloose/nerdtree'
|
|||||||
Plugin 'kien/ctrlp.vim'
|
Plugin 'kien/ctrlp.vim'
|
||||||
Plugin 'maxbrunsfeld/vim-yankstack', {'name': 'yankstack'}
|
Plugin 'maxbrunsfeld/vim-yankstack', {'name': 'yankstack'}
|
||||||
|
|
||||||
|
Plugin 'surround.vim'
|
||||||
|
|
||||||
Plugin 'editorconfig/editorconfig-vim'
|
Plugin 'editorconfig/editorconfig-vim'
|
||||||
|
|
||||||
Plugin 'pangloss/vim-javascript'
|
Plugin 'pangloss/vim-javascript'
|
||||||
@@ -34,6 +37,7 @@ Plugin 'snipMate'
|
|||||||
|
|
||||||
Plugin 'mustache/vim-mustache-handlebars'
|
Plugin 'mustache/vim-mustache-handlebars'
|
||||||
|
|
||||||
|
Plugin 'mhinz/vim-startify'
|
||||||
|
|
||||||
" All of your Plugins must be added before the following line
|
" All of your Plugins must be added before the following line
|
||||||
call vundle#end() " required
|
call vundle#end() " required
|
||||||
@@ -44,12 +48,7 @@ filetype plugin indent on " required
|
|||||||
set t_Co=256
|
set t_Co=256
|
||||||
|
|
||||||
|
|
||||||
" MAP LEADER
|
|
||||||
noremap , \
|
|
||||||
let mapleader = ","
|
|
||||||
|
|
||||||
" CONFIGURATION MAPPING
|
" CONFIGURATION MAPPING
|
||||||
set scrolloff=3 " show 3 lines of context around the cursor
|
|
||||||
set autoread " set to auto read when a file is changed from the outside
|
set autoread " set to auto read when a file is changed from the outside
|
||||||
"set mouse=a " allow for full mouse support
|
"set mouse=a " allow for full mouse support
|
||||||
set autowrite
|
set autowrite
|
||||||
@@ -105,7 +104,6 @@ endif
|
|||||||
|
|
||||||
|
|
||||||
" VIM 7.3 FEATURES
|
" VIM 7.3 FEATURES
|
||||||
|
|
||||||
if v:version >= 703
|
if v:version >= 703
|
||||||
set undofile
|
set undofile
|
||||||
set undodir=$HOME/.vim/.undo
|
set undodir=$HOME/.vim/.undo
|
||||||
@@ -123,7 +121,12 @@ set foldenable " enable folding
|
|||||||
set foldmethod=marker " detect triple-{ style fold markers
|
set foldmethod=marker " detect triple-{ style fold markers
|
||||||
set foldlevel=99
|
set foldlevel=99
|
||||||
|
|
||||||
" ADDITIONAL KEY MAPPINGS
|
" KEY MAPPINGS
|
||||||
|
|
||||||
|
" MAP LEADER
|
||||||
|
noremap , \
|
||||||
|
let mapleader = ","
|
||||||
|
|
||||||
" fast saving
|
" fast saving
|
||||||
nmap <leader>w :update<cr>
|
nmap <leader>w :update<cr>
|
||||||
" fast escaping
|
" fast escaping
|
||||||
@@ -141,9 +144,9 @@ nmap gy ggVGy
|
|||||||
nnoremap j gj
|
nnoremap j gj
|
||||||
nnoremap k gk
|
nnoremap k gk
|
||||||
" auto complete {} indent and position the cursor in the middle line
|
" auto complete {} indent and position the cursor in the middle line
|
||||||
inoremap {<CR> {<CR>}<Esc>O
|
"inoremap {<CR> {<CR>}<Esc>O
|
||||||
inoremap (<CR> (<CR>)<Esc>O
|
"inoremap (<CR> (<CR>)<Esc>O
|
||||||
inoremap [<CR> [<CR>]<Esc>O
|
"inoremap [<CR> [<CR>]<Esc>O
|
||||||
" fast window switching
|
" fast window switching
|
||||||
map <leader>, <C-W>w
|
map <leader>, <C-W>w
|
||||||
" cycle between buffers
|
" cycle between buffers
|
||||||
@@ -151,11 +154,13 @@ map <leader>. :b#<cr>
|
|||||||
" change directory to current buffer
|
" change directory to current buffer
|
||||||
map <leader>cd :cd %:p:h<cr>
|
map <leader>cd :cd %:p:h<cr>
|
||||||
" swap implementations of ` and ' jump to prefer row and column jumping
|
" swap implementations of ` and ' jump to prefer row and column jumping
|
||||||
nnoremap ' `
|
" nnoremap ' `
|
||||||
nnoremap ` '
|
" nnoremap ` '
|
||||||
" indent visual selected code without unselecting and going back to normal mode
|
" indent visual selected code without unselecting and going back to normal mode
|
||||||
vmap > >gv
|
vmap > >gv
|
||||||
vmap < <gv
|
vmap < <gv
|
||||||
|
" Visually select the text that was last edited/pasted
|
||||||
|
nmap gV `[v`]
|
||||||
" pull word under cursor into lhs of a substitute (for quick search and replace)
|
" pull word under cursor into lhs of a substitute (for quick search and replace)
|
||||||
nmap <leader>r :%s#\<<C-r>=expand("<cword>")<CR>\>#
|
nmap <leader>r :%s#\<<C-r>=expand("<cword>")<CR>\>#
|
||||||
" strip all trailing whitespace in the current file
|
" strip all trailing whitespace in the current file
|
||||||
@@ -181,13 +186,21 @@ nmap <silent> <leader>nn :set invnumber<CR>
|
|||||||
nmap <silent> <leader>pp :set invpaste<CR>
|
nmap <silent> <leader>pp :set invpaste<CR>
|
||||||
nmap <silent> <leader>ii :set invrelativenumber<CR>
|
nmap <silent> <leader>ii :set invrelativenumber<CR>
|
||||||
|
|
||||||
|
" remap [] to <> for german keyboard
|
||||||
|
nmap < [
|
||||||
|
nmap > ]
|
||||||
|
omap < [
|
||||||
|
omap > ]
|
||||||
|
xmap < [
|
||||||
|
xmap > ]
|
||||||
|
|
||||||
" accomondate with german keyboard
|
" accomondate with german keyboard
|
||||||
|
|
||||||
nnoremap ß <C-]>
|
"nnoremap ß <C-]>
|
||||||
nnoremap Ä }
|
"nnoremap Ä }
|
||||||
nnoremap Ö {
|
"nnoremap Ö {
|
||||||
nnoremap ä ]
|
"nnoremap ä ]
|
||||||
nnoremap ö [
|
"nnoremap ö [
|
||||||
|
|
||||||
if exists('+relativenumber')
|
if exists('+relativenumber')
|
||||||
set relativenumber
|
set relativenumber
|
||||||
@@ -196,31 +209,10 @@ endif
|
|||||||
"" ADDITIONAL AUTOCOMMANDS
|
"" ADDITIONAL AUTOCOMMANDS
|
||||||
|
|
||||||
" saving when focus lost (after tabbing away or switching buffers)
|
" saving when focus lost (after tabbing away or switching buffers)
|
||||||
au FocusLost,BufLeave,WinLeave,TabLeave * silent! up
|
"au FocusLost,BufLeave,WinLeave,TabLeave * silent! up
|
||||||
" open in last edit place
|
" open in last edit place
|
||||||
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif
|
"au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif
|
||||||
au QuickFixCmdPost *grep* cwindow
|
"au QuickFixCmdPost *grep* cwindow
|
||||||
|
|
||||||
|
|
||||||
"" ADDITIONAL GUI SETTINGS
|
|
||||||
|
|
||||||
if has("gui_running")
|
|
||||||
set guioptions-=T
|
|
||||||
" set guioptions-=m
|
|
||||||
set linespace=6
|
|
||||||
set columns=160 lines=26
|
|
||||||
set guioptions-=T
|
|
||||||
|
|
||||||
" crazy hack to get gvim to remove all scrollbars
|
|
||||||
set guioptions+=LlRrb
|
|
||||||
set guioptions-=LlRrb
|
|
||||||
|
|
||||||
if has("mac")
|
|
||||||
set guifont=DejaVu\ Sans\ Mono\:h14
|
|
||||||
else
|
|
||||||
set guifont=DejaVu\ Sans\ Mono\ 9
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
"" PLUGIN SETTINGS
|
"" PLUGIN SETTINGS
|
||||||
|
|
||||||
@@ -231,9 +223,6 @@ let g:NERDTreeDirArrows=1
|
|||||||
let g:NERDTreeQuitOnOpen=1
|
let g:NERDTreeQuitOnOpen=1
|
||||||
let g:NERDTreeShowHidden=1
|
let g:NERDTreeShowHidden=1
|
||||||
|
|
||||||
" Super Tab
|
|
||||||
" let g:SuperTabDefaultCompletionType = "context"
|
|
||||||
|
|
||||||
" Unimpaired
|
" Unimpaired
|
||||||
" bubble single lines
|
" bubble single lines
|
||||||
nmap <leader>k [e
|
nmap <leader>k [e
|
||||||
@@ -246,12 +235,13 @@ vmap <leader>j ]egv
|
|||||||
nmap <leader>p <Plug>yankstack_substitute_older_paste
|
nmap <leader>p <Plug>yankstack_substitute_older_paste
|
||||||
nmap <leader>P <Plug>yankstack_substitute_newer_paste
|
nmap <leader>P <Plug>yankstack_substitute_newer_paste
|
||||||
|
|
||||||
|
|
||||||
|
" FILETYPE SPECIFIC
|
||||||
|
|
||||||
" MAIL HUMAN TEX
|
" MAIL HUMAN TEX
|
||||||
au BufNewFile,BufRead *.txt set filetype=human
|
au BufNewFile,BufRead *.txt set filetype=human
|
||||||
au FileType human,mail,tex set expandtab textwidth=78 nocindent
|
au FileType human,mail,tex set expandtab textwidth=78 nocindent
|
||||||
|
|
||||||
"" LANGUAGE SPECIFIC
|
|
||||||
|
|
||||||
" Python
|
" Python
|
||||||
au FileType python set noexpandtab
|
au FileType python set noexpandtab
|
||||||
|
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
# create a zkbd compatible hash;
|
|
||||||
# to add other keys to this hash, see: man 5 terminfo
|
|
||||||
typeset -A key
|
|
||||||
|
|
||||||
key[Home]=${terminfo[khome]}
|
|
||||||
|
|
||||||
key[End]=${terminfo[kend]}
|
|
||||||
key[Insert]=${terminfo[kich1]}
|
|
||||||
key[Delete]=${terminfo[kdch1]}
|
|
||||||
key[Up]=${terminfo[kcuu1]}
|
|
||||||
key[Down]=${terminfo[kcud1]}
|
|
||||||
key[Left]=${terminfo[kcub1]}
|
|
||||||
key[Right]=${terminfo[kcuf1]}
|
|
||||||
key[PageUp]=${terminfo[kpp]}
|
|
||||||
key[PageDown]=${terminfo[knp]}
|
|
||||||
|
|
||||||
# setup key accordingly
|
|
||||||
[[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line
|
|
||||||
[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line
|
|
||||||
[[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode
|
|
||||||
[[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char
|
|
||||||
[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-history
|
|
||||||
[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-history
|
|
||||||
[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char
|
|
||||||
[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char
|
|
||||||
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" beginning-of-buffer-or-history
|
|
||||||
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" end-of-buffer-or-history
|
|
||||||
|
|
||||||
# Finally, make sure the terminal is in application mode, when zle is
|
|
||||||
# active. Only then are the values from $terminfo valid.
|
|
||||||
if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then
|
|
||||||
function zle-line-init () {
|
|
||||||
printf '%s' "${terminfo[smkx]}"
|
|
||||||
}
|
|
||||||
function zle-line-finish () {
|
|
||||||
printf '%s' "${terminfo[rmkx]}"
|
|
||||||
}
|
|
||||||
zle -N zle-line-init
|
|
||||||
zle -N zle-line-finish
|
|
||||||
fi
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
###-begin-npm-completion-###
|
|
||||||
#
|
|
||||||
# npm command completion script
|
|
||||||
#
|
|
||||||
# Installation: npm completion >> ~/.bashrc (or ~/.zshrc)
|
|
||||||
# Or, maybe: npm completion > /usr/local/etc/bash_completion.d/npm
|
|
||||||
#
|
|
||||||
|
|
||||||
COMP_WORDBREAKS=${COMP_WORDBREAKS/=/}
|
|
||||||
COMP_WORDBREAKS=${COMP_WORDBREAKS/@/}
|
|
||||||
export COMP_WORDBREAKS
|
|
||||||
|
|
||||||
if type complete &>/dev/null; then
|
|
||||||
_npm_completion () {
|
|
||||||
local si="$IFS"
|
|
||||||
IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \
|
|
||||||
COMP_LINE="$COMP_LINE" \
|
|
||||||
COMP_POINT="$COMP_POINT" \
|
|
||||||
npm completion -- "${COMP_WORDS[@]}" \
|
|
||||||
2>/dev/null)) || return $?
|
|
||||||
IFS="$si"
|
|
||||||
}
|
|
||||||
complete -F _npm_completion npm
|
|
||||||
elif type compdef &>/dev/null; then
|
|
||||||
_npm_completion() {
|
|
||||||
si=$IFS
|
|
||||||
compadd -- $(COMP_CWORD=$((CURRENT-1)) \
|
|
||||||
COMP_LINE=$BUFFER \
|
|
||||||
COMP_POINT=0 \
|
|
||||||
npm completion -- "${words[@]}" \
|
|
||||||
2>/dev/null)
|
|
||||||
IFS=$si
|
|
||||||
}
|
|
||||||
compdef _npm_completion npm
|
|
||||||
elif type compctl &>/dev/null; then
|
|
||||||
_npm_completion () {
|
|
||||||
local cword line point words si
|
|
||||||
read -Ac words
|
|
||||||
read -cn cword
|
|
||||||
let cword-=1
|
|
||||||
read -l line
|
|
||||||
read -ln point
|
|
||||||
si="$IFS"
|
|
||||||
IFS=$'\n' reply=($(COMP_CWORD="$cword" \
|
|
||||||
COMP_LINE="$line" \
|
|
||||||
COMP_POINT="$point" \
|
|
||||||
npm completion -- "${words[@]}" \
|
|
||||||
2>/dev/null)) || return $?
|
|
||||||
IFS="$si"
|
|
||||||
}
|
|
||||||
compctl -K _npm_completion npm
|
|
||||||
fi
|
|
||||||
###-end-npm-completion-###
|
|
||||||
Submodule zsh/bundle/oh-my-zilsh deleted from 3a38bf7ca4
Submodule zsh/zilsh deleted from 7b1881de4b
28
zshrc
28
zshrc
@@ -1,35 +1,25 @@
|
|||||||
ZILSH_VERBOSITY=2
|
export ZSH=$HOME/.oh-my-zsh
|
||||||
|
|
||||||
autoload -U colors && colors
|
ZSH_THEME="pygmalion"
|
||||||
source ~/.zsh/zilsh/zilsh.zsh
|
|
||||||
|
|
||||||
# oh-my-zilch config
|
plugins=(bower gitfast git-extras node npm pass screen vi-mode)
|
||||||
#
|
|
||||||
|
|
||||||
omz_plugins=(bower gitfast git-extras node npm pass screen vi-mode)
|
|
||||||
|
|
||||||
case $(hostname) in
|
case $(hostname) in
|
||||||
t430s-arch)
|
t430s-arch)
|
||||||
omz_plugins+=(archlinux systemd)
|
plugins+=(archlinux systemd)
|
||||||
;;
|
;;
|
||||||
cassiopeia.uberspace.de)
|
cassiopeia.uberspace.de)
|
||||||
omz_plugins+=()
|
plugins+=()
|
||||||
;;
|
;;
|
||||||
everard)
|
everard)
|
||||||
omz_plugins+=(debian jira)
|
plugins+=(debian jira)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
ZILSH_THEME="pygmalion.zsh-theme"
|
# You may need to manually set your language environment
|
||||||
|
# export LANG=en_US.UTF-8
|
||||||
_zilsh_init "~/.zsh/bundle/"
|
|
||||||
|
|
||||||
############
|
|
||||||
## Settings
|
|
||||||
#############
|
|
||||||
PATH="$PATH:$HOME/local/bin"
|
|
||||||
EDITOR="vim"
|
|
||||||
|
|
||||||
# turn of autocorrection
|
# turn of autocorrection
|
||||||
unsetopt correct_all
|
unsetopt correct_all
|
||||||
|
|||||||
Reference in New Issue
Block a user