Skip to content

Instantly share code, notes, and snippets.

View ku-my-fix.diff
Index: ku.vim
===================================================================
--- ku.vim (リビジョン 373)
+++ ku.vim (作業コピー)
@@ -612,8 +612,7 @@
if empty_pattern_p
" To skip unnecessary checkings in s:_omnifunc_compare_lists(),
" use the unique part of _.word which is matched to patterns.
- let asis_C_ms = substitute(_.word[(i):], re_acc_sep, ' ', 'g')
- let word = 0
View 0001-Fix-the-way-to-check-the-extension-of-zip.patch
From 077af6f393ea55fb9df2030e85b8f1634e778459 Mon Sep 17 00:00:00 2001
From: thinca <thinca@gmail.com>
Date: Fri, 29 May 2009 14:56:13 +0900
Subject: [PATCH 1/2] Fix the way to check the extension of zip.
Because extension is case insensitive.
---
vim/dot.vim/autoload/ku/file.vim | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
View list_bench.vim
let list = []
echo 'call add(list, i)'
let time = reltime()
for i in range(10000)
call add(list, i)
endfor
echo reltimestr(reltime(time))
View hatena-superpre-syntax.vim
" append to syntax/hatena.vim
let b:hatena_syntax_super_pre_loaded = {} " Reset when load.
function! s:update_super_pre()
let mx = '^>|\zs.*\ze|$'
for curline in getline(1, '$')
let ft = matchstr(curline, mx)
if ft != '' && !has_key(b:hatena_syntax_super_pre_loaded, ft)
\ && globpath(&rtp, 'syntax/' . ft . '.vim') != ''
unlet! b:current_syntax
let save_isk= &l:isk " For scheme.
View QuickRun.vim
" Run a command quickly.
" Version: 0.0.3
" Author : thinca <http://d.hatena.ne.jp/thinca/>
" License: Creative Commons Attribution 2.1 Japan License
" <http://creativecommons.org/licenses/by/2.1/jp/deed.en>
scriptencoding utf-8
if exists('g:loaded_QuickRun') || v:version < 702
finish
endif
View build.log
>>> Unpacking source...
>>> Unpacking mlterm-2.9.3.tar.gz to /var/tmp/portage/x11-terms/mlterm-2.9.3-r1/work
* Applying mlterm-2.9.1-gentoo.diff ...
 [ ok ]
* Applying mlterm-2.9.3-asneeded.diff ...
 [ ok ]
>>> Source unpacked in /var/tmp/portage/x11-terms/mlterm-2.9.3-r1/work
>>> Compiling source in /var/tmp/portage/x11-terms/mlterm-2.9.3-r1/work/mlterm-2.9.3 ...
* econf: updating mlterm-2.9.3/mkf/script/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating mlterm-2.9.3/mkf/script/config.guess with /usr/share/gnuconfig/config.guess
View gist:180086
Index: sexe.vim
===================================================================
--- sexe.vim (リビジョン 518)
+++ sexe.vim (作業コピー)
@@ -40,10 +40,21 @@
function! vimshell#internal#sexe#execute(program, args, fd, other_info)"{{{
" Execute shell command.
let l:cmdline = ''
+ let l:iswin = has('win32') || has('win64')
for arg in a:args
View lifegame.vim
" Lifegame for vim.
" Version: 0.1.0
" Author : thinca <http://d.hatena.ne.jp/thinca/>
" License: Creative Commons Attribution 2.1 Japan License
" <http://creativecommons.org/licenses/by/2.1/jp/deed.en>
if exists('g:loaded_lifegame') || v:version < 702
finish
endif
let g:loaded_lifegame = 1
View fakeclip.diff
--- autoload/fakeclip.vim.orig 2009-09-15 21:09:21.000000000 +0900
+++ autoload/fakeclip.vim 2009-09-15 20:45:03.000000000 +0900
@@ -27,6 +27,8 @@
let s:PLATFORM = 'mac'
elseif has('win32unix')
let s:PLATFORM = 'cygwin'
+elseif $DISPLAY != '' && executable('xclip')
+ let s:PLATFORM = 'xclip'
else
let s:PLATFORM = 'unknown'
View vimrcbox.vim
" vimrcbox.vim
" Author: Sora harakami <sora134@gmail.com>
" Modified by: thinca <thinca+vim@gmail.com> thanks!
" Modified by: Shougo <Shougo.Matsu@gmail.com> thanks!
" Require: curl
" Licence: MIT Licence
if exists('g:loaded_vimrcbox')
finish
endif