All Projects → Bogdanp → Browser Connect.vim

Bogdanp / Browser Connect.vim

Licence: mit
Live browser interaction for VIM.

Labels

Projects that are alternatives of or similar to Browser Connect.vim

Dotfiles
My dotfiles
Stars: ✭ 91 (-9.9%)
Mutual labels:  viml
Devbox
Solomon's dev environment
Stars: ✭ 95 (-5.94%)
Mutual labels:  viml
Vimperator Colors
colorsheme
Stars: ✭ 99 (-1.98%)
Mutual labels:  viml
Prolog.vim
Prolog Integration for Vim
Stars: ✭ 91 (-9.9%)
Mutual labels:  viml
Cmd2.vim
cmdline-mode enhancement for Vim
Stars: ✭ 94 (-6.93%)
Mutual labels:  viml
Preto
A minimal dark theme for VIM.
Stars: ✭ 97 (-3.96%)
Mutual labels:  viml
Vim Search Pulse
Easily locate the cursor after a search
Stars: ✭ 91 (-9.9%)
Mutual labels:  viml
Vim Togglelist
Functions to toggle the [Location List] and the [Quickfix List] windows.
Stars: ✭ 100 (-0.99%)
Mutual labels:  viml
Vip
DEPRECATED - Switch to https://github.com/tobyS/pdv and https://github.com/tobyS/vip instead!
Stars: ✭ 94 (-6.93%)
Mutual labels:  viml
Elixir.nvim
Vim Completion/Doc/Eval for Elixir (nvim), compile https://github.com/awetzel/neovim-elixir and https://github.com/awetzel/nvim-rplugin
Stars: ✭ 99 (-1.98%)
Mutual labels:  viml
Yavide
Modern C/C++ integrated development environment
Stars: ✭ 1,306 (+1193.07%)
Mutual labels:  viml
Vim config
My vim configuration; packaged to be other-user-friendly
Stars: ✭ 92 (-8.91%)
Mutual labels:  viml
Vim Ruby Minitest
Vim highlighting & completion for MiniTest
Stars: ✭ 97 (-3.96%)
Mutual labels:  viml
Vim Json
Syntax highlighting for JSON in Vim
Stars: ✭ 91 (-9.9%)
Mutual labels:  viml
Vim Follow My Lead
Vim plugin for showing all your <Leader> mappings in a readable table including the descriptions.
Stars: ✭ 100 (-0.99%)
Mutual labels:  viml
Unite Tag
tags soruce for unite.vim
Stars: ✭ 91 (-9.9%)
Mutual labels:  viml
Vim Howdoi
A Vim frontend for howdoi, the awesome command line tool that lets you ask what you need and grabs the snippet of code from SO.
Stars: ✭ 96 (-4.95%)
Mutual labels:  viml
Vimrc
My vim files (i'm a n00b, don't use these)
Stars: ✭ 100 (-0.99%)
Mutual labels:  viml
Vim Arduino Syntax
Arduino syntax files for Vim
Stars: ✭ 100 (-0.99%)
Mutual labels:  viml
Textobjectify
TextObjectify is a Vim plugin which improves text-objects
Stars: ✭ 98 (-2.97%)
Mutual labels:  viml

This plugin implements a VIM interface for browser-connect-server in order to provide a live coding environment similar to the one currently available in LightTable.

If you would like to see it in action, a (very crude) demo video is available here.

Installation

Use pathogen (or Vundle) and clone this repository into your ~/.vim/bundle directory. That's it, you're good to go.

Usage

Copy the following code snippet into your template and open it inside of a (modern) browser. Make sure that you have VIM running before you do so.

<script src="http://localhost:9001/ws"></script>

After doing so, you should be able to evaluate CSS buffers and JS buffers using <LocalLeader>be as well as selections of JS. The changes should be instantly reflected in your browser. Whenever you save a JS file or an HTML page, the template will be fully refreshed, you can also refresh the template without having to save the file using <LocalLeader>br.

Notes

If you installed the plugin someplace other than ~/.vim/bundle/browser-connect.vim you will have to paste the following snippet into your .vimrc file and update the path to reflect the actual location of the browser-connect.vim folder.

let g:bc_server_path = "/home/me/.vim/bundle/browser-connect.vim/server"

To disable the plugin from setting its own mappings, paste the following into your .vimrc file:

let g:bc_no_mappings = 1

You can set your LocalLeader key to be , by doing:

let maplocalleader = ","

If you would like to map your own keys to evaluate buffers, map them to the following commands:

vmap <silent><LocalLeader>be :BCEvaluateSelection<CR>
nmap <silent><LocalLeader>be :BCEvaluateBuffer<CR>
nmap <silent><LocalLeader>br :BCReloadPage<CR>

To disable automatic behavior on save add the following to your .vimrc file:

let g:bc_no_au = 1

Windows

To run the plugin on Windows you must start the server yourself by going into the browser-connect.vim/server folder and running the following command: start.bat "-Dhttp.port=9001".

Requirements

  • VIM 7.0+ compiled with +python
  • Python 2.6+
  • Java 7+
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].