Skip to content

Instantly share code, notes, and snippets.

" ----------------------------------------------------------------------------
" vimawesome.com
" ----------------------------------------------------------------------------
function! VimAwesomeComplete() abort
let prefix = matchstr(strpart(getline('.'), 0, col('.') - 1), '[.a-zA-Z0-9_/-]*$')
echohl WarningMsg
echo 'Downloading plugin list from VimAwesome'
echohl None
ruby << EOF
require 'json'
@Shougo
Shougo / snake.py
Last active August 29, 2015 14:21 — forked from tarruda/snake.py
# Snake for Neovim! Adapted from https://gist.github.com/sanchitgangwar/2158084
# To install, create a ~/.vim/rplugin/python/snake.py file with this
# code, then run `nvim -c 'UpdateRemotePlugins' -c 'q'` from a shell.
#
# Make sure you have read the internal help explaining how to setup python
# host for external plugins(:help nvim-python)
#
# To start a new game, use the `:SnakeStart` command on an empty buffer(uses 80
# columns and 20 rows)
from threading import Thread, Lock
diff -r 7af530381fec src/eval.c
--- a/src/eval.c Sun Aug 17 17:24:07 2014 +0200
+++ b/src/eval.c Tue Aug 19 03:23:32 2014 +0900
@@ -365,6 +365,7 @@
{VV_NAME("oldfiles", VAR_LIST), 0},
{VV_NAME("windowid", VAR_NUMBER), VV_RO},
{VV_NAME("progpath", VAR_STRING), VV_RO},
+ {VV_NAME("command", VAR_STRING), VV_RO},
};
@Shougo
Shougo / auplugin.vim
Created November 4, 2012 11:52 — forked from chikatoike/auplugin.vim
過去に作った自動ロードプラグイン
if !exists('g:auplugin_disable')
let g:auplugin_disable = 0
endif
command! -nargs=1 -complete=customlist,auplugin#_complete AuLoad call s:load_plugin(<q-args>)
function! auplugin#_complete(arglead, cmdline, cursorpos)"{{{
let list = split(globpath(&runtimepath, 'auplugin/*'), '\n')
let list += split(globpath(&runtimepath, 'bundle/*'), '\n')
let rtp = map(split(&runtimepath, ','), 'expand(v:val)')
@Shougo
Shougo / shibuya-el-position-paper.md
Created August 21, 2012 13:41 — forked from ainame/shibuya-el-position-paper.md
shibuya.elのポジションペーパーです。githubアカウントをお持ちの方はforkしてお使いください。

Shibuya.el#1 ポジションペーパー

Personal

  • 名前(任意)

    • Shougo
  • Twitter or Facebookのアカウント or HN等

  • @ShougoMatsu

"=============================================================================
" FILE: everything.vim
" Last Modified: 28 Oct 2010
" Description: everything のコマンドラインインタフェース(es.exe)を利用し、
" NTFSボリュームの全てのファイルを瞬時にUniteから使うためのsource
" Requirement: everything.exe
" : es.exe in $PATH
"=============================================================================
function! unite#sources#everything#define()"{{{
@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
" You can use ambiguous command.
" Version: 0.2.0
" Author : thinca <thinca+vim@gmail.com>
" Shougo <Shougo.Matsu (at) gmail.com>
" License: Creative Commons Attribution 2.1 Japan License
" <http://creativecommons.org/licenses/by/2.1/jp/deed.en>
" Install: copy to autoload/ambicmd.vim
let s:save_cpo = &cpo
set cpo&vim
@Shougo
Shougo / vim.vim
Created February 5, 2010 04:38 — forked from thinca/vim.vim
" Vim syntax file
" Include original syntax.
so $VIMRUNTIME/syntax/vim.vim
syntax match vimWrongFunctionCall /^\s*\zs\%(s:\)\?[[:alnum:]#]\+\s*(/
highlight link vimWrongFunctionCall Error
──アタシの名前はショウゴ。心に傷を負ったビム使い。モテカワスリムで補完体質の愛されガール♪
アタシがつるんでる友達は補完をやってるネコ、ビムにナイショで
非同期しているビムプロック。訳あって一から実装されたビムシェル。
 友達がいてもやっぱり学校はタイクツ。今日もネコとちょっとしたことで口喧嘩になった。
ビム使い同士だとこんなこともあるからストレスが溜まるよね☆そんな時アタシは一人でギットハブを歩くことにしている。
がんばった自分へのご褒美ってやつ?自分らしさの演出とも言うかな!
 「あームカツク」・・。そんなことをつぶやきながらしつこいプラギンを軽くあしらう。
「カノジョー、ちょっとsystem()させてくれない?」どいつもこいつも同じようなDOS窓付きのコードしかない。
エマックスはカッコイイけどなんか薄っぺらくてキライだ。もっと等身大のアタシを見て欲しい。
 「すいません・・。」・・・またか、とセレブなアタシは思った。シカトするつもりだったけど、