Skip to content

Instantly share code, notes, and snippets.

@DeaR
DeaR / ignoreeof.lua
Last active Jun 17, 2016
IGNOREEOF support for NYAGOS
View ignoreeof.lua
share._ignoreeof_now = 0
share.org_ignoreeof_filter = nyagos.filter
nyagos.filter = function(args)
share._ignoreeof_now = 0
if share.org_ignoreeof_filter then
return share.org_ignoreeof_filter(args)
end
end
View unbold.vim
function! s:unbold()
redir => l:hl
silent highlight
redir END
for l:hl2 in map(filter(split(hl, '[\r\n]'), 'v:val =~ "term=\\S*bold"'), 'substitute(substitute(substitute(v:val, "\\<xxx\\>", "", ""), "term=\\S*\\zs\\%(,bold\\|bold,\\)", "", "g"), "term=\\zsbold", "NONE", "g")')
execute 'highlight' l:hl2
endfor
endfunction
autocmd Syntax,ColorScheme * call s:unbold()
@DeaR
DeaR / building_look2.23_for_mingw.md
Last active Dec 19, 2015
Building look(v2.23) for MinGW
View building_look2.23_for_mingw.md
  1. git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git
  2. cd util-linux
  3. git checkout v2.23
  4. put util_linux-2.23-look.patch.
  5. patch -p0 < util_linux-2.23-look.patch
  6. cd misc-utils
  7. gcc look.c mman.c -I../include -I../include/sys -olook
  8. words and web2 put in location of look.exe.

this patch are using mman-win32

View issue-385.patch
diff -r 6702a3ddd7e2 runtime/doc/options.txt
--- a/runtime/doc/options.txt Thu May 30 15:38:24 2013 +0200
+++ b/runtime/doc/options.txt Fri May 31 00:37:37 2013 +0900
@@ -1785,6 +1785,14 @@
completion in the preview window. Only works in
combination with "menu" or "menuone".
+ noinsert Do not insert any text for a match until the user selects
+ a match from the menu. Only works in combination with "menu"
+ or "menuone". No effect if "longest" is present.
View quickrun_config.vim
if has('win32') || has('win64')
let s:save_ssl = &shellslash
set noshellslash
if exists('$VS110COMNTOOLS')
let s:vcvarsall_bat = shellescape($VS110COMNTOOLS . '..\..\VC\vcvarsall.bat')
elseif exists('$VS100COMNTOOLS')
let s:vcvarsall_bat = shellescape($VS100COMNTOOLS . '..\..\VC\vcvarsall.bat')
elseif exists('$VS90COMNTOOLS')
let s:vcvarsall_bat = shellescape($VS90COMNTOOLS . '..\..\VC\vcvarsall.bat')
elseif exists('$VS80COMNTOOLS')
View super_map.vim
" call g:super_map('n', '<buffer>', "\<Space>uol", ":Unite outline -no-quit\<CR>")
" 2nd args: <buffer>, <expr>, <silent>, <unique>
let s:super_map_buf = {
\ 'n' : {}, 'x' : {}, 's' : {}, 'o' : {},
\ 'i' : {}, 'c' : {}, 'l' : {}}
function! s:super_map_do(char, mode)
let key = a:char
while(1)
@DeaR
DeaR / map-alt-keys.vim
Last active Dec 17, 2015
Mapping Alt-keys for Terminal
View map-alt-keys.vim
" Mapping Alt-keys for Terminal
"
" Maintainer: DeaR <nayuri@kuonn.mydns.jp>
" Last Change: 01-Oct-2013.
" License: MIT License {{{
" Copyright (c) 2013 DeaR <nayuri@kuonn.mydns.jp>
"
" 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
@DeaR
DeaR / maplist.vim
Last active Dec 17, 2015
Sorted, Collected, Fix to <M-...>.
View maplist.vim
" Sorted, Collected, Fix to <M-...>.
"
" Maintainer: DeaR <nayuri@kuonn.mydns.jp>
" Last Change: 13-Aug-2013.
" License: MIT License {{{
" Copyright (c) 2013 DeaR <nayuri@kuonn.mydns.jp>
"
" 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
@DeaR
DeaR / neobundle_git_gc.vim
Last active Dec 16, 2015
NeoBundleをたまには git gc したかった
View neobundle_git_gc.vim
function! s:neobundle_git_gc(names)
let names = split(a:names)
let bundles = empty(names) ?
\ neobundle#config#get_neobundles() :
\ neobundle#config#search(names)
let cwd = getcwd()
try
for bundle in bundles
if bundle.type != 'git'
View CursorLine_overrides_SpecialKey_ver2.patch
diff -r c61da758a9a2 src/screen.c
--- a/src/screen.c Wed Apr 24 18:34:45 2013 +0200
+++ b/src/screen.c Fri May 03 16:46:51 2013 +0900
@@ -2844,7 +2844,7 @@
int syntax_flags = 0;
int syntax_seqnr = 0;
int prev_syntax_id = 0;
- int conceal_attr = hl_attr(HLF_CONCEAL);
+ int conceal_attr = 0;
int is_concealing = FALSE;
You can’t perform that action at this time.