background preloader

VIM

Facebook Twitter

Vi-IMproved. Jsoncodecs.vim - Dumps lines from vim to a valid JSON string. Jsruntime.vim - Run javascript in vim. This is Javascript Runtime in Vim As you know, Vim is well integrated with python,perl etc, but no javascript, that is what this plugin does. This plugin provide the ability to integrate your Vim with javascript, It use PyV8 as javascript interpreter. if PyV8 not supported, it use node, cscript, spiderMonkey as fallbacks. The github-repo: Use g:loaded_jsruntime to check jsruntime plugin state g:loaded_jsruntime doesn't exists -----------> jsruntime plugin doesn't installed g:loaded_jsruntime equals to 0 ------------> jsruntime plugin is installed but not working properly g:loaded_jsruntime equals to 1 ------------> jsruntime plugin is working Functions registered to current buffer by jsruntime.vim 1. b:jsruntimeEvalScript({script}, {renew_context}) renew_context is a flag to indicate whether keep the context created by script before 2. b:jsruntimeEvalScriptInBrowserContext({html_code}) for example.

Jsflakes - check errors for javascript on the fly. Jsflakes.vim - A powerful vim plugin lint javascript code on the fly. Surround.vim - Delete/change/add parentheses/quotes/XML-tags/much more with ease. Surround.vim is all about "surroundings": parentheses, brackets, quotes, XML tags, and more. The plugin provides mappings to easily delete, change and add such surroundings in pairs.

While it works under Vim 6, much of the functionality requires Vim 7. Examples follow. It is difficult to provide good examples in the variable width font of this site; check the documentation for more. Press cs"' (that's c, s, double quote, single quote) inside "Hello world! " to change it to 'Hello world! ' Now press cs'<q> to change it to <q>Hello world!

To go full circle, press cst" to get To remove the delimiters entirely, press ds" . Hello world! Now with the cursor on "Hello", press ysiw] (iw is a text object). [Hello] world! Let's make that braces and add some space (use "}" instead of "{" for no space): cs]{ { Hello } world! Now wrap the entire line in parentheses with yssb or yss) . ({ Hello } world!) Revert to the original text: ds{ds) Emphasize hello: ysiw<em> <em>Hello</em> world!

<p> Hello world! The NERD Commenter - A plugin that allows for easy commenting of code for many filetypes. Vim Taglist plugin. ShowMarks - Visually shows the location of marks. Vim for Perl developers | Blog of Leonid Mamchenkov. This is my attempt to provide a clear and simple instructions on adopting Vim text editor for programming needs. I am using Perl as the programming language in the examples, but most of this document will apply equally for any other programming language. Update: This post was translated into Portuguese by Alceu Rodrigues de Freitas Junior.

Introduction What is this document? This document is my attempt to provide a clear and simple instructions on adopting Vim text editor for programming needs. Some people may argue that Vim does not need any additional configuration to cover programming needs, while others will say it will never be as good as some Integrated Development Environments (IDEs). Who should read this document? First of all, this document is for people who are already using Vim for their programming tasks.

Prerequisites I assume that the reader has Vim installed on the system and is comfortable with simple text editing in Vim. Structure of the document Methodology Basic Configuration. Perl.Hacks.On.Vim.