NAME

Neovim::Ext::VIMCompat - Neovim legacy VIM perl compatibility layer

VERSION

version 0.05

SYNPOSIS

        use Neovim::Ext;

DESCRIPTION

A compatibility layer for the legacy VIM perl interface.

METHODS

Msg( $msg )

Display the message $msg.

Blob( $scalar )

Return a VIM blobl literal string 0zXXXX for $scalar.

SetOption( $option )

Sets a vim option. $option can be any argument that the :set command accepts. No spaces are allowed in $option.

DoCommand( $cmd )

Execute the Ex command $cmd.

Eval( @expr )

Evaluate @expr and returns ($success, $result) in list context or just $result in scalar context.

Buffers( [@names] )

Return a list of buffers in list context or the number of buffers in scalar context. @names may optionally specify the list of buffers of interest. Neovim's bufname() function is executed on each entry in @names prior to comparing the buffer names.

Windows( [@numbers] )

Returns a list of windows in list context or the number of windows in scalar context. @numbers may optionally specify the list of windows of interest.