Commits

kotakanbe committed 5955874 Draft

最新化

  • Participants
  • Parent commits 3c9b1dd

Comments (0)

Files changed (2)

 endfunc
 "}}}
 
+"バイナリ編集(xxd)モード(vim -b での起動、もしくは *.bin ファイルを開くと発動します)
+augroup BinaryXXD
+  autocmd!
+  autocmd BufReadPre  *.bin let &binary =1
+  autocmd BufReadPost * if &binary | silent %!xxd -g 1 | endif
+  autocmd BufReadPost * if &binary | set ft=xxd | endif
+  autocmd BufWritePre * if &binary | %!xxd -r | endif
+  autocmd BufWritePost * if &binary | silent %!xxd -g 1 | endif
+  autocmd BufWritePost * if &binary | set nomod | endif
+augroup END
+
+
 # export MANPATH=$ERLANG_HOME/man:$MANPATH
 # . $HOME/local/r14b04/activate
 
+. /opt/erlang/r14b04/activate  
+
 # export EDITOR=emacsclient
 # export VISUAL=emacsclient
 export EDITOR=vim
 
 # rvm
 # [[ -s "/home/kanbe/.rvm/scripts/rvm" ]] && source "/home/kanbe/.rvm/scripts/rvm"
-[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" 
+# [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" 
 
 # macports
 # export PATH=/opt/local/bin:/opt/local/sbin:$PATH
 
 # for vim-powerline
 export TERM=screen-256color
+
+# PHP
+export PATH=/Users/kanbe/pear/bin:$PATH
+