Skip to content

Instantly share code, notes, and snippets.

View supermomonga's full-sized avatar
🏠
Working from home

supermomonga supermomonga

🏠
Working from home
View GitHub Profile
function! SelectInteractive(question, candidates) " {{{
try
let a:candidates[0] = toupper(a:candidates[0])
let l:select = 0
while index(a:candidates, l:select, 0, 1) == -1
let l:select = input(a:question . ' [' . join(a:candidates, '/') . '] ')
if l:select == ''
let l:select = a:candidates[0]
endif
endwhile
if s:bundle_tap('vim-automatic') " {{{
call s:bundle_config({})
function! s:tapped_bundle.hooks.on_source(bundle)
endfunction
nnoremap <silent> <Plug>(quit) :<C-u>q<CR>
function! s:my_temporary_window_init(config, context)
nmap <buffer> <C-[> <Plug>(quit)
let s:momonga = {"super": "momonga"}
function! s:momonga.bar()
echo self["super"]
endfunction
function! s:momonga.new()
return deepcopy(self)
endfunction
call s:momonga.new().bar()
#!/bin/bash
cd "$( dirname "$0" )"
java -Xmx1024M -jar craftbukkit.jar -o true
nnoremap <silent> <Plug>(quit) :<C-u>q<CR>
function! s:my_temporary_window_init(config, context)
nmap <buffer> <C-[> <Plug>(quit)
" echo a:config
" echo a:context
endfunction
let g:automatic_enable_autocmd_Futures = {
\ 'BufWinEnterFuture' : 1
\ }
let g:automatic_default_match_config = {
\ 'is_open_other_window' : 1,
\ 'set_once_in_window' : 1
\ }
let g:automatic_default_set_config = {
\ 'height' : '50%',
\ 'move' : 'bottom',
\ 'apply' : function('s:my_temporary_window_init')
\ }
let g:automatic_config = [
" Kanari Sugoi .vimrc
" Rules {{{
" Mapping {{{
"
" * Emacs-like mapping
" - If the command is not countable and motionable,
" that command should be mapped with Emacs-like binding
\ {
\ 'match' : {
\ 'autocmds' : [ 'CmdwinEnter' ]
\ },
\ 'set' : {
\ 'height' : 5,
\ 'is_close_focus_out' : 1,
\ 'unsettings' : [ 'move', 'height', 'width' ]
\ },
\ }
" Kanari Sugoi .vimrc
" Rules {{{
" Mapping {{{
"
" * Emacs-like mapping
" - If the command is not countable and motionable,
" that command should be mapped with Emacs-like binding
require 'java'
require 'jrubyfx'
class HelloJRubyFX < JRubyFX::Application
def start(stage)
with(stage, width: 800, height: 600, title: 'Hello JRubyFX') do
layout_scene do
web_view do |v|
v.engine.load "http://google.com/"
end