App-EditorTools
view release on metacpan or search on metacpan
lib/App/EditorTools/Command/InstallVim.pm view on Meta::CPAN
}
return 1;
}
sub _script { File::Spec->catfile(qw(vim editortools.vim)) }
sub _intro {
return <<"END_INTRO";
" App::EditorTools::Command::InstallVim generated script
" Version: $VERSION
END_INTRO
}
# sub _get_vimruntime {
# my $self = shift;
#
# my $file = 'appeditvim.tmp';
# my $cmd = qq{vim -c 'redir > $file' -c 'echomsg \$VIMRUNTIME' -c q};
#
# run( command => $cmd, verbose => 0, )
# or $self->usage_error("Error running vim to find global path");
# my $dest = read_file $file
# or $self->usage_error("Unable to find global vim path");
# unlink $file;
#
# $dest =~ s{[\n\r]}{}mg;
# return $dest;
# }
# Pod if we add the global option
# =item --global
# Install the vim script globally. This will put the script in
# C</usr/share/vim/vim72/ftplugin/perl/editortools.vim> or a similar location
# for your operating system.
1;
__END__
=pod
=head1 NAME
App::EditorTools::Command::InstallVim - Installs vim bindings for App::EditorTools
=head1 VERSION
version 1.00
=head1 SYNOPSIS
# Install the vim script to create binding to App::EditorTools with:
editortools install-vim
=head1 DESCRIPTION
This will place the vim script contained in the share dir of this distribution
where vim expects it ( C<$HOME/.vim/ftplugin/perl/editortools.vim> for a local
install on a unix-like system)>).
=head1 OPTIONS
=over 4
=item --local
Install the vim script for the local user only. This will put the script in
C<$HOME/.vim/ftplugin/perl/editortools.vim> or a similar location for your
operating system. This is the default action.
=item --dest
Specify a full path (directory and filename) for the vim script.
=item --print
Print the vim script to STDOUT.
=item --dryrun
Don't do anything, just print what we would do.
=back
=head1 SEE ALSO
Also see L<PPIx::EditorTools>, L<Padre>, and L<PPI>.
=head1 AUTHOR
Mark Grimes, E<lt>mgrimes@cpan.orgE<gt>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Mark Grimes, E<lt>mgrimes@cpan.orgE<gt>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
( run in 1.353 second using v1.01-cache-2.11-cpan-64ef6c95b5d )