Skip to content

Instantly share code, notes, and snippets.

@Shougo
Shougo / gist:8379060
Last active January 2, 2016 23:49
syntime reportの実行結果(regexpengine=2)
TOTAL COUNT MATCH SLOWEST AVERAGE NAME PATTERN
0.044097 13606 12215 0.000037 0.000003 Foo \%39c
0.043910 13830 12439 0.000028 0.000003 Foo \%38c
0.043722 11054 9638 0.002485 0.000004 Foo \%53c
0.043531 13369 11973 0.000031 0.000003 Foo \%40c
0.043504 12764 11362 0.000038 0.000003 Foo \%44c
0.043411 13990 12597 0.000035 0.000003 Foo \%36c
0.043344 13797 12402 0.000024 0.000003 Foo \%37c
0.043262 12815 11416 0.000032 0.000003 Foo \%43c
0.043257 12945 11535 0.000041 0.000003 Foo \%42c
NeoBundleLock CamelCaseMotion 3ae9bf93cce28ddc1f2776999ad516e153769ea4
NeoBundleLock FastFold d2d82e3b9708563fb1ea5731fcae225875094838
NeoBundleLock FastFold.vim b86afb3de890eb0b349cbc41e414de7607bca40a
NeoBundleLock J6uil.vim b5c21f42c35bbf3b0e521a39d1303c01f52a2203
NeoBundleLock accelerated-jk 156c5158b72059404f6b8aaf15b59f87dd0aaa88
NeoBundleLock autofmt bcdc54d3037134cfb5950083dfeeb77151805127
NeoBundleLock caw.vim 6591ed28caef2d3175298818c5f38ce9ec692416
NeoBundleLock committia.vim f773219d8419a23ec870e7d820af6b14e2544889
NeoBundleLock concealedyank.vim e7e65a395e0e6a266f3a808bc07441aa7d03ebbd
NeoBundleLock context_filetype.vim 180af5faec359926d1259b262b5def9179cdf9ca
@Shougo
Shougo / pum-silent.diff
Last active December 29, 2015 17:19
補完時のメッセージを表示しないオプションを追加するパッチ
diff -r 462a4499f9c6 runtime/doc/options.txt
--- a/runtime/doc/options.txt Fri Nov 29 14:24:42 2013 +0900
+++ b/runtime/doc/options.txt Fri Nov 29 18:07:09 2013 +0900
@@ -6259,6 +6259,9 @@
A don't give the "ATTENTION" message when an existing swap file
is found.
I don't give the intro message when starting Vim |:intro|.
+ c don't give the |ins-completion-menu| message. For example,
+ "-- XXX completion (YYY)", "match 1 of 2", "The only match",
+ "Pattern not found", "Back at original", etc.
@Shougo
Shougo / completed_item.diff
Last active December 29, 2015 12:49
v:completed_item追加パッチ
diff -r 7f08152faea8 runtime/doc/autocmd.txt
--- a/runtime/doc/autocmd.txt Thu Nov 28 12:45:24 2013 +0900
+++ b/runtime/doc/autocmd.txt Fri Nov 29 14:24:59 2013 +0900
@@ -485,6 +485,8 @@
CompleteDone After Insert mode completion is done. Either
when something was completed or abandoning
completion. |ins-completion|
+ The |v:completed_item| variable indicates the
+ completed item.
@Shougo
Shougo / vital.diff
Created September 15, 2013 07:33
vitalの速度改善
diff --git a/autoload/vital/_b268d8d.vim b/autoload/vital/_b268d8d.vim
index 63f7e5a..477d0c1 100644
--- a/autoload/vital/_b268d8d.vim
+++ b/autoload/vital/_b268d8d.vim
@@ -75,7 +75,7 @@ function! s:_import(name, scripts)
" Ignore.
endtry
- let sid = len(a:scripts) + 1 " We expect that the file newly read is +1.
+ let sid = s:_scripts()[path]
@Shougo
Shougo / profile.txt
Created September 14, 2013 07:02
vitalのプロファイリング結果
FUNCTION <SNR>69__is_absolute_path()
Called 10 times
Total time: 0.000066
Self time: 0.000066
count total (s) self (s)
10 0.000046 return a:path[0] ==# '/'
FUNCTION <SNR>69__import()
Called 10 times
@Shougo
Shougo / test.txt
Last active December 18, 2015 07:19
絞り込みチラつき用テストファイル
AeoVneeehogeaaa1
AeoVneeehogeaaa2
AeoVneeehogeaaa3
AeoVneeehogeaaa4
AeoVneeehogeaaa5
AeoVneeehogeaaa6
AeoVneeehogeaaa7
AeoVneeehogeaaa8
AeoVneeehogeaaa9
AeoVneeehogeaaa10
@Shougo
Shougo / popup.patch
Last active December 18, 2015 06:59
diff -r 198cf88374c8 src/edit.c
--- a/src/edit.c Sun Jun 09 20:51:00 2013 +0200
+++ b/src/edit.c Mon Jun 10 13:08:39 2013 +0900
@@ -2890,8 +2890,14 @@
do_cmdline_cmd((char_u *)"if exists('g:loaded_matchparen')|3match none|endif");
#endif
- /* Update the screen before drawing the popup menu over it. */
- update_screen(0);
+ /* Update status line before drawing the popup menu over it.
@Shougo
Shougo / gist:5669269
Created May 29, 2013 10:04
if_luaによる無限ループ
let test_string = 'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh'
let pattern = substitute(test_string, '\w', '\0.*', 'g')
lua << EOF
do
local pattern = vim.eval('pattern')
local word = vim.eval('test_string')
print(string.find(word, pattern, 1))
end
@Shougo
Shougo / i385.diff
Last active December 17, 2015 18:38
第一候補を自動選択しない補完オプションパッチ https://github.com/vim-jp/issues/issues/385
diff -r b792349dc858 runtime/doc/options.txt
--- a/runtime/doc/options.txt Thu May 30 22:44:02 2013 +0200
+++ b/runtime/doc/options.txt Fri May 31 15:52:21 2013 +0900
@@ -1785,6 +1785,14 @@
completion in the preview window. Only works in
combination with "menu" or "menuone".
+ noinsert Do not insert any text for a match until the user selects
+ a match from the menu. Only works in combination with "menu"
+ or "menuone". No effect if "longest" is present.