Skip to main content

headlessvim

Travis CI Coveralls Code Climate PyPI Version Python Versions

Introduction

headlessvim makes Vim programmable to support developping Vim plugins.

The most distinctive characteristic is, headlessvim NEVER needs +clientserver feature.

Install

Using pip (recommended)

pip install headlessvim

The good old setup.py

python setup.py install

Usage

A simple example is here:

>>> import headlessvim
>>> with headlessvim.open() as vim:
...    vim.echo('"spam"') # make sure to quote bare words
...
'spam'
>>> import os
>>> env = dict(os.environ, LANG='C')
>>> with headlessvim.open(executable='/usr/bin/vim', args='-N -u /etc/vim/vimrc', env=env):
...    vim.send_keys('iham\033')
...    vim.display_lines()[0].strip()
...
'ham'

Integrating to unittest:

import unittest
import headlessvim

class TestVimPlugin(unittest.TestCase):
    def setUp(self):
        self.vim = headlessvim.open()

    def tearDown(self):
        self.vim.close()

    def testSomeFeature(self):
        res = self.vim.echo('"ham egg"')
        self.assertEqual(res, 'ham egg')

Documentation

See the online document for more information.

Testing

Execute:

python setup.py test

License

The MIT License.

See LICENSE.txt for more information.

Metadata

Release files for headlessvim 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for headlessvim 0.0.5
File Size Uploaded Provenance Actions
headlessvim-0.0.5.tar.gz 7.4 kB Without provenance Details for headlessvim-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for headlessvim 0.0.5
File Interpreter ABI Platform Actions
headlessvim-0.0.5-py2-none-any.whl Python 2 none any Details for headlessvim-0.0.5-py2-none-any.whl

Total release size: 17.6 kB

Release files / headlessvim-0.0.5.tar.gz

Download URL headlessvim-0.0.5.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f6b75fc13316fb4c9d937e32e6e8e8bbf843ad1dcb264ef4d276b8a6aad84c2f
BLAKE2b-256 checksum
How to use checksums
7a06e56fe00862dd07a13bb459002883566acb2ff255bcd6543b64717fb2c97a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / headlessvim-0.0.5-py2-none-any.whl

Download URL headlessvim-0.0.5-py2-none-any.whl
Size 10.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
4bc4efd6a7cc8d23df80d94e855b1e99b47ee87ecfe81485c63ca6fd29461b4f
BLAKE2b-256 checksum
How to use checksums
c2a6627d8e1a2672643807fff554410fb6c403637845e9874ef401e1f0ac65df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for headlessvim 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files No provenance

0.0.2

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page