Skip to content

Instantly share code, notes, and snippets.

@DeaR
DeaR / map-alt-keys.vim
Last active December 17, 2015 05:49
Mapping Alt-keys for Terminal
" 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
" 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)
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.
@DeaR
DeaR / building_look2.23_for_mingw.md
Last active December 19, 2015 04:39
Building look(v2.23) for MinGW
  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

@DeaR
DeaR / ignoreeof.lua
Last active June 17, 2016 17:12
IGNOREEOF support for NYAGOS
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
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')