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
if (has('win32') || has('win64')) | |
"use scp | |
let g:netrw_scp_cmd = "E:\\PuTTY\\pscp.exe -q -batch" | |
let g:netrw_sftp_cmd = "E:\\PuTTY\\psftp.exe" | |
let g:netrw_ssh_cmd = "E:\\PuTTY\\plink.exe" | |
endif |
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
func! FuncJHelpgrep(strg, type) | |
if ( &enc != "utf-8" ) | |
if ( !has('iconv') ) | |
echohl ErrorMsg | echomsg 'Not support iconv' | echohl None | |
return | |
endif | |
if ( a:type == 0 ) | |
let scmd = "helpgrep " | |
else | |
let scmd = "lhelpgrep " |
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
"Octopress 新記事作成 | |
" | |
"使用するグローバル変数 | |
" g:octopress_rootdir octopressルートディレクトリ | |
" g:octopress_article_ext 記事の拡張子 | |
" g:octopress_article_subdir 記事のサブフォルダ。strftime()のパラメータ(%Y等) | |
" 使用可能 | |
" | |
" 2012/01/06 新規作成 | |
" 2012/01/12 category,keywordに初期値を入れた |
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
" ------------------------------------------------------- | |
" author :nukino | |
" version :000 | |
" license :BSD | |
" 変更履歴 | |
" 12/01/13 新規作成 | |
" ------------------------------------------------------- | |
" %Y,%m,%dなどstrftime()の書式指定子を指定可能 | |
" $f: ファイル名 | |
" $d: ユーザー定義description |
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
func! s:paste_gist_tag() | |
let mx = 'http[s]\?://gist.github.com/\([0-9]\+\)' | |
" +または"レジスタの中身を検索する | |
let regs = [@+,@"] | |
for r in regs | |
let mlist = matchlist(r, mx) | |
if ( len(mlist) > 2 ) | |
"カーソル行に挿入 | |
exe "normal! O{% gist " . mlist[1] . " %}" | |
return |
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
func! s:test_func1() | |
let i = 0 | |
while ( i < 500000 ) | |
let dummy = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30] | |
let i += 1 | |
endwhile | |
endfunc | |
func! s:test_func2() | |
let i = 0 |
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
func! s:test_func1() | |
let i = 0 | |
while ( i < 3000000 ) | |
let dummy0 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
let dummy1 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
let dummy2 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
let dummy3 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
let dummy4 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
let dummy5 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
let dummy6 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" |
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
" vim:fdm=marker | |
let g:test_flg = 0 | |
let g:using_val = 0 | |
let s:using_val = 0 | |
"global宣言{{{1 | |
if ( g:test_flg == 1 ) | |
let g:dummy_val1 = 0 | |
let g:dummy_val2 = 0 |
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:loop_cnt = 2000000 | |
func! s:test_func1() | |
let target_str = '@octopress\source' | |
let str = '\\machine\Dropbox\octopress' | |
let i = 0 | |
let ie = g:loop_cnt | |
while ( i < ie ) | |
let ret_str = substitute(target_str,'@octopress', str, '') | |
let i += 1 |
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
func! s:fact1(val) | |
if ( a:val == 1 ) | |
return 1 | |
else | |
return a:val * s:fact1(a:val-1) | |
endif | |
endfunc | |
func! s:fact2(val) | |
let i = a:val - 1 |
OlderNewer