Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

あ、ありのまま今起こった事を話すぜ! 「おれはNeoVimのDECSLRM利用判定の修正をやっていたと思ったら、いつのまにかVimのDECSLRM利用自動判定を書いていた」
Oh, I will tell you what happened just as it is! "When I thought that I was working on fixing NeoVim's decision to use DECSLRM, I was writing Vim's automatic DECSLRM usage decision unexpectedly"
だってNeoVimってTERMRESPONSE関連が排除さてたのか、端末の応答を利用するような参考になるコードがないんだよ。Vimは背景色の自動判別とかの参考に出来るコードがあるから、マネすればいいんだもん。だよもん。
Because NeoVim was excluding the TERMRESPONSE association, there is no reference code to use the terminal's response. Vim has code that can be referred to as automatic discrimination of the background color, so you can do it manually. All right.
NeoVimってVimでいう所のTERMRESPONSEみたいな事ってやってないんだ
@Shougo
Shougo / .vimrc
Created April 17, 2010 00:09 — forked from tyru/.vimrc
" Capture {{{
command!
\ -nargs=+ -bang
\ -complete=command
\ Capture
\ call s:cmd_capture([<f-args>], <bang>0)
function! C(cmd)
redir => result
silent execute a:cmd
@Shougo
Shougo / VimConf 2016 for me
Created November 7, 2016 20:16
VimConf 2016 slide
「参加レポートを書くまでが VimConf」らしいので、VimConf 2016 の感想記事をここに書いておきます。
今回は去年と同じくプラグインを開発しつつ、それについての発表もするということでかなりきつかったです。
何しろ、denite.nvim の開発が本格化したのは 8 月になってからでしたから、それから
unite.vim に匹敵する機能を追加するというのは正直いって無茶でした。
開発をすればするほど足りない機能が見つかりますし。
とはいえ VimConf に間に合わせるために頑張ったので、十分使えるレベルにはなったのではないでしょうか。
私は既にほぼ完全に denite.nvim に移行しています。
皆さんもぜひ試してみてください。
nmap <silent>sa <Plug>(operator-surround-append)a
nmap <silent>sd <Plug>(operator-surround-delete)a
nmap <silent>sr <Plug>(operator-surround-replace)a
nmap <silent>sc <Plug>(operator-surround-replace)a
@Shougo
Shougo / Emacs2016.md
Created April 24, 2016 01:44
anything.el/helm.el と unite.vim を比較してみた

anything.el/helm.el と unite.vim を比較してみた

  • anything.el や helm.el の話をします

  • Vim における anything.el 的存在である unite.vim の話をします

  • Emacs 全然分からないので、間違っているところがあったら突っ込み歓迎

  • さらにオマケもあるよ

let s:plugins = range(1, 10000)
let temp = tempname()
call writefile([string(s:plugins)], temp)
let file = readfile(temp)[0]
let start = reltime()
for i in range(1, 100)
sandbox let plugins1 = eval(file)
endfor
echomsg reltimestr(reltime(start))
@Shougo
Shougo / GVim startup time
Last active February 27, 2016 10:59
dark powered startuptime using dein.vim
times in msec
clock self+sourced self: sourced script
clock elapsed: other lines
000.004 000.004: --- VIM STARTING ---
000.091 000.087: Allocated generic buffers
000.176 000.085: locale set
000.189 000.013: GUI prepared
000.193 000.004: clipboard setup
000.197 000.004: window checked
@Shougo
Shougo / gist:3d2adcb83e9eb0e8d4af
Created November 13, 2014 22:35
neobundle の toml 記法サンプル
[[plugins]]
repository = 'kana/vim-niceblock'
mappings = '<Plug>'
[[plugins]]
repository = 'Shougo/echodoc.vim'
insert = 1
[[plugins]]
repository = 'Shougo/neosnippet.vim'
@Shougo
Shougo / vim-pi.json
Created January 9, 2016 15:52
vim-pi metadata JSON file
This file has been truncated, but you can view the full file.
{'VIP': {'version': '1.2.0', 'url': 'http://www.vim.org/scripts/download_script.php?src_id=14484', 'vim_script_nr': 3335, 'type': 'archive', 'script-type': 'utility', 'archive_name': 'vip.zip'}, 'charged-256': {'version': '1.0', 'url': 'http://www.vim.org/scripts/download_script.php?src_id=9784', 'vim_script_nr': 2513, 'type': 'archive', 'script-type': 'color scheme', 'archive_name': 'charged-256.vim'}, 'Note_Maker': {'version': '1.0', 'url': 'http://www.vim.org/scripts/download_script.php?src_id=9285', 'vim_script_nr': 2382, 'type': 'archive', 'script-type': 'syntax', 'archive_name': 'noteMaker.tar.gz'}, 'movealong': {'url': 'git://github.com/toupeira/vim-movealong', 'vim_script_nr': '4691', 'type': 'git'}, 'hier': {'url': 'git://github.com/jceb/vim-hier', 'vim_script_nr': '3564', 'type': 'git'}, 'UpdateModDate': {'version': '1.2', 'url': 'http://www.vim.org/scripts/download_script.php?src_id=3613', 'vim_script_nr': 1124, 'type': 'archive', 'script-type': 'utility', 'archive_name': 'UpdateModDate.vim'}, 'ign
@Shougo
Shougo / gist:8380533
Created January 12, 2014 03:46
syntime reportの結果(regexpengine=1)
TOTAL COUNT MATCH SLOWEST AVERAGE NAME PATTERN
0.027773 3515 1917 0.000300 0.000008 vimFunc \%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_]\+\.\)*\I[a-zA-Z0-9_.]*\)
0.027739 14967 13440 0.000067 0.000002 Foo \%39c
0.027500 15029 13490 0.000021 0.000002 Foo \%38c
0.027485 15382 13852 0.000059 0.000002 Foo \%36c
0.027470 15505 13976 0.000018 0.000002 Foo \%35c
0.027404 15082 13541 0.000017 0.000002 Foo \%37c
0.027237 14602 13067 0.000023 0.000002 Foo \%40c
0.027052 15528 13995 0.000014 0.000002 Foo \%34c
0.026670 15456 13917 0.000020 0.000002 Foo \%33c