Skip to content

Instantly share code, notes, and snippets.

@thinca
thinca / vimrc
Created September 7, 2012 13:33
thinca's vimrc for reading-vimrc #10 (2012/09/08)
" == Naming convention. == {{{1
" Command name
" - CamelCase
" Global function name
" - CamelCase
" Local function name
" - s:split_by_underbar
" Group name for autocmd
" - split-by-dash
" In vimrc, start with "vimrc"
" == Naming convention. == {{{1
" Command name
" - CamelCase
" Global function name
" - CamelCase
" Local function name
" - s:split_by_underbar
" Group name for autocmd
" - split-by-dash
" In vimrc, start with "vimrc"
@ZyX-I
ZyX-I / RFC.rst
Last active December 17, 2015 05:58

New python objects

vim.mappings/{buffer}.mappings:
Mapping-like object mapping mode constants to vim.modemappings objects below. Unlike vim.buffers iteration is being done for keys. Mode constants are described below in vim.current.mode object description, but for convenience additional constants are defined:
@devlights
devlights / ZipFileSamples04.cs
Created June 5, 2013 02:57
System.IO.Compression.ZipFileクラスにて、日本語のディレクトリ名やファイル名を文字化けさせずに圧縮処理
namespace Sazare.Samples
{
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text;
using Sazare.Common;
@SunboX
SunboX / inlineworker.js
Created June 24, 2013 12:21
Create web workers without a separate worker JS files. Source: http://jsbin.com/owogib/8/
function worker() {
setInterval(function() {
postMessage({foo: "bar"});
}, 1000);
}
var code = worker.toString();
code = code.substring(code.indexOf("{")+1, code.lastIndexOf("}"));
var blob = new Blob([code], {type: "application/javascript"});
@ujihisa
ujihisa / vac230.md
Last active January 9, 2018 02:55
Vim Advent Calendar 2012 http://atnd.org/events/33746

Vim Advent Calendar 2012 ujihisa 15 (230日目)

Vim Advent Calendar 2012 の230日目の記事です。昨日の記事は@manga_osyoさんで、明日の記事はvital.vimコミッタの@rbtnnさんです。

今回は意表をついてVim scriptの入門記事です。

Vim script入門!

Vim script初級者レベルを10段階に分割すると、そのうち簡単な方から3つは、以下のようになります。

@kumar8600
kumar8600 / lingr-api-memo.md
Last active October 27, 2015 04:59
Lingr API メモ

ここでは、Lingr Bot APIについての情報を取り扱わず、Lingr APIについてのみ扱う。

参照

@ynkdir
ynkdir / cc500.vim
Created December 1, 2014 15:53
cc500.vim
" This is a port of CC500
" http://homepage.ntlworld.com/edmund.grimley-evans/cc500/
"
"-------------------------------------------------------------------------------
" ORIGINAL HEADER
"-------------------------------------------------------------------------------
" Copyright (C) 2006 Edmund GRIMLEY EVANS <edmundo@rano.org>
"
" This program is free software; you can redistribute it and/or modify
" it under the terms of the GNU General Public License as published by
46 : Shougo/unite.vim
42 : Shougo/vimproc
40 : thinca/vim-quickrun
38 : tpope/vim-fugitive
33 : thinca/vim-ref
32 : mattn/webapi-vim
31 : tpope/vim-surround
29 : Shougo/neocomplcache
27 : tyru/open-browser.vim
26 : Shougo/vimshell
@h-east
h-east / vim_cmds.txt
Last active November 30, 2015 14:03
The number of Vim ex-command is 520. (Auto extracted from ex_cmds.h)
a[ppend]
ab[breviate]
abc[lear]
abo[veleft]
al[l]
am[enu]
an[oremenu]
ar[gs]
arga[dd]
argd[elete]