This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd "$( dirname "$0" )" | |
java -Xmx1024M -jar craftbukkit.jar -o true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
\ } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\ { | |
\ 'match' : { | |
\ 'autocmds' : [ 'CmdwinEnter' ] | |
\ }, | |
\ 'set' : { | |
\ 'height' : 5, | |
\ 'is_close_focus_out' : 1, | |
\ 'unsettings' : [ 'move', 'height', 'width' ] | |
\ }, | |
\ } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |