vimcurl

Created: 2008-11-21 00:44
Updated: 2018-04-11 04:24
c

README.markdown

Overview

Provides a library for Vim's libcall-function to make requests (over HTTP or otherwise) from within a Vim process (this should be a bit faster than using curl or wget as external processes).

Platforms

Vim's libcall-functionality is available on Windows, but you need to be able to build the libvimcurl.dll (my Makefile does not do this).

Installation

# Make sure you have libcurl-dev installed
make

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd):
# alternatively, you can add something like this to your ~/.vimrc:
#   let g:vimcurl_lib = "/full/path/to/libvimcurl.so"

# Install the plugin
cp plugin/vimcurl.vim ~/.vim/plugin

Usage

From within Vim:

:echo Vimcurl("http://example.org")

Implementation

Vim's libcall-function requires the function in the external library to have String -> String semantics, so we can only pass one single string parameter to this external function. I will probably implement POST-support by overloading the Vimcurl-function in vimcurl.vim so it takes a Vim-dictionary and encodes this somehow in a String to pass to a make_POST_request-function in the library.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more