Skip to content

Instantly share code, notes, and snippets.

+ vimenv install -n -- --with-features=huge --disable-selinux --enable-terminal --enable-perlinterp --enable-python3interp --enable-rubyinterp --enable-luainterp --with-lua-prefix=/usr/local --with-compiledby=yasu-n --enable-multibyte --disable-gui --enable-fontset --enable-cscope --enable-fail-if-missing
This directory already exists: latest
Do you delete directory?[yes|no]
Cloning into '/Users/yasu-n/.vimenv/src'...
Already up to date.
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make first
/bin/sh install-sh -c -d objects
touch objects/.dirstamp
@yasu-n
yasu-n / gist:a6a1751a9f606261424ba8bbd332b463
Created September 13, 2018 14:45
show ast using rustic-ap-syntax
extern crate syntax;
use syntax::with_globals;
use syntax::parse::*;
use syntax::source_map::*;
use std::path::Path;
fn main() {
syntax::with_globals (|| {
let args: Vec<String> = std::env::args().collect();
@yasu-n
yasu-n / syntax
Last active September 10, 2018 15:52
// reference URL: https://stackoverflow.com/questions/50267237/how-to-derive-code-from-crate-module-functions?rq=1
extern crate syntex_syntax as syntax;
use syntax::parse::*;
use syntax::codemap::*;
use std::path::Path;
fn main() {
let args: Vec<String> = std::env::args().collect();
@yasu-n
yasu-n / pdict.pl
Created September 23, 2013 12:17
vim の neocomplete で使用する perl 関数辞書作成プログラム
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Pod::Functions;
my $file;
if (@ARGV == 1) {
$file = shift @ARGV;
} else {
@yasu-n
yasu-n / git_root
Last active December 18, 2015 06:59
add vim's path to git root path
function! GitRoot()
try
let ret = vimproc#system('git rev-parse --show-toplevel')
catch
echomsg "Fatal"
endtry
return ret
endfunction
let git_path = Git()