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
"------------------------------------ | |
" プラグインごとの設定 Plugins | |
"------------------------------------ | |
call arpeggio#map('i', '', 0, 'jk', '<Esc>') | |
"------------------------------------ | |
" Align | |
"------------------------------------ | |
" Alignを日本語環境で使用するための設定"{{{ | |
let g:Align_xstrlen = 3 |
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
#!/usr/bin/ruby -w | |
# 挨拶 | |
greetings = ["おはよう", "おはよう", "こんにちは", "こんばんは", "こんばんは", "おはよう", "こんばんは", "おはよう"] | |
# 挨拶の回数を数えるハッシュ | |
count = Hash.new(0) | |
# 回数を数える | |
greetings.each {|greeting| |
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
"---------------------------------------- | |
"補完・履歴 Complete "{{{ | |
set wildmenu " コマンド補完を強化 | |
set wildchar=<tab> " コマンド補完を開始するキー | |
set wildmode=longest:full,full | |
set history=1000 " コマンド・検索パターンの履歴数 | |
set complete+=k,U,kspell,t,d " 補完を充実 | |
set completeopt=menu,menuone,preview | |
set infercase |
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
" keymap"{{{ | |
" Plugin key-mappings. | |
imap <C-F> <Plug>(neocomplcache_snippets_expand) | |
smap <C-F> <Plug>(neocomplcache_snippets_expand) | |
imap <C-U> <Esc>:Unite snippet<CR> | |
inoremap <expr><C-g> neocomplcache#undo_completion() | |
" inoremap <expr><C-L> neocomplcache#complete_common_string() | |
if has('conceal') | |
set conceallevel=2 concealcursor=i |
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
" NeoBundle 'ujihisa/neco-ruby' | |
NeoBundle 'basyura/unite-rails' | |
" NeoBundle 'astashov/vim-ruby-debugger' | |
NeoBundle 'taichouchou2/vim-rails' | |
NeoBundle 'taichouchou2/vim-ref-ri' | |
NeoBundle 'taichouchou2/neco-rubymf' " gem install methodfinder | |
NeoBundle 'romanvbabenko/rails.vim' " Rfactoryメソッドなど追加 | |
NeoBundle 'ruby-matchit' | |
" NeoBundle 'sandeepravi/refactor-rails.vim' " refactor rails | |
NeoBundle 'taq/vim-rspec' |
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
NeoBundle 'basyura/unite-rails' | |
NeoBundle 'romanvbabenko/rails.vim' | |
NeoBundle 'ruby-matchit' | |
NeoBundle 'taichouchou2/neco-rubymf' | |
NeoBundle 'taichouchou2/vim-rails' | |
NeoBundle 'taichouchou2/vim-ref-ri' | |
NeoBundle 'taichouchou2/vim-rsense' | |
NeoBundle 'taq/vim-rspec' | |
NeoBundle 'thinca/vim-ref' | |
NeoBundle 'tpope/vim-endwise.git' |
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
"------------------------------------ | |
" t_comment | |
"------------------------------------ | |
" let g:tcommentMapLeader1 = "<C-_>""{{{ | |
" mappingを消費するので、段々デフォルトになれるべし。 | |
" nmap <Leader>x <C-_><C-_> | |
" nmap <Leader>b <C-_>p | |
" vmap <Leader>x <C-_><C-_> | |
if !exists('g:tcomment_types') |
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
{ | |
" リロード後に戻ってくるアプリ | |
let g:returnApp = "iTerm" | |
nmap <Space>bc :ChromeReloadStart<CR> | |
nmap <Space>bC :ChromeReloadStop<CR> | |
nmap <Space>bf :FirefoxReloadStart<CR> | |
nmap <Space>bF :FirefoxReloadStop<CR> | |
nmap <Space>bs :SafariReloadStart<CR> | |
nmap <Space>bS :SafariReloadStop<CR> | |
nmap <Space>bo :OperaReloadStart<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
"---------------------------------------- | |
" zencoding | |
"---------------------------------------- | |
"{{{ | |
" codaのデフォルトと一緒にする | |
imap <C-E> <C-Y>, | |
let g:user_zen_leader_key = '<C-Y>' | |
" 言語別に対応させる | |
let g:user_zen_settings = { | |
\ 'lang' : 'ja', |
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
" カーソル下のURLをブラウザで開く | |
nmap <Leader>o <Plug>(openbrowser-open) | |
vmap <Leader>o <Plug>(openbrowser-open) | |
" ググる | |
nnoremap <Leader>g :<C-u>OpenBrowserSearch<Space><C-r><C-w><Enter> |
OlderNewer