Changeset 16024

Show
Ignore:
Timestamp:
07/19/08 13:45:11 (5 years ago)
Author:
cho45
Message:

dotfiles 更新

Location:
dotfiles
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • dotfiles/rubygems/cho45-gemrc

    r15061 r16024  
    11---  
    2 :benchmark: false 
    32:update_sources: true 
    4 :verbose: true 
     3:bulk_threshold: 1000 
    54:sources:  
    65- http://gems.rubyforge.org 
     6- http://gems.github.com 
     7:verbose: true 
     8:benchmark: false 
    79:backtrace: false 
    810rdoc: --template ~/coderepos/lang/ruby/rdoc/generators/template/html/resh/resh.rb --inline-source 
    9 :bulk_threshold: 1000 
  • dotfiles/vim/cho45/.vimrc

    r15803 r16024  
    264264" {{{ Autocompletion using the TAB key 
    265265 
    266 "" This function determines, wether we are on the start of the line text (then tab indents) or 
    267 "" if we want to try autocompletion 
    268 "function! InsertTabWrapper() 
    269 "       let col = col('.') - 1 
    270 "       if !col || getline('.')[col - 1] !~ '\k' 
    271 "               return "\<TAB>" 
    272 "       else 
    273 "               if pumvisible() 
    274 "                       return "\<C-N>" 
    275 "               else 
    276 "                       return "\<C-N>\<C-P>" 
    277 "               end 
    278 "       endif 
    279 "endfunction 
    280 "" Remap the tab key to select action with InsertTabWrapper 
    281 "inoremap <tab> <c-r>=InsertTabWrapper()<cr> 
     266" This function determines, wether we are on the start of the line text (then tab indents) or 
     267" if we want to try autocompletion 
     268function! InsertTabWrapper() 
     269        let col = col('.') - 1 
     270        if !col || getline('.')[col - 1] !~ '\k' 
     271                return "\<TAB>" 
     272        else 
     273                if pumvisible() 
     274                        return "\<C-N>" 
     275                else 
     276                        return "\<C-N>\<C-P>" 
     277                end 
     278        endif 
     279endfunction 
     280" Remap the tab key to select action with InsertTabWrapper 
     281inoremap <tab> <c-r>=InsertTabWrapper()<cr> 
    282282 
    283283" }}} Autocompletion using the TAB key 
     
    290290 
    291291let g:AutoComplPop_CompleteOption = '.,w,b,k' 
    292 let g:snippetsEmu_key = "<TAB>" 
     292let g:snippetsEmu_key = "<C-A>" 
    293293 
    294294autocmd BufNewFile,BufRead *.io set filetype=io 
  • dotfiles/vim/cho45/sortcss

    r4521 r16024  
    138138end 
    139139 
    140 result = ARGF.read.gsub(%r{/\*([^*]*)\*/}m, '').to_a.map {|l| l.chomp }.sort_by do |line| 
     140result = ARGF.read.gsub(%r{/\*([^*]*)\*/}m, '').to_a.map {|l| l.chomp.sub(/\s*:\s*/, ": ") }.sort_by do |line| 
    141141        property_order line 
    142142end 
  • dotfiles/zsh/cho45/.zsh/mine.zshrc

    r15708 r16024  
    9898 
    9999function git () { 
    100         if [ -e '.svn' ]; then 
    101                 command svn $@ | $PAGER 
     100        if [[ -e '.svn' ]]; then 
     101                if [[ $1 == "log" ]]; then 
     102                        command svn $@ | $PAGER 
     103                else 
     104                        command svn $@ 
     105                fi 
    102106                echo 
    103107                echo "x| _ |x < .svn があったので svn コマンドにしました!" 
    104108        else 
    105                 command git $@ 
     109                if [[ $1 == "" ]]; then 
     110                        # git ってだけうったときは status 表示 
     111                        command git branch -a --verbose 
     112                        command git status 
     113                elif [[ $1 == "log" ]]; then 
     114                        # 常に diff を表示してほしい 
     115                        command git log -p ${@[2, -1]} 
     116                else 
     117                        command git $@ 
     118                fi 
     119        fi 
     120} 
     121 
     122function anco () { 
     123        if command git rev-parse --is-inside-work-tree > /dev/null 2>&1; then 
     124                command git grep $@ 
     125        else 
     126                command ack --all --with-filename $@ | $PAGER 
    106127        fi 
    107128} 
     
    115136# ホストごとの設定を読みこむ 
    116137h="${HOST%%.*}" 
    117 if [ -f "$HOME/.zsh/host-$h.zshrc" ] 
    118 then 
     138if [[ -f "$HOME/.zsh/host-$h.zshrc" ]]; then 
    119139        source "$HOME/.zsh/host-$h.zshrc" 
    120140fi 
  • dotfiles/zsh/cho45/.zshrc

    r15879 r16024  
    2121help! () { zle -M "E478: Don't panic!" } 
    2222zle -N help! 
     23 
     24autoload zargs 
    2325 
    2426# 日本語用