kristijanhusak / Vim Carbon Now Sh
Licence: mit
Open selected text in https://carbon.now.sh
Stars: ✭ 195
vim-carbon-now-sh
(n)vim implementation plugin for opening selected content in https://carbon.now.sh.
Installation
Vundle
Add the following line to your .vimrc
Plugin 'kristijanhusak/vim-carbon-now-sh'
Then run the following in Vim:
:source %
:PluginInstall
Usage
Select some text in visual mode and run this command:
:CarbonNowSh
You can also map it to something and use it after selection:
vnoremap <F5> :CarbonNowSh<CR>
Browser
Plugin will try it's best to use your default browser. If it fails, or you want to customize it, provide browser executable through this option to your vimrc. Example for google-chrome:
let g:carbon_now_sh_browser = 'google-chrome'
Options
You can set the query string that will be passed to https://carbon.now.sh. Example for setting font and line number:
let g:carbon_now_sh_options =
\ { 'ln': 'true',
\ 'fm': 'Source Code Pro' }
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].