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
| use strict; | |
| use warnings; | |
| use Encode; | |
| use constant MAX_WIDTH => 90; | |
| use constant TAB_WIDTH => 4; | |
| # ディレクトリ走査 | |
| sub traverse { | |
| my $dir = shift; |
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
| command -nargs=1 CppCreateClass call s:cpp_create_class(<q-args>) | |
| function! s:cpp_create_class(class_name) | |
| if a:class_name !~ '^\a\w*$' | |
| echom printf('[error] invalid parameter(%s)', a:class_name) | |
| return | |
| endif | |
| let class_name = substitute(a:class_name, '^.', '\u&', '') | |
| let file_name = substitute(a:class_name, '^.\+$', '\L&\E', '') |
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
| if exists ("b:current_syntax") | |
| finish | |
| endif | |
| syntax match duzzleField / / contained | |
| syntax region DuzzleMap start=/\%^/ end=/^\ze\[.*\]/ contains=duzzleField | |
| highlight duzzleFieldHi guibg=lightcyan ctermbg=lightcyan |
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 '2072/PHP-Indenting-for-VIm' | |
| NeoBundle '29decibel/codeschool-vim-theme' | |
| NeoBundle '5long/pytest-vim-compiler' | |
| NeoBundle '5t111111/alt-gtags.vim' | |
| NeoBundle '5t111111/markdown-preview.vim' | |
| NeoBundle '5t111111/neat-json.vim' | |
| NeoBundle 'Align' | |
| NeoBundle 'AndrewRadev/inline_edit.vim' | |
| NeoBundle 'AndrewRadev/multichange.vim' | |
| NeoBundle 'AndrewRadev/splitjoin.vim' |
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
| package main | |
| import ( | |
| "fmt" | |
| "github.com/PuerkitoBio/goquery" | |
| "os" | |
| "strconv" | |
| ) | |
| const topURL = "http://www.vim.org/scripts/" |
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
| " 120幅で改行する | |
| set textwidth=120 | |
| " 自動で改行する | |
| set formatoptions+=t | |
| " 挿入時、'textwidth'より短くても改行する | |
| set formatoptions-=l | |
| " 'textwidth'より短ければ、挿入時以降の空白でなくても改行する | |
| set formatoptions-=v | |
| " gqコマンドを使えば、既存のコードも自動で改行する |
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 'tyru/open-browser' | |
| NeoBundle 'kana/vim-operator-user' | |
| call operator#user#define('open-neobundlepath', 'OpenNeoBundlePath') | |
| map gz <Plug>(operator-open-neobundlepath) | |
| function! OpenNeoBundlePath(motion_wise) | |
| if line("'[") != line("']") | |
| return | |
| endif | |
| let start = col("'[") - 1 |
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 'tyru/open-browser' | |
| nnoremap gz vi':<C-u>call ExecuteWithSelectedText('OpenBrowser https://github.com/%s')<CR> | |
| vnoremap gz :<C-u>call ExecuteWithSelectedText('OpenBrowser https://github.com/%s')<CR> | |
| " visualモードで最後に選択したテキストを%sで指定してコマンドを実行する {{{ | |
| function! ExecuteWithSelectedText(command) | |
| if a:command !~? '%s' | |
| return | |
| endif |
NewerOlder