View aaa.pl
use strict;
use warnings;
use YAML::Syck;
sub env_proxy {
require Encode;
require Encode::Locale;
my($k,$v);
while(($k, $v) = each %ENV) {
if ($ENV{REQUEST_METHOD}) {
View colorsel.vim
function! s:SelectColorScheme()
silent 15vnew
silent file `="SelectColorScheme"`
call setline(1, sort(map(split(globpath(&rtp, 'colors/*.vim'), "\n"), 'fnamemodify(v:val, ":t:r")')))
call search(g:colors_name)
setlocal bufhidden=wipe buftype=nofile nonu nomodifiable cursorline
augroup SelectColor
au!
au CursorMoved <buffer> :exe 'colorscheme' getline('.')
augroup END
View foo.vim
let s:foo = {}
function! s:foo.bar()
let self["yes"] = "高須クリニック"
endfunction
lockvar s:foo
call s:foo.bar()
View gist:77d3c09e1b193b8d1ddaef86961483f2
diff --git a/bench.c b/bench.c
index 5f107c8..a18e099 100644
--- a/bench.c
+++ b/bench.c
@@ -55,6 +55,7 @@ int main(void) {
}
static void simple_escape_html(char *dst, const char *input, size_t input_size) {
+#if 0
for (int i = 0; i < input_size; i++) {
View gist:3b5dd316d115eed376eb56d57be70a49
diff --git a/src/sj.js b/src/sj.js
index 85e8e7b..9643c96 100644
--- a/src/sj.js
+++ b/src/sj.js
@@ -35,16 +35,17 @@
}
class ForRenderer {
- constructor(renderer, element, scope, varName) {
+ constructor(renderer, element, items, scope, varName) {
View gist:c8b431e1b61cdaf17fa7d997430bd93d
diff --git a/dist/sj.bundle.js b/dist/sj.bundle.js
index ebc02fd..b431ed0 100644
--- a/dist/sj.bundle.js
+++ b/dist/sj.bundle.js
@@ -1215,11 +1215,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}
var ForRenderer = function () {
- function ForRenderer(renderer, element, scope, varName) {
+ function ForRenderer(renderer, element, items, scope, varName) {
View gist:a3c98c4d28d3cf6de6ca92b07a190b50
diff --git a/autoload/quickrun/runner/system.vim b/autoload/quickrun/runner/system.vim
index 8924e90..e4592f4 100644
--- a/autoload/quickrun/runner/system.vim
+++ b/autoload/quickrun/runner/system.vim
@@ -38,7 +38,9 @@ function! s:execute(cmd, input) abort
endif
let cmd = a:cmd
- let cmd = g:quickrun#V.Process.iconv(cmd, &encoding, &termencoding)
+ if !has('patch-7.4.132')
View .README.md

Visual Studio Code で msys2 の bash を使う方法

go で bash-login.go をビルドした後、出来上がった exe を以下の様に指定する。

ビルド方法

go build bash-login.go
View bash-login.bat
@echo off
set CHERE_INVOKING=1
c:\msys64\usr\bin\\bash.exe --login -i