Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
tmsanrinsha committed Apr 28, 2014
1 parent 28944b8 commit b0cda61
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
*.swp
.DS_Store
15 changes: 3 additions & 12 deletions home/.tmux.conf
@@ -1,5 +1,5 @@
# 基本設定 {{{
# ==============================================================================
# ============================================================================
# 以下のように省略できる
# set-option => set
# set-window-option => setw
Expand All @@ -9,10 +9,9 @@
unbind-key C-b
# Ctrl+qをPrefixキーにする
set-option -g prefix C-q
bind-key C-q send-prefix
# bind-key C-q send-prefix

set-window-option -g utf8 on

# 256色
# tmux起動時に$TERMに256色に対応した端末(xterm-256colorなど)が設定されていると
# 256色が使えるが、そうでない場合はtmux -2と打って起動すると、256色が使えるようになる。
Expand Down Expand Up @@ -58,9 +57,8 @@ set-window-option -g automatic-rename off
# DISABLE_AUTO_TITLE=true
# 参照:http://qiita.com/items/c166700393481cb15e0c
#}}}

# color {{{
# ==============================================================================
# ============================================================================
# ステータスラインカスタム関連
set -g status-bg colour235
set -g status-fg white
Expand All @@ -87,15 +85,13 @@ set-window-option -g window-status-current-attr bold
#set-window-option -g mode-bg white
#set-window-option -g mode-fg black
#}}}

# session {{{
# ==============================================================================
bind C command-prompt "new-session -s '%%'"
bind Space choose-session
bind Q switch-client -l # last-sessionに移動
bind a attach-session -d # 自分以外をデタッチさせる
#}}}

# window {{{
# ==============================================================================
# 新ウィンドウ作成
Expand All @@ -110,7 +106,6 @@ bind C-q last-window
# processesの1をeditorセッションに移動する
# move-window -s processes:1 -t editor
#}}}

# pain {{{
# ==============================================================================
# ウィンドウの縦分割
Expand Down Expand Up @@ -161,7 +156,6 @@ bind L display-panes
# ペインの同期のトグル
bind-key S set-window-option synchronize-panes
#}}}

# copy mode {{{
# ==============================================================================
# コピーモード突入
Expand All @@ -183,12 +177,10 @@ bind @ copy-mode \; send-keys ? C-u tmiwa@ C-m n
bind -t vi-copy @ search-again
bind -t vi-copy ` search-reverse
#}}}
# command prompt {{{
# =============================================================================
set-window-option -g status-keys emacs
# }}}
# mouse {{{
# ==============================================================================
# マウスドラッグでコピーモード
Expand All @@ -200,7 +192,6 @@ set -g mouse-select-window on
# マウスでペインの大きさの変更
set -g mouse-resize-pane on
#}}}
# 特殊なキーバインドの設定 {{{
# ==============================================================================
set-window-option -g xterm-keys on # to make ctrl-arrow, etc. work
Expand Down
24 changes: 14 additions & 10 deletions home/.vimrc
Expand Up @@ -826,7 +826,6 @@ autocmd MyVimrc FileType html
\| setlocal path+=./;/
" }}}
" }}}
" }}}
" JavaScript {{{
" ----------------------------------------------------------------------------
autocmd MyVimrc FileType javascript setlocal syntax=jquery
Expand Down Expand Up @@ -902,6 +901,7 @@ autocmd MyVimrc FileType crontab setlocal backupcopy=yes
" ----------------------------------------------------------------------------
autocmd MyVimrc BufRead,BufNewFile *.tsv setlocal noexpandtab
" }}}
" }}}
" plugin {{{
" neobundle.vim {{{
" ============================================================================
Expand Down Expand Up @@ -972,6 +972,11 @@ if filereadable(expand($VIMFILES.'/bundle/neobundle.vim/autoload/neobundle.vim')
" if has('python') && (v:version >= 704 || v:version == 703 && has('patch584'))
" NeoBundle "Valloric/YouCompleteMe"
" endif
" NeoBundleLazy 'm2mdas/phpcomplete-extended', {
" \ 'depends': ['Shougo/vimproc', 'Shougo/unite.vim'],
" \ 'autoload': {'filetype': 'php'}
" \}
NeoBundleLazy 'shawncplus/phpcomplete.vim', {'autoload': {'filetype': 'php'}}
""" }}}
""" スニペット補完 {{{
NeoBundleLazy 'Shougo/neosnippet', {"autoload": {"insert": 1}}
Expand Down Expand Up @@ -1403,7 +1408,6 @@ if s:is_installed("vim-smartword")
map ge <Plug>(smartword-ge)
endif
"}}}
" if g:has_plugin('neobundle') && (v:version >= 703 || v:version == 702 && has('patch051'))
" Shougo/unite.vim {{{
" ============================================================================
if s:is_installed('unite.vim')
Expand Down Expand Up @@ -1973,7 +1977,7 @@ autocmd MyVimrc BufRead,BufNewFile */workspace/* nnoremap <buffer> <Leader>r :Qu
endif
"}}}
" operator {{{
" ==============================================================================
" ============================================================================
if s:is_installed("vim-operator-user")
call neobundle#config('vim-operator-user', {
\ 'autoload': {
Expand Down Expand Up @@ -2008,6 +2012,7 @@ if s:is_installed("vim-operator-user")
endif
" }}}
" textobj {{{
" ============================================================================
if s:is_installed("vim-textobj-lastpat")
nmap gn <Plug>(textobj-lastpat-n)
nmap gN <Plug>(textobj-lastpat-N)
Expand Down Expand Up @@ -2237,13 +2242,13 @@ if s:is_installed('vim-fugitive')
function! s:hooks.on_source(bundle)
nnoremap [fugitive] <Nop>
nmap <Leader>g [fugitive]
noremap [fugitive]d :Gdiff<CR>
noremap [fugitive]s :Gstatus<CR>
noremap [fugitive]l :Glog<CR>
noremap [fugitive]p :Git pull --rebase origin master<CR>
nnoremap [fugitive]d :Gdiff<CR>
nnoremap [fugitive]s :Gstatus<CR>
nnoremap [fugitive]l :Glog<CR>
nnoremap [fugitive]p :Git pull --rebase origin master<CR>
noremap d] :diffget //2 | diffupdate
noremap d[ :diffget //3 | diffupdate
nnoremap d] :diffget //2 | diffupdate
nnoremap d[ :diffget //3 | diffupdate
endfunction
endif
" }}}
Expand Down Expand Up @@ -2384,7 +2389,6 @@ if s:is_installed('qfixhowm')
unlet s:bundle
endif
" }}}
" endif
" }}}
if !has('gui_running') && filereadable(expand('~/.cvimrc'))
source ~/.cvimrc
Expand Down

0 comments on commit b0cda61

Please sign in to comment.