Last active
August 29, 2015 14:13
-
-
Save mayosuke/1706844d150dc9f42406 to your computer and use it in GitHub Desktop.
This file contains 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
[user] | |
name = Yosuke MIYAJIMA | |
email = mayo.suke@gmail.com | |
[core] | |
editor = vim | |
excludesfile = ~/.gitignore_global | |
autocrlf = false | |
[merge] | |
tool = vimdiff | |
[diff] | |
tool = vimdiff | |
[color] | |
ui = auto |
This file contains 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
*~ | |
.DS_Store |
This file contains 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
"Forked from https://gist.github.com/fl04t/10960059 | |
"#####表示設定##### | |
set title "編集中のファイル名を表示 | |
syntax on "コードの色分け | |
set tabstop=4 "インデントをスペース4つ分に設定 | |
set smartindent "オートインデント | |
"#####検索設定##### | |
set ignorecase "大文字/小文字の区別なく検索する | |
set smartcase "検索文字列に大文字が含まれている場合は区別して検索する | |
set wrapscan "検索時に最後まで行ったら最初に戻る | |
"-------------------- | |
"" 基本的な設定 | |
"-------------------- | |
"新しい行のインデントを現在行と同じにする | |
set autoindent | |
"タブの代わりに空白文字を指定する | |
set expandtab | |
" | |
""変更中のファイルでも、保存しないで他のファイルを表示する | |
set hidden | |
"インクリメンタルサーチを行う | |
set incsearch | |
" | |
""行番号を表示する | |
set number | |
"閉括弧が入力された時、対応する括弧を強調する | |
set showmatch | |
" | |
""新しい行を作った時に高度な自動インデントを行う | |
set smarttab | |
set hlsearch | |
" " 検索結果のハイライトをEsc連打でクリアする | |
nnoremap <ESC><ESC> :nohlsearch<CR> |
This file contains 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
# Referenced: | |
# http://d.hatena.ne.jp/ama-ch/20090109/1231526834 | |
# http://news.mynavi.jp/column/osx/054/ | |
# 補完機能 | |
autoload -U compinit | |
compinit | |
# コマンド履歴 | |
HISTFILE=~/.zsh_history | |
HISTSIZE=6000000 | |
SAVEHIST=6000000 | |
setopt hist_ignore_dups # ignore duplication command history list | |
setopt share_history # share command history data | |
# コマンド履歴検索 | |
autoload history-search-end | |
zle -N history-beginning-search-backward-end history-search-end | |
zle -N history-beginning-search-forward-end history-search-end | |
bindkey "^P" history-beginning-search-backward-end | |
bindkey "^N" history-beginning-search-forward-end | |
# ディレクトリ名を入力するだけで移動 | |
setopt auto_cd | |
# 移動したディレクトリを記録しておく。"cd -[Tab]"で移動履歴を一覧 | |
setopt auto_pushd | |
# コマンド訂正 | |
setopt correct | |
# 補完候補を詰めて表示する | |
setopt list_packed | |
# 補完候補表示時などにピッピとビープ音をならないように設定 | |
setopt nolistbeep | |
setopt EXTENDED_GLOB | |
#autoload bashcompinit | |
#bashcompinit | |
#source ~/.git-completion.sh | |
#autoload colors | |
#colors | |
PROMPT='[%n@%M]# ' | |
RPROMPT='[%d]' | |
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment