let b:switch_custom_definitions = [ \ ["describe", "context", "specific", "example"], \ ['before', 'after'], \ ['be_true', 'be_false'], \ ['get', 'post', 'put', 'delete'], \ ['==', 'eql', 'equal'], \ { '.should_not': '.should' }, \ ['.to_not', '.to'], \ { '([^. ]+).should(_not|)': 'expect(\1).to\2' }, \ { 'expect(([^. ]+)).to(_not|)': '\1.should\2' },
This file contains hidden or 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
| function! s:do_rails_autocmd() | |
| if !exists("b:rails_root") | |
| return | |
| endif | |
| let buf = rails#buffer() | |
| let type = "-" . buf.type_name() | |
| let path = '/' . buf.name() | |
| if path =~ '[ !#$%\,]' | |
| let path = '' |
This file contains hidden or 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
| NeoBundleLazy 'Shougo/unite.vim', { | |
| \ 'autoload' : { | |
| \ 'commands' : [ { | |
| \ 'name' : 'Unite', | |
| \ 'complete' : 'customlist,unite#complete_source'}, | |
| \ 'UniteBookmarkAdd', 'UniteClose', 'UniteResume', | |
| \ 'UniteWithBufferDir', 'UniteWithCurrentDir', 'UniteWithCursorWord', | |
| \ 'UniteWithInput', 'UniteWithInputDirectory'] | |
| \ }} |
This file contains hidden or 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
| augroup AlpacaTags | |
| autocmd! | |
| if exists(':Tags') | |
| autocmd BufWritePost Gemfile TagsBundle | |
| autocmd BufEnter * TagsSet | |
| " 毎回保存と同時更新する場合はコメントを外す | |
| " autocmd BufWritePost * TagsUpdate | |
| endif | |
| augroup END |
ヒント
上司A「Array#include?と、マッチ(=~)をうまく使えば結果が分かるかもしれない」
my_domains = {
'www.hitparade.jp/wp/wp-login.php' => 'Nothing',
'www.voxofjoy.com/wp-login.php' => 'Nothing',
}
target_list.each do |line|
This file contains hidden or 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 'Shougo/vimproc', { | |
| \ 'build' : { | |
| \ 'mac' : 'make -f make_mac.mak', | |
| \ 'unix' : 'make -f make_unix.mak', | |
| \ }, | |
| \ } | |
| if has("lua") | |
| NeoBundleLazy 'Shougo/neocomplete', { 'autoload' : { | |
| \ 'insert' : 1, |