• Stars
    star
    247
  • Rank 164,117 (Top 4 %)
  • Language
    Vim Script
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Open selected text in https://carbon.now.sh

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>

Alternate Endpoint

To send your code snippets to a local instance of carbon.now instead of the public, shared site (e.g. if you're doing private development, your code is internal, etc.), pass in an alternate base URL via your Vim config:

let g:carbon_now_sh_base_url = 'http://localhost:3000'

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' }

More Repositories

1

laravel-form-builder

Laravel Form builder for version 5+!
PHP
1,691
star
2

vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
Vim Script
1,436
star
3

vim-dadbod-completion

Database autocompletion powered by https://github.com/tpope/vim-dadbod
Vim Script
610
star
4

vim-hybrid-material

Material color scheme for Vim based on w0ng/vim-hybrid color scheme
Vim Script
545
star
5

neovim-config

Neovim configuration
Shell
254
star
6

vim-packager

Vim plugin manager that utilizes "jobs" and "pack" features.
Vim Script
245
star
7

vim-js-file-import

Import/require files in javascript and typescript with single button!
Vim Script
143
star
8

defx-icons

Filetype icons for https://github.com/Shougo/defx.nvim
Vim Script
131
star
9

defx-git

Git status implementation for https://github.com/Shougo/defx.nvim
Python
71
star
10

vim-dirvish-git

Git support for dirvish.vim
Vim Script
54
star
11

line-notes.nvim

Lua
33
star
12

tmux-simple-git-status

Add simple git status to your tmux statusline.
Shell
27
star
13

vim-simple-notifications

Vim Script
24
star
14

laravel4-form-builder

Laravel Form builder for version 4!
PHP
22
star
15

deoplete-phpactor

Phpactor integration for deoplete.nvim
Python
19
star
16

node_acl_sequelize

Sequelize implementation for node acl
JavaScript
17
star
17

vim-project-lint

Project level lint status right in your favorite file explorer
Vim Script
12
star
18

vimfiles

My Vim setup
Vim Script
8
star
19

completion-tags

Tags completion for completion-nvim
Lua
6
star
20

vim-create-pr

Open link to create PR directly from (neo)vim
Vim Script
4
star
21

cosmic_latte

☕ vim + emacs + textmate/sublime + atom + terminal (theme | colorscheme | color scheme) based on the color of the universe
Emacs Lisp
3
star