mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 14:37:25 +01:00
Merge remote-tracking branch 'origin/master' into everard
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,6 +1,6 @@
|
||||
irssi
|
||||
|
||||
vim/bundle/*
|
||||
!vim/bundle/vundle
|
||||
!vim/bundle/Vundle.vim
|
||||
vim/spell
|
||||
.netrwhist
|
||||
|
||||
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -1,9 +1,9 @@
|
||||
[submodule "vim/bundle/vundle"]
|
||||
path = vim/bundle/vundle
|
||||
url = git://github.com/gmarik/vundle.git
|
||||
[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"]
|
||||
path = vim/bundle/Vundle.vim
|
||||
url = https://github.com/gmarik/Vundle.vim.git
|
||||
|
||||
1
vim/bundle/Vundle.vim
Submodule
1
vim/bundle/Vundle.vim
Submodule
Submodule vim/bundle/Vundle.vim added at 8db3bcb592
Submodule vim/bundle/vundle deleted from f31aa52552
80
vimrc
80
vimrc
@@ -3,25 +3,38 @@ set nocompatible
|
||||
|
||||
" Vundle
|
||||
filetype off " required!
|
||||
set rtp+=~/.vim/bundle/vundle/
|
||||
call vundle#rc()
|
||||
" set the runtime path to include Vundle and initialize
|
||||
set rtp+=~/.vim/bundle/Vundle.vim
|
||||
call vundle#begin()
|
||||
|
||||
" My Bundles here:
|
||||
"
|
||||
" original repos on github
|
||||
Bundle 'gmarik/vundle'
|
||||
Bundle 'scrooloose/nerdtree'
|
||||
Bundle 'pangloss/vim-javascript'
|
||||
Bundle 'tpope/vim-fugitive'
|
||||
Bundle 'clones/vim-l9'
|
||||
Bundle 'clones/vim-fuzzyfinder'
|
||||
Bundle 'scrooloose/syntastic.git'
|
||||
Bundle 'kien/ctrlp.vim'
|
||||
Bundle 'Lokaltog/powerline'
|
||||
Bundle 'flazz/vim-colorschemes'
|
||||
" let Vundle manage Vundle, required
|
||||
Plugin 'gmarik/Vundle.vim'
|
||||
|
||||
Plugin 'L9'
|
||||
|
||||
Plugin 'clones/vim-fuzzyfinder'
|
||||
Plugin 'scrooloose/nerdtree'
|
||||
Plugin 'kien/ctrlp.vim'
|
||||
Plugin 'maxbrunsfeld/vim-yankstack', {'name': 'yankstack'}
|
||||
|
||||
Plugin 'editorconfig/editorconfig-vim'
|
||||
|
||||
Plugin 'pangloss/vim-javascript'
|
||||
Plugin 'scrooloose/syntastic.git'
|
||||
|
||||
Plugin 'mileszs/ack.vim'
|
||||
|
||||
Plugin 'tpope/vim-fugitive'
|
||||
Plugin 'airblade/vim-gitgutter'
|
||||
|
||||
Plugin 'vim-airline', {'name': 'airline'}
|
||||
Plugin 'flazz/vim-colorschemes'
|
||||
|
||||
|
||||
filetype plugin indent on
|
||||
" All of your Plugins must be added before the following line
|
||||
call vundle#end() " required
|
||||
filetype plugin indent on " required
|
||||
|
||||
|
||||
" enable 256 color !!1!
|
||||
set t_Co=256
|
||||
@@ -34,7 +47,7 @@ let mapleader = ","
|
||||
" 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 mouse=a " allow for full mouse support
|
||||
"set mouse=a " allow for full mouse support
|
||||
set autowrite
|
||||
set showcmd " show typed commands
|
||||
|
||||
@@ -82,23 +95,10 @@ au GUIEnter * set vb t_vb=
|
||||
|
||||
syntax enable " enable syntax highlighting
|
||||
|
||||
" Statusline
|
||||
|
||||
if has('statusline')
|
||||
set laststatus=2
|
||||
|
||||
" Broken down into easily includeable segments
|
||||
set statusline=%<%f\ " Filename
|
||||
set statusline+=%w%h%m%r " Options
|
||||
set statusline+=%{fugitive#statusline()} " Git Hotness
|
||||
set statusline+=\ [%{&ff}/%Y] " filetype
|
||||
set statusline+=\ [%{getcwd()}] " current dir
|
||||
"set statusline+=\ [A=\%03.3b/H=\%02.2B] " ASCII / Hexadecimal value of char
|
||||
set statusline+=%=%-14.(%l,%c%V%)\ %p%% " Right aligned file nav info
|
||||
endif
|
||||
|
||||
" Powerline
|
||||
set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim
|
||||
|
||||
" VIM 7.3 FEATURES
|
||||
|
||||
@@ -121,7 +121,7 @@ set foldlevel=99
|
||||
|
||||
" ADDITIONAL KEY MAPPINGS
|
||||
" fast saving
|
||||
nmap <leader>w :up<cr>
|
||||
nmap <leader>w :update<cr>
|
||||
" fast escaping
|
||||
imap jj <ESC>
|
||||
" prevent accidental striking of F1 key
|
||||
@@ -171,11 +171,15 @@ map <leader>sp [s
|
||||
map <leader>sa zg
|
||||
map <leader>s? z=
|
||||
|
||||
" numbers
|
||||
set number
|
||||
set relativenumber
|
||||
nnoremap <F3> :set nonumber!<CR>
|
||||
nnoremap <F4> :set relativenumber!<CR>
|
||||
nmap <silent> <leader>hh :set invhlsearch<CR>
|
||||
nmap <silent> <leader>ll :set invlist<CR>
|
||||
nmap <silent> <leader>nn :set invnumber<CR>
|
||||
nmap <silent> <leader>pp :set invpaste<CR>
|
||||
nmap <silent> <leader>ii :set invrelativenumber<CR>
|
||||
|
||||
if exists('+relativenumber')
|
||||
set relativenumber
|
||||
endif
|
||||
|
||||
"" ADDITIONAL AUTOCOMMANDS
|
||||
|
||||
@@ -226,6 +230,10 @@ nmap <C-Down> ]e
|
||||
vmap <C-Up> [egv
|
||||
vmap <C-Down> ]egv
|
||||
|
||||
" yankstack
|
||||
nmap <leader>p <Plug>yankstack_substitute_older_paste
|
||||
nmap <leader>P <Plug>yankstack_substitute_newer_paste
|
||||
|
||||
" MAIL HUMAN TEX
|
||||
au BufNewFile,BufRead *.txt set filetype=human
|
||||
au FileType human,mail,tex set expandtab textwidth=78 nocindent
|
||||
|
||||
62
xinitrc
62
xinitrc
@@ -4,36 +4,42 @@
|
||||
#
|
||||
# Executed by startx (run your window manager from here)
|
||||
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/*; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done
|
||||
unset f
|
||||
fi
|
||||
case $((hostname)) in
|
||||
t430s-arch)
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/*; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done
|
||||
unset f
|
||||
fi
|
||||
|
||||
start-pulseaudio-x11
|
||||
eval $(gpg-agent --daemon) &
|
||||
pulseaudio --start
|
||||
|
||||
xrdb $HOME/.Xresources
|
||||
eval $(gpg-agent --daemon) &
|
||||
|
||||
# add additional fonts
|
||||
xset +fp /usr/share/fonts/local
|
||||
xset fp rehash
|
||||
xrdb $HOME/.Xresources
|
||||
|
||||
case $1 in
|
||||
enlightenment)
|
||||
exec enlightenment_start
|
||||
;;
|
||||
xterm)
|
||||
exec xterm
|
||||
;;
|
||||
bspwm)
|
||||
sxhkd &
|
||||
exec bspwm
|
||||
;;
|
||||
hlwm|*) # default is herbstluftwm
|
||||
/usr/bin/xscreensaver -no-splash &
|
||||
xbindkeys &
|
||||
exec herbstluftwm --locked
|
||||
;;
|
||||
# add additional fonts
|
||||
xset +fp /usr/share/fonts/local
|
||||
xset fp rehash
|
||||
|
||||
case $1 in
|
||||
enlightenment)
|
||||
exec enlightenment_start
|
||||
;;
|
||||
xterm)
|
||||
exec xterm
|
||||
;;
|
||||
bspwm)
|
||||
sxhkd &
|
||||
exec bspwm
|
||||
;;
|
||||
hlwm|*) # default is herbstluftwm
|
||||
/usr/bin/xscreensaver -no-splash &
|
||||
xbindkeys &
|
||||
exec herbstluftwm --locked
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
53
zsh/bundle/npm/init.zsh
Normal file
53
zsh/bundle/npm/init.zsh
Normal file
@@ -0,0 +1,53 @@
|
||||
###-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 updated: e5fdf78509...22016bd551
Submodule zsh/zilsh updated: 1120c7175c...7b1881de4b
Reference in New Issue
Block a user