Skip to content

Instantly share code, notes, and snippets.

@nefo-mi
Last active March 8, 2019 00:37
Show Gist options
  • Save nefo-mi/2f0c7ab0e6c5e733108f562a60057af3 to your computer and use it in GitHub Desktop.
Save nefo-mi/2f0c7ab0e6c5e733108f562a60057af3 to your computer and use it in GitHub Desktop.
cvimrc
let locale = "jp"
let barposition = "bottom"
let hintcharacters = "asdfghjkl"
set noautofocus
set smoothscroll
unmap a,b,B,x
map b :buffer<Space>
map B :bookmarks<Space>
let qmark b = ["http://b.hatena.ne.jp"]
let qmark y = ["https://www.yahoo.co.jp/"]
map yf yankUrl
" markdown style
copyUrlMarkdownStyle() -> {{
RUNTIME('getRootUrl', function(url) {
let ret = "[" + document.title + "](" + url + ")";
Clipboard.copy(ret);
Status.setMessage(ret, 2);
});
}}
map ym :call copyUrlMarkdownStyle<CR>
" org-mode style
copyUrlOrgmodeStyle() -> {{
RUNTIME('getRootUrl', function(url) {
let ret = "[[" + url + "][" + document.title + "]]";
Clipboard.copy(ret);
Status.setMessage(ret, 2);
});
}}
map yo :call copyUrlOrgmodeStyle<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment