Skip to content

Instantly share code, notes, and snippets.

View bruceLee-kungFu's full-sized avatar

bruceLee-kungFu

View GitHub Profile
command = "pwd"
$pwd = %x[#{command}]
puts $pwd
if ($pwd =~ /^(\/.*)\/.*?\/.*?$/) # get rid of the trailing two directories
$path_to_loading_file = $1 + "/lib_crawler/lib_crawler.rb"
end
load $path_to_loading_file
function! HiInterestingWord(n) " {{{
" Save our location.
" normal! mz
let view = winsaveview()
" Yank the current word into the z register.
normal! "zyiw
" Calculate an arbitrary match ID. Hopefully nothing else is using it.
let mid = 86750 + a:n