Skip to content

Instantly share code, notes, and snippets.

@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 / 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.
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
diff --git a/src/edit.c b/src/edit.c
index bd5c57e..4811c06 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -3482,11 +3482,16 @@ ins_compl_new_leader()
spell_bad_len = 0; /* need to redetect bad word */
#endif
/*
- * Matches were cleared, need to search for them now. First display
- * the changed text before the cursor. Set "compl_restarting" to
@Shougo
Shougo / test.c
Created September 6, 2015 03:30
pty test
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
#include <unistd.h>
#include <stddef.h>
#include <dlfcn.h>
#include <ctype.h>
#include <dirent.h>
@Shougo
Shougo / __init__.py
Last active August 29, 2015 14:23
get_buffer_config
#=============================================================================
# FILE: __init__.py
# AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com>
# License: MIT license {{{
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to