Silicon vnoremap

This commit is contained in:
Anthony Cicchetti 2020-08-03 12:32:03 -04:00
parent f83341bf4a
commit 39fb4dbba7

View file

@ -176,6 +176,11 @@ autocmd VimEnter * RainbowParentheses
let g:rainbow#blacklist = [248] let g:rainbow#blacklist = [248]
let g:rainbow#pairs = [['(', ')'], ['[', ']'], ['{', '}']] let g:rainbow#pairs = [['(', ')'], ['[', ']'], ['{', '}']]
" silicon remaps
if executable("silicon")
vnoremap <Leader>c :'<,'>w !silicon -c -l%:e<CR>
endif
function! s:transformed_url(url) function! s:transformed_url(url)
let l:rv = a:url let l:rv = a:url
let l:rv = system("echo " . l:rv . ' | sed "s|:|/|" | sed "s|git@|https://|"') let l:rv = system("echo " . l:rv . ' | sed "s|:|/|" | sed "s|git@|https://|"')