Skip to content

Instantly share code, notes, and snippets.

osyo-manga osyo-manga

Block or report user

Report or block osyo-manga

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View vim_version
$ vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jan 22 2018 13:38:04)
適用済パッチ: 1-1428
Compiled by worker@worker-desktop
Huge 版 with GTK2 GUI. 機能の一覧 有効(+)/無効(-)
+acl +farsi +mouse_sgr -tag_any_white
+arabic +file_in_path -mouse_sysmouse -tcl
+autocmd +find_in_path +mouse_urxvt +termguicolors
-autoservername +float +mouse_xterm +terminal
+balloon_eval +folding +multi_byte +terminfo
View .test_vimrc
" vim 8.0 1295
" $ vim -u .test_vimrc
" .test_vimrc
filetype plugin indent on
set filetype=tex
startinsert
call feedkeys("\\begin{itemize}\<CR>")
View terminal.vim
" vital-palette-keymapping
function! s:escape_special_key(key)
" Workaround : <C-?> https://github.com/osyo-manga/vital-palette/issues/5
if a:key ==# "<^?>"
return "\<C-?>"
endif
execute 'let result = "' . substitute(escape(a:key, '\"'), '\(<.\{-}>\)', '\\\1', 'g') . '"'
return result
endfunction
View lexima_vimrc.vim
call lexima#clear_rules()
function! s:as_list(a)
return type(a:a) == type([]) ? a:a : [a:a]
endfunction
function! s:add_ignore_rule(rule)
let rule = copy(a:rule)
let rule.input = rule.char
let rule.input_after = ""
View mapping.vim
nnoremap <C-Space> i <Esc><Right>
nnoremap <Esc><Esc> :nohlsearch<CR>
nnoremap <silent> <C-j> :call append(line(".")-1, "")<CR>
nnoremap <silent> <C-k> <Up>dd
nnoremap <silent> j gj
nnoremap <silent> k gk
nnoremap <Down> gj
nnoremap <Up> gk
nnoremap h <Left>
nnoremap l <Right>
View catch.cpp
#define CATCH_CONFIG_MAIN
#include "./catch.hpp"
#include <vector>
#include <list>
template<typename List>
void func(){
List v;
v.push_back(1);
View multi_method.rb
require "stitcher"
using Stitcher
class X
stitcher_require [Object]
def initialize a
p a
end
View multi_method.rb
require "stitcher"
using Stitcher
class X
stitcher_require [Object]
def initialize a
p a
end
View type_struct.rb
require "stitcher"
using Stitcher
def type_struct **hash
Class.new {
stitcher_accessor hash
def initialize **hash
hash.each { |key, value| send("#{key}=", value) }
end
View ui.vim
let s:V = vital#of("vital")
let s:Buffer = s:V.import("Coaster.Buffer")
let s:cmdline = s:V.import("Over.Commandline")
function! Start()
let cmdline = s:cmdline.make_standard(":")
let cmdline.buffer = s:Buffer.open("botright new")
setlocal bufhidden=hide buftype=nofile noswapfile nobuflisted nonumber cursorline
let cmdline.list = glob("**/*", 1, 1)
You can’t perform that action at this time.