Skip to content

Instantly share code, notes, and snippets.

@junegunn
junegunn / vimawesome.vim
Last active May 10, 2023 15:50
Plugin completion using VimAwesome API
View vimawesome.vim
" ----------------------------------------------------------------------------
" 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'
@tarruda
tarruda / autoload_async.vim
Created July 2, 2014 15:38
Implementing support functions neovim asynchronous services
View autoload_async.vim
" create this file at autoload/async.vim
let s:next_completion_id = 1
let s:current_completion_id = 0
function! async#CompletionBegin()
let s:current_completion_id = s:next_completion_id
let s:next_completion_id += 1
@XVilka
XVilka / TrueColour.md
Last active May 17, 2023 18:57
True Colour (16 million colours) support in various terminal applications and terminals
View TrueColour.md

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@mattn
mattn / vim7-if_mruby.diff
Last active December 11, 2015 21:29
mruby interface for vim
View vim7-if_mruby.diff
diff -r ccbde540a714 runtime/doc/eval.txt
--- a/runtime/doc/eval.txt Wed Apr 03 21:14:29 2013 +0200
+++ b/runtime/doc/eval.txt Fri Apr 05 21:20:11 2013 +0900
@@ -6412,6 +6412,7 @@
mouse_urxvt Compiled with support for urxvt mouse.
mouse_xterm Compiled with support for xterm mouse.
mouseshape Compiled with support for 'mouseshape'.
+mruby Compiled with MRuby interface |mruby|.
multi_byte Compiled with support for 'encoding'
multi_byte_encoding 'encoding' is set to a multi-byte encoding.
@Shougo
Shougo / auplugin.vim
Created November 4, 2012 11:52 — forked from chikatoike/auplugin.vim
過去に作った自動ロードプラグイン
View 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)')
@zhaocai
zhaocai / vimshell_rc.vim
Created September 8, 2012 16:36
vim` quick eval current selected lines with vimshell interactive shell
View vimshell_rc.vim
command! -range Ieval :<line1>,<line2>call EvalScriptRegion()
vnoremap <silent> <CR> :Ieval<CR>
function! EvalScriptRegion() range
if has_key(g:vimshell_interactive_interpreter_commands, &ft)
exec a:firstline.','a:lastline.'VimShellSendString'
else
exec a:firstline.','a:lastline.'QuickRun'
endif
@paulmillr
paulmillr / active.md
Last active May 27, 2023 22:03
Most active GitHub users (by contributions). http://twitter.com/paulmillr
View active.md

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Tue, 06 Dec 2016 17:06:46 GMT till Wed, 06 Dec 2017 17:06:46 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter(user =&gt; user.followers &gt; 1000)
View everything.vim
" everything source for unite.vim
" Version: 0.0.1
" Last Change: 01 Dec 2010
" Author: sgur <sgurrr at gmail.com>
" Licence: The 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
@eagletmt
eagletmt / ghc_complete.vim
Created July 25, 2010 03:25
This plugin is currently maintained here: https://github.com/ujihisa/neco-ghc
View ghc_complete.vim
" plugin for neocomplcache <http://github.com/Shougo/neocomplcache>
"
" This plugin requires ghc-mod <http://www.mew.org/~kazu/proj/ghc-mod/>
let s:source = {
\ 'name' : 'ghc_complete',
\ 'kind' : 'ftplugin',
\ 'filetypes': { 'haskell': 1 },
\ }