Skip to content

Instantly share code, notes, and snippets.

View chikatoike's full-sized avatar

chikatoike chikatoike

View GitHub Profile
@chikatoike
chikatoike / clang_cursor_at.py
Created October 8, 2012 22:05
clang/cindex.pyの検証コード
# -*- coding: utf-8 -*-
import sys
import os
import platform
from ctypes import *
# neocomplcache-clang付属のcindex.pyを使用する
sys.path.append(os.path.expandvars('$HOMEPATH/Dropbox/home/.vim/vundle/neocomplcache-clang/autoload/neocomplcache/sources/clang_complete'))
sys.path.append(os.path.expandvars('/mnt/hgfs/work/.vim/vundle/neocomplcache-clang/autoload/neocomplcache/sources/clang_complete'))
@chikatoike
chikatoike / neocomplcache-caching-performance.vim
Created September 13, 2012 21:45
neocomplcache caching performance
" test for https://github.com/chikatoike/neocomplcache/tree/cache-experimental
let s:sfile = globpath(&runtimepath, 'autoload/neocomplcache/async_cache.vim')
function! s:async_load_from_file(call_system, cache_dir, filename, pattern, mark)"{{{
let pattern_file_name =
\ neocomplcache#cache#encode_name('keyword_patterns', a:filename)
let cache_name =
\ neocomplcache#cache#encode_name(a:cache_dir, a:filename)