Permalink
Browse files

vim周りを色々いじって軽量にした

  • Loading branch information...
1 parent 3987c6d commit cf8d568407634ac819eac47ca5e5f866e6741210 @mironal committed Nov 28, 2012
Showing with 344 additions and 339 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 .vimrc.basic
  3. +75 −75 .vimrc.bundle
  4. +263 −263 .vimrc.plugins_setting
  5. +4 −0 .zshrc
View
1 .gitignore
@@ -0,0 +1 @@
+yuroyoro.bk/*
View
2 .vimrc.basic
@@ -16,7 +16,7 @@ set browsedir=buffer " Exploreの初期ディレクトリ
set showcmd " コマンドをステータス行に表示
set showmode " 現在のモードを表示
set viminfo='50,<1000,s100,\"50 " viminfoファイルの設定
-set modelines=0 " モードラインは無効
+"set modelines=0 " モードラインは無効
" OSのクリップボードを使用する
set clipboard+=unnamed
View
150 .vimrc.bundle
@@ -16,83 +16,83 @@ endif
" Edit {{{
" NERD_commenter.vim :最強コメント処理 (<Leader>c<space>でコメントをトグル)
- NeoBundle 'scrooloose/nerdcommenter.git'
+ "NeoBundle 'scrooloose/nerdcommenter.git'
" 自動閉じタグ
" NeoBundle 'yuroyoro/vim-autoclose'
" -- でメソッドチェーン整形
- NeoBundle 'c9s/cascading.vim'
+ "NeoBundle 'c9s/cascading.vim'
" visually indent guide
- NeoBundle 'nathanaelkane/vim-indent-guides'
+ "NeoBundle 'nathanaelkane/vim-indent-guides'
" XMLとかHTMLとかの編集機能を強化する
- NeoBundle 'xmledit'
+ "NeoBundle 'xmledit'
" Align : 高機能整形・桁揃えプラグイン
NeoBundle 'Align'
" フィルタリングと整形
- NeoBundle 'godlygeek/tabular'
+ "NeoBundle 'godlygeek/tabular'
" マルチバイト対応の整形
- NeoBundle 'h1mesuke/vim-alignta'
+ "NeoBundle 'h1mesuke/vim-alignta'
" YankRing.vim : ヤンクの履歴を管理し、順々に参照、出力できるようにする
- NeoBundle 'YankRing.vim'
+ "NeoBundle 'YankRing.vim'
" undo履歴を追える (need python support)
- NeoBundle 'Gundo'
+ "NeoBundle 'Gundo'
" surround.vim : テキストを括弧で囲む/削除する
- NeoBundle 'tpope/surround.vim'
+ "NeoBundle 'tpope/surround.vim'
" smartchr.vim : ==などの前後を整形
- NeoBundle 'smartchr'
+ "NeoBundle 'smartchr'
" vim-operator-user : 簡単にoperatorを定義できるようにする
- NeoBundle 'operator-user'
+ "NeoBundle 'operator-user'
" operator-camelize : camel-caseへの変換
- NeoBundle 'operator-camelize'
+ "NeoBundle 'operator-camelize'
" operator-replace : yankしたものでreplaceする
- NeoBundle 'operator-replace'
+ "NeoBundle 'operator-replace'
" textobj-user : 簡単にVimエディタのテキストオブジェクトをつくれる
- NeoBundle 'textobj-user'
+ "NeoBundle 'textobj-user'
" vim-textobj-syntax : syntax hilightされたものをtext-objectに
- NeoBundle 'kana/vim-textobj-syntax.git'
+ "NeoBundle 'kana/vim-textobj-syntax.git'
" vim-textobj-plugins : いろんなものをtext-objectにする
- NeoBundle 'thinca/vim-textobj-plugins.git'
+ "NeoBundle 'thinca/vim-textobj-plugins.git'
" vim-textobj-lastpat : 最後に検索されたパターンをtext-objectに
- NeoBundle 'kana/vim-textobj-lastpat.git'
+ "NeoBundle 'kana/vim-textobj-lastpat.git'
" vim-textobj-indent : インデントされたものをtext-objectに
- NeoBundle 'kana/vim-textobj-indent.git'
+ "NeoBundle 'kana/vim-textobj-indent.git'
" vim-textobj-function : 関数の中身をtext-objectに
- NeoBundle 'kana/vim-textobj-function.git'
+ "NeoBundle 'kana/vim-textobj-function.git'
" vim-textobj-fold : 折りたたまれたアレをtext-objectに
" NeoBundle 'kana/vim-textobj-fold.git'
- NeoBundle 'textobj-rubyblock'
+ "NeoBundle 'textobj-rubyblock'
" vim-textobj-entire : buffer全体をtext-objectに
- NeoBundle 'textobj-entire'
+ "NeoBundle 'textobj-entire'
" 「foo」 or 【bar】などをtext-objectに
- NeoBundle 'textobj-jabraces'
+ "NeoBundle 'textobj-jabraces'
" 改造したmonday.vim(git rebase -i とかtrue/falseとか)
" NeoBundle 'yuroyoro/monday'
" <C-a>でtrue/false切替。他色々
- NeoBundle 'taku-o/vim-toggle'
+ "NeoBundle 'taku-o/vim-toggle'
" }}}
@@ -108,8 +108,8 @@ endif
NeoBundle 'Shougo/neosnippet'
" for rsense
- NeoBundle 'm2ym/rsense'
- NeoBundle 'taichouchou2/vim-rsense'
+ "NeoBundle 'm2ym/rsense'
+ "NeoBundle 'taichouchou2/vim-rsense'
" rubyでrequire先を補完する
" NeoBundle 'ujihisa/neco-ruby'
@@ -120,31 +120,31 @@ endif
" Searching/Moving{{{
" smooth_scroll.vim : スクロールを賢く
- NeoBundle 'Smooth-Scroll'
+ "NeoBundle 'Smooth-Scroll'
" vim-smartword : 単語移動がスマートな感じで
- NeoBundle 'smartword'
+ "NeoBundle 'smartword'
" camelcasemotion : CamelCaseやsnake_case単位でのワード移動
- NeoBundle 'camelcasemotion'
+ "NeoBundle 'camelcasemotion'
" <Leader><Leader>w/fなどで、motion先をhilightする
- NeoBundle 'EasyMotion'
+ "NeoBundle 'EasyMotion'
" matchit.vim : 「%」による対応括弧へのカーソル移動機能を拡張
- NeoBundle 'matchit.zip'
+ "NeoBundle 'matchit.zip'
" ruby用のmatchit拡張
- NeoBundle 'ruby-matchit'
+ "NeoBundle 'ruby-matchit'
" grep.vim : 外部のgrep利用。:Grepで対話形式でgrep :Rgrepは再帰
- NeoBundle 'grep.vim'
+ "NeoBundle 'grep.vim'
" eregex.vim : vimの正規表現をrubyやperlの正規表現な入力でできる :%S/perlregex/
- NeoBundle 'eregex.vim'
+ "NeoBundle 'eregex.vim'
" open-browser.vim : カーソルの下のURLを開くor単語を検索エンジンで検索
- NeoBundle 'tyru/open-browser.vim'
+ "NeoBundle 'tyru/open-browser.vim'
" }}}
@@ -153,25 +153,25 @@ endif
NeoBundle 'thinca/vim-quickrun'
" perldocやphpmanual等のリファレンスをvim上で見る
- NeoBundle 'thinca/vim-ref'
+ "NeoBundle 'thinca/vim-ref'
" SQLUtilities : SQL整形、生成ユーティリティ
- NeoBundle 'SQLUtilities'
+ "NeoBundle 'SQLUtilities'
" vim-ruby : VimでRubyを扱う際の最も基本的な拡張機能
- NeoBundle 'vim-ruby/vim-ruby'
+ "NeoBundle 'vim-ruby/vim-ruby'
" rails.vim : rails的なアレ
- NeoBundle 'tpope/vim-rails'
+ "NeoBundle 'tpope/vim-rails'
" Pydiction : Python用の入力補完
- NeoBundle 'Pydiction'
+ "NeoBundle 'Pydiction'
" ソースコード上のメソッド宣言、変数宣言の一覧を表示
- NeoBundle 'taglist.vim'
+ "NeoBundle 'taglist.vim'
" エラーがある場所をhilight
- NeoBundle 'errormarker.vim'
+ "NeoBundle 'errormarker.vim'
" tagsを利用したソースコード閲覧・移動補助機能 tagsファイルの自動生成
" NeoBundle 'Source-Explorer-srcexpl.vim'
@@ -217,97 +217,97 @@ endif
" Buffer {{{
" DumbBuf.vim : quickbufっぽくbufferを管理。 "<Leader>b<Space>でBufferList
- NeoBundle 'DumbBuf'
+ "NeoBundle 'DumbBuf'
" minibufexpl.vim : タブエディタ風にバッファ管理ウィンドウを表示
- NeoBundle 'minibufexpl.vim'
+ "NeoBundle 'minibufexpl.vim'
" NERDTree : ツリー型エクスプローラ
- NeoBundle 'The-NERD-tree'
+ "NeoBundle 'The-NERD-tree'
" vtreeexplorer.vim : ツリー状にファイルやディレクトリの一覧を表示
- NeoBundle 'vtreeexplorer'
+ "NeoBundle 'vtreeexplorer'
" }}}
" Encording {{{
- NeoBundle 'banyan/recognize_charcode.vim'
+ "NeoBundle 'banyan/recognize_charcode.vim'
" }}}
" Utility {{{
" vimshell : vimのshell
- NeoBundle 'Shougo/vimshell.git'
+ "NeoBundle 'Shougo/vimshell.git'
" vimproc : vimから非同期実行。vimshelleで必要
- NeoBundle 'Shougo/vimproc', {
- \ 'build' : {
- \ 'mac' : 'make -f make_mac.mak',
- \ },
- \ }
+ "NeoBundle 'Shougo/vimproc', {
+ " \ 'build' : {
+ " \ 'mac' : 'make -f make_mac.mak',
+ " \ },
+ " \ }
" vim-altercmd : Ex command拡張
- NeoBundle 'tyru/vim-altercmd'
+ "NeoBundle 'tyru/vim-altercmd'
" vim Interface to Web API
- NeoBundle 'mattn/webapi-vim'
+ "NeoBundle 'mattn/webapi-vim'
" cecutil.vim : 他のpluginのためのutillity1
- NeoBundle 'cecutil'
+ "NeoBundle 'cecutil'
" urilib.vim : vim scriptからURLを扱うライブラリ
- NeoBundle 'tyru/urilib.vim'
+ "NeoBundle 'tyru/urilib.vim'
" ステータスラインに顔文字を表示
" NeoBundle 'mattn/hahhah-vim'
" utillity
- NeoBundle 'L9'
+ "NeoBundle 'L9'
" Buffer管理のLibrary
- NeoBundle 'thinca/vim-openbuf'
+ "NeoBundle 'thinca/vim-openbuf'
" vimdoc 日本語
- NeoBundle 'yuroyoro/vimdoc_ja'
+ "NeoBundle 'yuroyoro/vimdoc_ja'
" vim上のtwitter client
- NeoBundle 'TwitVim'
+ "NeoBundle 'TwitVim'
" Lingrのclient
- NeoBundle 'tsukkee/lingr-vim'
+ "NeoBundle 'tsukkee/lingr-vim'
" vimからGit操作する
- NeoBundle 'tpope/vim-fugitive'
+ "NeoBundle 'tpope/vim-fugitive'
" ステータスラインをカッコよくする
- NeoBundle 'Lokaltog/vim-powerline'
+ "NeoBundle 'Lokaltog/vim-powerline'
" Redmine on Vim
- NeoBundle 'mattn/vim-metarw-redmine'
+ "NeoBundle 'mattn/vim-metarw-redmine'
" A framework to read/write fake:path
- NeoBundle 'kana/vim-metarw'
+ "NeoBundle 'kana/vim-metarw'
" }}}
" ColorSchema{{{{
" color schema 256
- NeoBundle 'desert256.vim'
- NeoBundle 'mrkn256.vim'
- NeoBundle 'tomasr/molokai'
+ "NeoBundle 'desert256.vim'
+ "NeoBundle 'mrkn256.vim'
+ "NeoBundle 'tomasr/molokai'
NeoBundle 'yuroyoro/yuroyoro256.vim'
" }}}
" Unite {{{{
" unite.vim : - すべてを破壊し、すべてを繋げ - vim scriptで実装されたanythingプラグイン
- NeoBundle 'Shougo/unite.vim'
- NeoBundle 'tsukkee/unite-help'
- NeoBundle 'h1mesuke/unite-outline'
+ "NeoBundle 'Shougo/unite.vim'
+ "NeoBundle 'tsukkee/unite-help'
+ "NeoBundle 'h1mesuke/unite-outline'
" NeoBundle 'Sixeight/unite-grep'
- NeoBundle 'basyura/unite-rails'
- NeoBundle 'thinca/vim-unite-history'
- NeoBundle 'tsukkee/unite-tag'
- NeoBundle 'choplin/unite-vim_hacks'
+ "NeoBundle 'basyura/unite-rails'
+ "NeoBundle 'thinca/vim-unite-history'
+ "NeoBundle 'tsukkee/unite-tag'
+ "NeoBundle 'choplin/unite-vim_hacks'
" }}}
"
View
526 .vimrc.plugins_setting
@@ -6,22 +6,22 @@
" YankRing.vim
"------------------------------------
" Yankの履歴参照
-nmap ,y ;YRShow<CR>
+"nmap ,y ;YRShow<CR>
"------------------------------------
" MiniBufExplorer
"------------------------------------
"set minibfexp
-let g:miniBufExplMapWindowNavVim=1 "hjklで移動
-let g:miniBufExplSplitBelow=0 " Put new window above
-let g:miniBufExplMapWindowNavArrows=1
-let g:miniBufExplMapCTabSwitchBufs=1
-let g:miniBufExplModSelTarget=1
-let g:miniBufExplSplitToEdge=1
-let g:miniBufExplMaxSize = 10
+"let g:miniBufExplMapWindowNavVim=1 "hjklで移動
+"let g:miniBufExplSplitBelow=0 " Put new window above
+"let g:miniBufExplMapWindowNavArrows=1
+"let g:miniBufExplMapCTabSwitchBufs=1
+"let g:miniBufExplModSelTarget=1
+"let g:miniBufExplSplitToEdge=1
+"let g:miniBufExplMaxSize = 10
":MtでMiniBufExplorerの表示トグル
-command! Mt :TMiniBufExplorer
+"command! Mt :TMiniBufExplorer
"------------------------------------
" Align
@@ -33,34 +33,34 @@ let g:Align_xstrlen = 3
" VTreeExplorer
"------------------------------------
" 縦に表示する
-let g:treeExplVertical=1
+"let g:treeExplVertical=1
"------------------------------------
" NERD_commenter.vim
"------------------------------------
" コメントの間にスペースを空ける
-let NERDSpaceDelims = 1
+"let NERDSpaceDelims = 1
"<Leader>xでコメントをトグル(NERD_commenter.vim)
-map <Leader>x, c<space>
+"map <Leader>x, c<space>
""未対応ファイルタイプのエラーメッセージを表示しない
-let NERDShutUp=1
+"let NERDShutUp=1
" ------------------------------------
" grep.vim
"------------------------------------
" 検索外のディレクトリ、ファイルパターン
-let Grep_Skip_Dirs = '.svn .git .hg'
-let Grep_Skip_Files = '*.bak *~'
+"let Grep_Skip_Dirs = '.svn .git .hg'
+"let Grep_Skip_Files = '*.bak *~'
"------------------------------------
" surround.vim
"------------------------------------
" s, ssで選択範囲を指定文字でくくる
-nmap s <Plug>Ysurround
-nmap ss <Plug>Yssurround
-let g:surround_{char2nr('e')} = "begin \r end"
-let g:surround_{char2nr('d')} = "do \r end"
-let g:surround_{char2nr("-")} = ":\r"
+"nmap s <Plug>Ysurround
+"nmap ss <Plug>Yssurround
+"let g:surround_{char2nr('e')} = "begin \r end"
+"let g:surround_{char2nr('d')} = "do \r end"
+"let g:surround_{char2nr("-")} = ":\r"
"------------------------------------
" smartchr.vim
@@ -106,61 +106,61 @@ let g:surround_{char2nr("-")} = ":\r"
"------------------------------------
" Fugitive.vim
"------------------------------------
-nnoremap <Space>gd :<C-u>Gdiff<Enter>
-nnoremap <Space>gs :<C-u>Gstatus<Enter>
-nnoremap <Space>gl :<C-u>Glog<Enter>
-nnoremap <Space>ga :<C-u>Gwrite<Enter>
-nnoremap <Space>gc :<C-u>Gcommit<Enter>
-nnoremap <Space>gC :<C-u>Git commit --amend<Enter>
-nnoremap <Space>gb :<C-u>Gblame<Enter>
+"nnoremap <Space>gd :<C-u>Gdiff<Enter>
+"nnoremap <Space>gs :<C-u>Gstatus<Enter>
+"nnoremap <Space>gl :<C-u>Glog<Enter>
+"nnoremap <Space>ga :<C-u>Gwrite<Enter>
+"nnoremap <Space>gc :<C-u>Gcommit<Enter>
+"nnoremap <Space>gC :<C-u>Git commit --amend<Enter>
+"nnoremap <Space>gb :<C-u>Gblame<Enter>
"------------------------------------
" BufExplorer
"------------------------------------
"<Leader>l<Space>でBufferList
-nnoremap <Leader>l<Space> :BufExplorer<CR>
+"nnoremap <Leader>l<Space> :BufExplorer<CR>
"------------------------------------
" VTreeExplorer
"------------------------------------
-let g:treeExplVertical=1
+"let g:treeExplVertical=1
"<Leader>t<Space>でディレクトリツリー表示
-noremap <Leader>t<Space> :VSTreeExplore<CR>
+"noremap <Leader>t<Space> :VSTreeExplore<CR>
"分割したウィンドウのサイズ
-let g:treeExplWinSize=30
+"let g:treeExplWinSize=30
"------------------------------------
" DumbBuf.vim
"------------------------------------
"<Leader>b<Space>でBufferList
-let dumbbuf_hotkey = '<Leader>b<Space>'
-let dumbbuf_mappings = {
- \ 'n': {
- \'<Esc>': { 'opt': '<silent>', 'mapto': ':<C-u>close<CR>' }
- \}
-\}
-let dumbbuf_single_key = 1
-let dumbbuf_updatetime = 1 " &updatetimeの最小値
-let dumbbuf_wrap_cursor = 0
-let dumbbuf_remove_marked_when_close = 1
+"let dumbbuf_hotkey = '<Leader>b<Space>'
+"let dumbbuf_mappings = {
+" \ 'n': {
+" \'<Esc>': { 'opt': '<silent>', 'mapto': ':<C-u>close<CR>' }
+" \}
+"\}
+"let dumbbuf_single_key = 1
+"let dumbbuf_updatetime = 1 " &updatetimeの最小値
+"let dumbbuf_wrap_cursor = 0
+"let dumbbuf_remove_marked_when_close = 1
"------------------------------------
" vim-indent-guides
"------------------------------------
-nnoremap <silent> <Space>id :<C-u>IndentGuidesToggle<Enter>
-let g:indent_guides_auto_colors = 0
-let g:indent_guides_start_level = 4
-let g:indent_guides_guide_size = 1
-autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=red ctermbg=3
-autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=4
-if 'dark' == &background
- hi IndentGuidesOdd ctermbg=black
- hi IndentGuidesEven ctermbg=darkgrey
-else
- hi IndentGuidesOdd ctermbg=white
- hi IndentGuidesEven ctermbg=lightgrey
-endif
+"nnoremap <silent> <Space>id :<C-u>IndentGuidesToggle<Enter>
+"let g:indent_guides_auto_colors = 0
+"let g:indent_guides_start_level = 4
+"let g:indent_guides_guide_size = 1
+"autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=red ctermbg=3
+"autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=4
+"if 'dark' == &background
+" hi IndentGuidesOdd ctermbg=black
+" hi IndentGuidesEven ctermbg=darkgrey
+"else
+" hi IndentGuidesOdd ctermbg=white
+" hi IndentGuidesEven ctermbg=lightgrey
+"endif
"------------------------------------
" gundo.Vim
@@ -171,29 +171,29 @@ endif
" taglist.Vim
"------------------------------------
" 関数一覧
-set tags=tags
+"set tags=tags
"set tags+=~/.tags
"let Tlist_Ctags_Cmd = '/Applications/MacVim.app/Contents/MacOS/ctags' " ctagsのパス
-let Tlist_Show_One_File = 1 " 現在編集中のソースのタグしか表示しない
-let Tlist_Exit_OnlyWindow = 1 " taglistのウィンドーが最後のウィンドーならばVimを閉じる
+"let Tlist_Show_One_File = 1 " 現在編集中のソースのタグしか表示しない
+"let Tlist_Exit_OnlyWindow = 1 " taglistのウィンドーが最後のウィンドーならばVimを閉じる
" let Tlist_Use_Right_Window = 1 " 右側でtaglistのウィンドーを表示
-let Tlist_Enable_Fold_Column = 1 " 折りたたみ
-let Tlist_Auto_Open = 1 " 自動表示
-let Tlist_Auto_Update = 1
-let Tlist_WinWidth = 30
+"let Tlist_Enable_Fold_Column = 1 " 折りたたみ
+"let Tlist_Auto_Open = 1 " 自動表示
+"let Tlist_Auto_Update = 1
+"let Tlist_WinWidth = 30
"map <silent> <leader>tl :Tlist<CR> " taglistを開くショットカットキー
-nmap <F7> :CMiniBufExplorer<CR>:TrinityToggleTagList<CR>:TMiniBufExplorer<CR>
-nmap <Leader>tl :CMiniBufExplorer<CR>:TrinityToggleTagList<CR>:TMiniBufExplorer<CR>
+"nmap <F7> :CMiniBufExplorer<CR>:TrinityToggleTagList<CR>:TMiniBufExplorer<CR>
+"nmap <Leader>tl :CMiniBufExplorer<CR>:TrinityToggleTagList<CR>:TMiniBufExplorer<CR>
"------------------------------------
" Srcexp
"------------------------------------
" [Srcexpl] tagsを利用したソースコード閲覧・移動補助機能
-let g:SrcExpl_UpdateTags = 1 " tagsをsrcexpl起動時に自動で作成(更新)
-let g:SrcExpl_RefreshTime = 0 " 自動表示するまでの時間(0:off)
-let g:SrcExpl_WinHeight = 9 " プレビューウインドウの高さ
-let g:SrcExpl_RefreshMapKey = "<Space>" " 手動表示のMAP
-let g:SrcExpl_GoBackMapKey = "<C-b>" " 戻る機能のMAP
+"let g:SrcExpl_UpdateTags = 1 " tagsをsrcexpl起動時に自動で作成(更新)
+"let g:SrcExpl_RefreshTime = 0 " 自動表示するまでの時間(0:off)
+"let g:SrcExpl_WinHeight = 9 " プレビューウインドウの高さ
+"let g:SrcExpl_RefreshMapKey = "<Space>" " 手動表示のMAP
+"let g:SrcExpl_GoBackMapKey = "<C-b>" " 戻る機能のMAP
" Source Explorerの機能ON/OFF
" nmap <F8> :CMiniBufExplorer<CR>:SrcExplToggle<CR>:TMiniBufExplorer<CR>
@@ -202,260 +202,260 @@ let g:SrcExpl_GoBackMapKey = "<C-b>" " 戻る機能のMAP
"------------------------------------
" カーソル下のURLをブラウザで開く
-nmap <Leader>fu <Plug>(openbrowser-open)
-vmap <Leader>fu <Plug>(openbrowser-open)
+"nmap <Leader>fu <Plug>(openbrowser-open)
+"vmap <Leader>fu <Plug>(openbrowser-open)
" カーソル下のキーワードをググる
-nnoremap <Leader>fs :<C-u>OpenBrowserSearch<Space><C-r><C-w><Enter>
+"nnoremap <Leader>fs :<C-u>OpenBrowserSearch<Space><C-r><C-w><Enter>
"------------------------------------
" operator-camelize.vim
"------------------------------------
" camel-caseへの変換
-map <Leader>u <Plug>(operator-camelize)
-map <Leader>U <Plug>(operator-decamelize)
+"map <Leader>u <Plug>(operator-camelize)
+"map <Leader>U <Plug>(operator-decamelize)
"------------------------------------
" operator-replace.vim
"------------------------------------
" RwなどでYankしてるもので置き換える
-map R <Plug>(operator-replace)
+"map R <Plug>(operator-replace)
"------------------------------------
" sumartword.vim
"------------------------------------
-noremap ,w w
-noremap ,b b
-noremap ,e e
-noremap ,ge ge
-
-map W <Plug>(smartword-w)
-map B <Plug>(smartword-b)
-map E <Plug>(smartword-e)
-map ge <Plug>(smartword-ge)
+"noremap ,w w
+"noremap ,b b
+"noremap ,e e
+"noremap ,ge ge
+"
+"map W <Plug>(smartword-w)
+"map B <Plug>(smartword-b)
+"map E <Plug>(smartword-e)
+"map ge <Plug>(smartword-ge)
"------------------------------------
" camelcasemotion.vim
"------------------------------------
" <Shift-wbe>でCameCaseやsnake_case単位での単語移動
-map <silent> w <Plug>CamelCaseMotion_w
-map <silent> b <Plug>CamelCaseMotion_b
-map <silent> e <Plug>CamelCaseMotion_e
+"map <silent> w <Plug>CamelCaseMotion_w
+"map <silent> b <Plug>CamelCaseMotion_b
+"map <silent> e <Plug>CamelCaseMotion_e
" text-objectで使用できるように
-omap <silent> iw <Plug>CamelCaseMotion_iw
-xmap <silent> iw <Plug>CamelCaseMotion_iw
-omap <silent> ib <Plug>CamelCaseMotion_ib
-xmap <silent> ib <Plug>CamelCaseMotion_ib
-omap <silent> ie <Plug>CamelCaseMotion_ie
-xmap <silent> ie <Plug>CamelCaseMotion_ie
+"omap <silent> iw <Plug>CamelCaseMotion_iw
+"xmap <silent> iw <Plug>CamelCaseMotion_iw
+"omap <silent> ib <Plug>CamelCaseMotion_ib
+"xmap <silent> ib <Plug>CamelCaseMotion_ib
+"omap <silent> ie <Plug>CamelCaseMotion_ie
+"xmap <silent> ie <Plug>CamelCaseMotion_ie
"------------------------------------
" errormarker.vim
"------------------------------------
" disable default shortcut mapping and re-define to <Leader>ec
-let g:errormarker_disablemappings = 1
-nmap <silent> <unique> <Leader>ec :ErrorAtCursor<CR>
+"let g:errormarker_disablemappings = 1
+"nmap <silent> <unique> <Leader>ec :ErrorAtCursor<CR>
"------------------------------------
" vimshell
"------------------------------------
-let g:vimshell_user_prompt = 'fnamemodify(getcwd(), ":~")'
-let g:vimshell_right_prompt = 'vimshell#vcs#info("(%s)-[%b]", "(%s)-[%b|%a]")'
-let g:vimshell_enable_smart_case = 1
-
-if has('win32') || has('win64')
- " Display user name on Windows.
- let g:vimshell_prompt = $USERNAME."% "
-else
- " Display user name on Linux.
- let g:vimshell_prompt = $USER."% "
-
- call vimshell#set_execute_file('bmp,jpg,png,gif', 'gexe eog')
- call vimshell#set_execute_file('mp3,m4a,ogg', 'gexe amarok')
- let g:vimshell_execute_file_list['zip'] = 'zipinfo'
- call vimshell#set_execute_file('tgz,gz', 'gzcat')
- call vimshell#set_execute_file('tbz,bz2', 'bzcat')
-endif
-
-function! g:my_chpwd(args, context)
- call vimshell#execute('echo "chpwd"')
-endfunction
-function! g:my_emptycmd(cmdline, context)
- call vimshell#execute('echo "emptycmd"')
- return a:cmdline
-endfunction
-function! g:my_preprompt(args, context)
- call vimshell#execute('echo "preprompt"')
-endfunction
-function! g:my_preexec(cmdline, context)
- call vimshell#execute('echo "preexec"')
-
- if a:cmdline =~# '^\s*diff\>'
- call vimshell#set_syntax('diff')
- endif
- return a:cmdline
-endfunction
-
-autocmd FileType vimshell
-\ call vimshell#altercmd#define('g', 'git')
-\| call vimshell#altercmd#define('i', 'iexe')
-\| call vimshell#altercmd#define('l', 'll')
-\| call vimshell#altercmd#define('ll', 'ls -l')
-\| call vimshell#hook#set('chpwd', ['g:my_chpwd'])
-\| call vimshell#hook#set('emptycmd', ['g:my_emptycmd'])
-\| call vimshell#hook#set('preprompt', ['g:my_preprompt'])
-\| call vimshell#hook#set('preexec', ['g:my_preexec'])
-
-command! Vs :VimShell
-
-
+"let g:vimshell_user_prompt = 'fnamemodify(getcwd(), ":~")'
+"let g:vimshell_right_prompt = 'vimshell#vcs#info("(%s)-[%b]", "(%s)-[%b|%a]")'
+"let g:vimshell_enable_smart_case = 1
+"
+"if has('win32') || has('win64')
+" " Display user name on Windows.
+" let g:vimshell_prompt = $USERNAME."% "
+"else
+" " Display user name on Linux.
+" let g:vimshell_prompt = $USER."% "
+"
+" call vimshell#set_execute_file('bmp,jpg,png,gif', 'gexe eog')
+" call vimshell#set_execute_file('mp3,m4a,ogg', 'gexe amarok')
+" let g:vimshell_execute_file_list['zip'] = 'zipinfo'
+" call vimshell#set_execute_file('tgz,gz', 'gzcat')
+" call vimshell#set_execute_file('tbz,bz2', 'bzcat')
+"endif
+"
+"function! g:my_chpwd(args, context)
+" call vimshell#execute('echo "chpwd"')
+"endfunction
+"function! g:my_emptycmd(cmdline, context)
+" call vimshell#execute('echo "emptycmd"')
+" return a:cmdline
+"endfunction
+"function! g:my_preprompt(args, context)
+" call vimshell#execute('echo "preprompt"')
+"endfunction
+"function! g:my_preexec(cmdline, context)
+" call vimshell#execute('echo "preexec"')
+"
+" if a:cmdline =~# '^\s*diff\>'
+" call vimshell#set_syntax('diff')
+" endif
+" return a:cmdline
+"endfunction
+"
+"autocmd FileType vimshell
+"\ call vimshell#altercmd#define('g', 'git')
+"\| call vimshell#altercmd#define('i', 'iexe')
+"\| call vimshell#altercmd#define('l', 'll')
+"\| call vimshell#altercmd#define('ll', 'ls -l')
+"\| call vimshell#hook#set('chpwd', ['g:my_chpwd'])
+"\| call vimshell#hook#set('emptycmd', ['g:my_emptycmd'])
+"\| call vimshell#hook#set('preprompt', ['g:my_preprompt'])
+"\| call vimshell#hook#set('preexec', ['g:my_preexec'])
+"
+"command! Vs :VimShell
+"
+"
"------------------------------------
" unite.vim
"------------------------------------
" The prefix key.
-nnoremap [unite] <Nop>
-nmap f [unite]
-
-nnoremap [unite]u :<C-u>Unite -no-split<Space>
-
-" 全部乗せ
-nnoremap <silent> [unite]a :<C-u>UniteWithCurrentDir -no-split -buffer-name=files buffer file_mru bookmark file<CR>
-" ファイル一覧
-nnoremap <silent> [unite]f :<C-u>Unite -no-split -buffer-name=files file<CR>
-" バッファ一覧
-nnoremap <silent> [unite]b :<C-u>Unite -no-split buffer<CR>
-" 常用セット
-nnoremap <silent> [unite]u :<C-u>Unite -no-split buffer file_mru<CR>
-" 最近使用したファイル一覧
-nnoremap <silent> [unite]m :<C-u>Unite -no-split file_mru<CR>
-" 現在のバッファのカレントディレクトリからファイル一覧
-nnoremap <silent> [unite]d :<C-u>UniteWithBufferDir -no-split file<CR>
-
-" nnoremap <silent> [unite]b :<C-u>UniteWithBufferDir -buffer-name=files buffer file_mru bookmark file<CR>
-
-let g:yankring_zap_keys = ""
-" from basyura/unite-rails
-nnoremap <silent> [unite]rm :<C-u>Unite -no-split rails/model<CR>
-nnoremap <silent> [unite]rc :<C-u>Unite -no-split rails/controller<CR>
-nnoremap <silent> [unite]rv :<C-u>Unite -no-split rails/view<CR>
-nnoremap <silent> [unite]rl :<C-u>Unite -no-split rails/lib<CR>
-nnoremap <silent> [unite]rj :<C-u>Unite -no-split rails/javascript<CR>
-nnoremap <silent> [unite]rs :<C-u>Unite -no-split rails/spec<CR>
-
-
-autocmd FileType unite call s:unite_my_settings()
-function! s:unite_my_settings()"{{{
- " Overwrite settings.
-
- " ESCキーを2回押すと終了する
- nmap <buffer> <ESC> <Plug>(unite_exit)
- nmap <buffer> <ESC><ESC> <Plug>(unite_exit)
- imap <buffer> jj <Plug>(unite_insert_leave)
- nnoremap <silent><buffer> <C-k> :<C-u>call unite#mappings#do_action('preview')<CR>
- imap <buffer> <C-w> <Plug>(unite_delete_backward_path)
- " Start insert.
- let g:unite_enable_start_insert = 1
-
- " ウィンドウを分割して開く
- nnoremap <silent> <buffer> <expr> <C-l> unite#do_action('split')
- inoremap <silent> <buffer> <expr> <C-l> unite#do_action('split')
-
- " ウィンドウを縦に分割して開く
- nnoremap <silent> <buffer> <expr> <C-v> unite#do_action('vsplit')
- inoremap <silent> <buffer> <expr> <C-v> unite#do_action('vsplit')
-endfunction"}}}
-
-let g:unite_source_file_mru_limit = 200
-
-" unite-plugins
-cnoremap UH Unite help<Enter>
-cnoremap UO Unite outline<Enter>
+"nnoremap [unite] <Nop>
+"nmap f [unite]
+"
+"nnoremap [unite]u :<C-u>Unite -no-split<Space>
+"
+"" 全部乗せ
+"nnoremap <silent> [unite]a :<C-u>UniteWithCurrentDir -no-split -buffer-name=files buffer file_mru bookmark file<CR>
+"" ファイル一覧
+"nnoremap <silent> [unite]f :<C-u>Unite -no-split -buffer-name=files file<CR>
+"" バッファ一覧
+"nnoremap <silent> [unite]b :<C-u>Unite -no-split buffer<CR>
+"" 常用セット
+"nnoremap <silent> [unite]u :<C-u>Unite -no-split buffer file_mru<CR>
+"" 最近使用したファイル一覧
+"nnoremap <silent> [unite]m :<C-u>Unite -no-split file_mru<CR>
+"" 現在のバッファのカレントディレクトリからファイル一覧
+"nnoremap <silent> [unite]d :<C-u>UniteWithBufferDir -no-split file<CR>
+"
+"" nnoremap <silent> [unite]b :<C-u>UniteWithBufferDir -buffer-name=files buffer file_mru bookmark file<CR>
+"
+"let g:yankring_zap_keys = ""
+"" from basyura/unite-rails
+"nnoremap <silent> [unite]rm :<C-u>Unite -no-split rails/model<CR>
+"nnoremap <silent> [unite]rc :<C-u>Unite -no-split rails/controller<CR>
+"nnoremap <silent> [unite]rv :<C-u>Unite -no-split rails/view<CR>
+"nnoremap <silent> [unite]rl :<C-u>Unite -no-split rails/lib<CR>
+"nnoremap <silent> [unite]rj :<C-u>Unite -no-split rails/javascript<CR>
+"nnoremap <silent> [unite]rs :<C-u>Unite -no-split rails/spec<CR>
+"
+"
+"autocmd FileType unite call s:unite_my_settings()
+"function! s:unite_my_settings()"{{{
+" " Overwrite settings.
+"
+" " ESCキーを2回押すと終了する
+" nmap <buffer> <ESC> <Plug>(unite_exit)
+" nmap <buffer> <ESC><ESC> <Plug>(unite_exit)
+" imap <buffer> jj <Plug>(unite_insert_leave)
+" nnoremap <silent><buffer> <C-k> :<C-u>call unite#mappings#do_action('preview')<CR>
+" imap <buffer> <C-w> <Plug>(unite_delete_backward_path)
+" " Start insert.
+" let g:unite_enable_start_insert = 1
+"
+" " ウィンドウを分割して開く
+" nnoremap <silent> <buffer> <expr> <C-l> unite#do_action('split')
+" inoremap <silent> <buffer> <expr> <C-l> unite#do_action('split')
+"
+" " ウィンドウを縦に分割して開く
+" nnoremap <silent> <buffer> <expr> <C-v> unite#do_action('vsplit')
+" inoremap <silent> <buffer> <expr> <C-v> unite#do_action('vsplit')
+"endfunction"}}}
+"
+"let g:unite_source_file_mru_limit = 200
+"
+"" unite-plugins
+"cnoremap UH Unite help<Enter>
+"cnoremap UO Unite outline<Enter>
"------------------------------------
" quickrun.vim
"------------------------------------
-let g:quickrun_config = {}
-let g:quickrun_config._ = {'runner' : 'vimproc'}
-let g:quickrun_config['rspec/bundle'] = {
- \ 'type': 'rspec/bundle',
- \ 'command': "rspec",
- \ 'cmdopt': "-l %{line('.')}",
- \ 'exec': "bundle exec %c %o %s ",
- \ 'filetype': 'rspec-result'
- \}
-let g:quickrun_config['rspec/normal'] = {
- \ 'type': 'rspec/normal',
- \ 'command': "rspec",
- \ 'cmdopt': "-l %{line('.')}",
- \ 'exec': '%c %o %s',
- \ 'filetype': 'rspec-result'
- \}
-function! RSpecQuickrun()
- let b:quickrun_config = {'type' : 'rspec/bundle'}
-endfunction
-autocmd BufReadPost *_spec.rb call RSpecQuickrun()
+"let g:quickrun_config = {}
+"let g:quickrun_config._ = {'runner' : 'vimproc'}
+"let g:quickrun_config['rspec/bundle'] = {
+" \ 'type': 'rspec/bundle',
+" \ 'command': "rspec",
+" \ 'cmdopt': "-l %{line('.')}",
+" \ 'exec': "bundle exec %c %o %s ",
+" \ 'filetype': 'rspec-result'
+" \}
+"let g:quickrun_config['rspec/normal'] = {
+" \ 'type': 'rspec/normal',
+" \ 'command': "rspec",
+" \ 'cmdopt': "-l %{line('.')}",
+" \ 'exec': '%c %o %s',
+" \ 'filetype': 'rspec-result'
+" \}
+"function! RSpecQuickrun()
+" let b:quickrun_config = {'type' : 'rspec/bundle'}
+"endfunction
+"autocmd BufReadPost *_spec.rb call RSpecQuickrun()
"------------------------------------
" Pydiction
"------------------------------------
-let g:pydiction_location = '~/.vim/bundle/pydiction/complete-dict'
+"let g:pydiction_location = '~/.vim/bundle/pydiction/complete-dict'
"------------------------------------
" Syntastic
"------------------------------------
" エラー行をsignで表示する
-let g:syntastic_enable_signs = 1
+"let g:syntastic_enable_signs = 1
" 可能ならhighligt表示する
-let g:syntastic_enable_highlighting = 1
+"let g:syntastic_enable_highlighting = 1
"------------------------------------
" toggle.vim
"------------------------------------
-imap <C-A> <Plug>ToggleI
-nmap <C-A> <Plug>ToggleN
-vmap <C-A> <Plug>ToggleV
-
-let g:toggle_pairs = { 'and':'or', 'or':'and', 'if':'unless', 'unless':'if', 'yes':'no', 'no':'yes', 'enable':'disable', 'disable':'enable', 'pick':'reword', 'reword':'fixup', 'fixup':'squash', 'squash':'edit', 'edit':'exec', 'exec':'pick' }
-
-
+"imap <C-A> <Plug>ToggleI
+"nmap <C-A> <Plug>ToggleN
+"vmap <C-A> <Plug>ToggleV
+"
+"let g:toggle_pairs = { 'and':'or', 'or':'and', 'if':'unless', 'unless':'if', 'yes':'no', 'no':'yes', 'enable':'disable', 'disable':'enable', 'pick':'reword', 'reword':'fixup', 'fixup':'squash', 'squash':'edit', 'edit':'exec', 'exec':'pick' }
+"
+"
"------------------------------------
" vim-rails.vim
"------------------------------------
-let g:rails_some_option = 1
-let g:rails_level = 4
-let g:rails_syntax = 1
-let g:rails_statusline = 1
-let g:rails_url='http://localhost:3000'
-let g:rails_subversion=0
-" let g:dbext_default_SQLITE_bin = 'mysql2'
-let g:rails_default_file='config/database.yml'
-" let g:rails_ctags_arguments = ''
-function! SetUpRailsSetting()
- nmap <buffer><C-C> <Nop>
- imap <buffer><C-C> <Nop>
- map <buffer><C-_><C-C> <Nop>
-
- nmap <buffer><Space>r :R<CR>
- nmap <buffer><Space>a :A<CR>
- nmap <buffer><Space>m :Rmodel<Space>
- nmap <buffer><Space>c :Rcontroller<Space>
- nmap <buffer><Space>v :Rview<Space>
- nmap <buffer><Space>s :Rspec<Space>
- nmap <buffer><Space>p :Rpreview<CR>
- nmap <buffer><Space>t :Runittest<CR>
- au FileType ruby,eruby,ruby.rspec let g:neocomplcache_dictionary_filetype_lists = {
- \'ruby' : $HOME.'/.vim/dict/rails.dict',
- \'eruby' : $HOME.'/.vim/dict/rails.dict'
- \}
- setl dict+=~/.vim/dict/rails.dict
- setl dict+=~/.vim/dict/ruby.dict
-endfunction
-autocmd User Rails call SetUpRailsSetting()
+"let g:rails_some_option = 1
+"let g:rails_level = 4
+"let g:rails_syntax = 1
+"let g:rails_statusline = 1
+"let g:rails_url='http://localhost:3000'
+"let g:rails_subversion=0
+"" let g:dbext_default_SQLITE_bin = 'mysql2'
+"let g:rails_default_file='config/database.yml'
+"" let g:rails_ctags_arguments = ''
+"function! SetUpRailsSetting()
+" nmap <buffer><C-C> <Nop>
+" imap <buffer><C-C> <Nop>
+" map <buffer><C-_><C-C> <Nop>
+"
+" nmap <buffer><Space>r :R<CR>
+" nmap <buffer><Space>a :A<CR>
+" nmap <buffer><Space>m :Rmodel<Space>
+" nmap <buffer><Space>c :Rcontroller<Space>
+" nmap <buffer><Space>v :Rview<Space>
+" nmap <buffer><Space>s :Rspec<Space>
+" nmap <buffer><Space>p :Rpreview<CR>
+" nmap <buffer><Space>t :Runittest<CR>
+" au FileType ruby,eruby,ruby.rspec let g:neocomplcache_dictionary_filetype_lists = {
+" \'ruby' : $HOME.'/.vim/dict/rails.dict',
+" \'eruby' : $HOME.'/.vim/dict/rails.dict'
+" \}
+" setl dict+=~/.vim/dict/rails.dict
+" setl dict+=~/.vim/dict/ruby.dict
+"endfunction
+"autocmd User Rails call SetUpRailsSetting()
"------------------------------------
" mattn/vim-metarw-redmine
"------------------------------------
-let g:metarw_redmine_server = 'http://redmine.dev.scaleout.jp'
-let g:metarw_redmine_apikey = '2ed945f405865ec799ff91b7bb364215f932c51c'
+"let g:metarw_redmine_server = 'http://redmine.dev.scaleout.jp'
+"let g:metarw_redmine_apikey = '2ed945f405865ec799ff91b7bb364215f932c51c'
View
4 .zshrc
@@ -32,6 +32,10 @@ plugins=(git)
source $ZSH/oh-my-zsh.sh
+
+setopt nolistbeep
+
+# alias
case "${OSTYPE}" in
freebsd*|darwin*)
if [ -f ~/dotfiles/.zshrc.mac ]; then

0 comments on commit cf8d568

Please sign in to comment.