Last active
March 8, 2019 00:37
-
-
Save nefo-mi/2f0c7ab0e6c5e733108f562a60057af3 to your computer and use it in GitHub Desktop.
cvimrc
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
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