Skip to content

Instantly share code, notes, and snippets.

View qickstarter's full-sized avatar

qickstarter qickstarter

View GitHub Profile
"------------------------------------
" プラグインごとの設定 Plugins
"------------------------------------
call arpeggio#map('i', '', 0, 'jk', '<Esc>')
"------------------------------------
" Align
"------------------------------------
" Alignを日本語環境で使用するための設定"{{{
let g:Align_xstrlen = 3
#!/usr/bin/ruby -w
# 挨拶
greetings = ["おはよう", "おはよう", "こんにちは", "こんばんは", "こんばんは", "おはよう", "こんばんは", "おはよう"]
# 挨拶の回数を数えるハッシュ
count = Hash.new(0)
# 回数を数える
greetings.each {|greeting|
"----------------------------------------
"補完・履歴 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
" 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
" 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'
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'
"------------------------------------
" 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')
{
" リロード後に戻ってくるアプリ
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>
"----------------------------------------
" zencoding
"----------------------------------------
"{{{
" codaのデフォルトと一緒にする
imap <C-E> <C-Y>,
let g:user_zen_leader_key = '<C-Y>'
" 言語別に対応させる
let g:user_zen_settings = {
\ 'lang' : 'ja',
" カーソル下の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>