Skip to content

Instantly share code, notes, and snippets.

@osyo-manga
osyo-manga / gist:10577789
Last active August 29, 2015 13:59
VAC2011
|001|12/01(木)|@manga_osyo|"Vim の開発環境":http://d.hatena.ne.jp/osyo-manga/20111201/1322665228|
|002|12/02(金)|@mattn_jp|"モテる男のVim Script短期集中講座":http://mattn.kaoriya.net/software/vim/20111202085236.htm|
|003|12/03(土)|@ShougoMatsu|"Vimと過ごすイチャラブクリスマス ~そして伝説へ~":http://vinarian.blogspot.com/2011/12/vim.html|
|004|12/04(日)|@thinca|"'tabline' を活用しよう":http://d.hatena.ne.jp/thinca/20111204/1322932585|
|005|12/05(月)|@h1mesuke|"word の中の単語を選択する textobj-wiw を書いた":http://d.hatena.ne.jp/h1mesuke/20111205/p1|
|006|12/06(火)|@hell2u|"たった一行で人生が変わった.vimrcでの設定とその意味":http://hail2u.net/blog/software/only-one-line-life-changing-vimrc-setting.html|
|007|12/07(水)|@aizen76|"Modern Vim Life!":http://d.hatena.ne.jp/alwei/20111206/1323187998|
|008|12/08(木)|@__papix__|"初心者がオススメする初心者でも安心なVimプラグイン集":http://papix.hateblo.jp/entry/2011/12/08/130431|
|009|12/09(金)|@kaoriya|"nyancat.vimの裏話":http://www.kaoriya.net/blog/201112/20111209|
|010|12/10(土)|@choplin|"VimとKinesisの話":http://choplin.hatenablog.com/entry/2011/12/10/222645|
#include <iostream>
#include <initializer_list>
#include <thread>
int
main(){
auto data = {"homu", "mami", "mado", "saya", "an"};
while( true ){
for(auto&& name : data){
std::cout << name << std::endl;
@osyo-manga
osyo-manga / main.vim
Created July 11, 2014 14:02
vital-over
call vital#of("vital").unload()
let s:V= vital#of("vital")
let s:cmdline = s:V.import("Over.Commandline")
let s:my = s:cmdline.make_standard("Description: ")
let s:result = s:my.get()
if s:my.exit_code()
echo "Not found"
else
{
'comments': 0,
'comments_url': 'https://api.github.com/gists/69e745b30473decb4968/comments',
'commits_url': 'https://api.github.com/gists/69e745b30473decb4968/commits',
'created_at': '2014-07-11T14:02:20Z',
'description': 'vital-over',
'files': {
'main.vim': {
'content':
'call vital#of("vital").unload()^@^@let s:V= vital#of("vital")^@let s:cmdline = s:V.import("Over.Commandline")^@^@let s:my = s:cmdline.make_standard("Description: ")^@let s:result = s:my.get()^@if s:my.exit_code()^@^Iecho "Not found"^@else^@^Iecho "result: ". s:result^@endif^@',
homu
homu
homu
homu
homu
@osyo-manga
osyo-manga / unite_test.vim
Created July 21, 2014 09:26
untie-command/new
let s:source = {
\ "name" : "command/new",
\}
function! s:source.change_candidates(args, context)
let word = a:context.input
if word == ""
let word = "[new command]"
endif
return [{
let s:Reunions = vital#of("vital").import("Reunions")
command! Run call s:run()
function! s:run()
let file = bufname("%")
if !filereadable(file)
echo "Not file readable."
return
endif
//
// 次の手順を試してみてください
//
// :MarchingBufferClearCache
// let g:marching_debug = 1
// 下に書かれている位置でオムニ補完(<C-x><C-o>)を入力
// :MarchingDebugLog
//
struct X{
int value;
function! s:help()
let old = &l:iskeyword
let bufnr = bufnr("%")
try
setlocal iskeyword+=(
normal! K
finally
call setbufvar(bufnr, "&iskeyword", old)
endtry
endfunction
@osyo-manga
osyo-manga / main.vim
Created August 2, 2014 06:05
neocomplete
let s:source = {
\ "name" : "test",
\ "filetypes" : { "test" : 1 },
\}
function! s:source.gather_candidates(...)
return map(["homu", "mami", "mado"], '{ "word" : v:val }')
endfunction
call neocomplete#define_source(s:source)