From eb1a6f7157124838b90563216675d520ea40b867 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 17 Nov 2012 16:01:06 +0100 Subject: [PATCH] ftplugin/*/*.xpt.vim: Add p (print) and pe (print error) snippets. --- vim/ftplugin/c/c.xpt.vim | 7 +++++++ vim/ftplugin/perl/perl.xpt.vim | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/vim/ftplugin/c/c.xpt.vim b/vim/ftplugin/c/c.xpt.vim index bca4558..588d7c2 100644 --- a/vim/ftplugin/c/c.xpt.vim +++ b/vim/ftplugin/c/c.xpt.vim @@ -60,3 +60,10 @@ int main(int argc, char **argv) { return EXIT_SUCCESS; } + + +XPT p +printf("`format^"`cursor^); + +XPT pe +fprintf(stderr, "`format^"`cursor^); diff --git a/vim/ftplugin/perl/perl.xpt.vim b/vim/ftplugin/perl/perl.xpt.vim index 4b11472..5259466 100644 --- a/vim/ftplugin/perl/perl.xpt.vim +++ b/vim/ftplugin/perl/perl.xpt.vim @@ -57,3 +57,10 @@ use warnings; `cursor^ + + +XPT p +print `cursor^; + +XPT pe +print STDERR `cursor^; -- 2.45.2