-
-
Save nahi/986610 to your computer and use it in GitHub Desktop.
dot files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scriptnames | |
set nocp | |
set completeopt= | |
set viminfo='100,\"500,h,% | |
set fileencodings=iso-2022-jp,ucs-bom,utf-8,euc-jp,default | |
set incsearch | |
set notitle | |
set ambiwidth=double | |
set nf=alpha,hex | |
set clipboard=unnamed | |
set tenc=utf-8 | |
set backup | |
set history=50 | |
set bs=2 | |
set laststatus=2 | |
set statusline=%<%t\ %m%r%h%w[%{&ff}][%{has('multi_byte')&&\ &fenc!=''?&fenc:&enc}]\ %BH\ %{line2byte(line('$')+1)-1}B%=%l,%c\ %P | |
set wildmenu | |
noremap <LEFT> <ESC>:bp<CR> | |
noremap <RIGHT> <ESC>:bn<CR> | |
cnoremap <C-A> <Home> | |
cnoremap <C-F> <Right> | |
cnoremap <C-B> <Left> | |
cnoremap <Esc>b <S-Left> | |
cnoremap <Esc>f <S-Right> | |
cnoremap <C-X> <C-R>=expand('%:h')<CR>/ | |
syntax on | |
"so $VIMRUNTIME/macros/matchit.vim | |
"runtime macros/matchit.vim | |
runtime netrw.vim | |
let loaded_matchparen = 1 | |
inoreabbrev <buffer> ## # -*- coding: utf-8 -*- | |
inoreabbrev <buffer> #d <C-R>=strftime("%F %X:") | |
filetype plugin indent on | |
au BufWritePre * let &bex = '-' . strftime("%s") . '~' | |
au FileType ruby setlocal expandtab indentkeys-=0# sw=2 | |
au BufRead,BufNewFile *anagol/* setl bin noeol fenc=us-ascii fencs= noai nosi | |
au BufRead,BufNewFile ~/.vimgolf/put/* setl compatible | |
au BufRead,BufNewFile *.bc setl nobin eol | |
au BufNewFile * setl fenc=utf-8 | |
au BufRead,BufNewFile *.hnf setl fenc=euc-jp | |
au BufRead,BufNewFile ~/Dropbox/* setl noswapfile | |
" Groovy support | |
au BufNewFile,BufRead *.groovy setf groovy | |
au BufReadPost * | |
\ if line("'\"") > 0 && line ("'\"") <= line("$") | | |
\ exe "normal g`\"" | | |
\ endif | |
let g:mailaddress="Hiroshi Nakamura <[email protected]>" | |
let g:ma_file=expand("~/.mailaddress") | |
if filereadable(g:ma_file) | |
exe "so " . g:ma_file | |
endif | |
runtime ftplugin/changelog.vim | |
let g:changelog_timeformat="%a %b %e %T %Y" | |
let g:changelog_username=g:mailaddress | |
map ch 1Gi<C-R>=strftime("%a %b %e %T %Y ".g:mailaddress."\n\n\n\n")<CR><UP><UP><TAB>* | |
augroup Binary | |
au! | |
au BufReadPre *.bin let &bin=1 | |
au BufReadPost *.bin if &bin | silent! %!xxd -g 1 | |
au BufReadPost *.bin set ft=xxd | endif | |
au BufWritePre *.bin if &bin | %!xxd -r | |
au BufWritePre *.bin endif | |
au BufWritePost *.bin if &bin | silent! %!xxd -g 1 | |
au BufWritePost *.bin set nomod | endif | |
augroup END | |
let skk_jisyo = "~/.skk-vim-jisyo" | |
let skk_large_jisyo = "/usr/share/skk/SKK-JISYO.L" | |
let skk_auto_save_jisyo = 1 | |
let skk_egg_like_newline = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATH=$HOME/bin:$HOME/jarp/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
umask 022 | |
if [ -z "$TMUX" ]; then | |
stty erase ^h | |
fi | |
if [ "$TERM" = screen ]; then | |
precmd(){ print -n '\ek\e\\' } | |
fi | |
PROMPT="%m:%2~ %# " | |
#TIMEFMT='%E real %U user %S sys %P cpu' | |
HISTSIZE=100000 | |
SAVEHIST=100000 | |
HISTFILE=~/.zshhist | |
CDPATH=~:~/ruby:~/ruby/ruby:~/ruby/ruby/branches | |
bindkey ' ' magic-space | |
unsetopt chase_dots | |
setopt nolistbeep | |
setopt list_packed | |
setopt correct | |
setopt auto_pushd | |
setopt nopromptcr | |
setopt share_history | |
#setopt extended_history | |
setopt HIST_SAVE_NO_DUPS | |
setopt EXTENDED_GLOB | |
setopt hist_ignore_all_dups | |
setopt print_eight_bit | |
setopt INC_APPEND_HISTORY | |
setopt print_exit_value | |
zstyle ':completion:*:default' menu select=1 | |
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' | |
zstyle ':completion:*' accept-exact '*(N)' | |
zstyle ':completion:*:cd:*' tag-order local-directories path-directories | |
zstyle ':completion:*' use-cache true | |
#autoload -U compinit ; compinit | |
alias mo='export mo=$HOME/`date +%y%m`; mkdir -p $mo; cd $mo' | |
alias caddy=~/caddy/caddy.rb | |
alias vimgolf="DIFF='diff -U1' /usr/local/bin/vimgolf" | |
autoload -U up-line-or-beginning-search | |
autoload -U down-line-or-beginning-search | |
zle -N up-line-or-beginning-search | |
zle -N down-line-or-beginning-search | |
bindkey "^P" up-line-or-beginning-search | |
bindkey "^N" down-line-or-beginning-search | |
zmodload zsh/complist | |
bindkey -M menuselect '^P' up-line-or-history | |
bindkey -M menuselect '^N' down-line-or-history | |
bindkey '^R' history-incremental-pattern-search-backward | |
bindkey '^S' history-incremental-pattern-search-forward | |
bindkey -e | |
autoload -Uz select-word-style | |
select-word-style default | |
zstyle ':zle:*' word-chars " _-./;@" | |
zstyle ':zle:*' word-style unspecified | |
autoload -U url-quote-magic | |
zle -N self-insert url-quote-magic | |
PROMPT="%# " | |
CDPATH= | |
export JAVA_HOME=/home/nahi/java/jdk1.7.0b142 | |
alias ls='ls -F --color --show-control-chars' | |
setopt rm_star_silent | |
export CVS_RSH=ssh | |
export EDITOR=vim | |
export JRUBY_HOME=/home/nahi/git/jruby | |
export GROOVY_HOME=/home/nahi/java/groovy-1.7.5 | |
export MIRAH_HOME=/home/nahi/git/mirah | |
export APPENGINE_JAVA_SDK=/home/nahi/apps/appengine-java-sdk-1.3.5 | |
export MVN3_HOME=/home/nahi/java/apache-maven-3.0.3 | |
export PATH=/home/nahi/.gem/ruby/1.9.1/bin:$MIRAH_HOME/bin:$APPENGINE_JAVA_SDK/bin:$GROOVY_HOME/bin:$MVN3_HOME/bin:$PATH | |
alias jruby152=/home/nahi/java/jruby-1.5.2/bin/jruby | |
alias jruby153=/home/nahi/java/jruby-1.5.3/bin/jruby | |
alias jruby154=/home/nahi/java/jruby-1.5.4/bin/jruby | |
alias jruby155=/home/nahi/java/jruby-1.5.5/bin/jruby | |
alias jruby156=/home/nahi/java/jruby-1.5.6/bin/jruby | |
alias jruby160=/home/nahi/java/jruby-1.6.0/bin/jruby | |
alias jruby161=/home/nahi/java/jruby-1.6.1/bin/jruby | |
alias jruby162=/home/nahi/java/jruby-1.6.2/bin/jruby | |
alias jruby=/home/nahi/git/jruby/bin/jruby | |
alias rbx=/home/nahi/ruby/rubinius-1.2.3/bin/rbx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment