This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |