Skip to content

Instantly share code, notes, and snippets.

View index.html
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"></meta>
<title>where am i?</title>
<link href="css/index.css" type="text/css" rel="stylesheet"></link>
@zarac
zarac / autocmd-BookmarkRemove.patch
Created Aug 9, 2013
vimperator patch - BookmarkRemove event
View autocmd-BookmarkRemove.patch
diff -r 6e73b263c987 common/content/bookmarks.js
--- a/common/content/bookmarks.js Wed Jul 10 23:31:27 2013 +0900
+++ b/common/content/bookmarks.js Fri Aug 09 07:02:39 2013 +0200
@@ -187,6 +187,8 @@
let bookmarkObserver = function (key, event, arg) {
if (event == "add")
autocommands.trigger("BookmarkAdd", arg);
+ else if (event == "remove")
+ autocommands.trigger("BookmarkRemove", arg);
};
@zarac
zarac / SetTagsFile.vim
Last active Sep 25, 2015
vim SetTagsFile()
View SetTagsFile.vim
"" Path to tags file.
function! SetTagsFile()
let cwd = expand('%:p:h')
if cwd =~# "/some/path/.*"
if !exists("tags[/some/path/tags]")
set tags+=/some/path/tags
endif
endif
endfunction