From: Simon Ruderich Date: Sat, 17 Nov 2012 15:01:06 +0000 (+0100) Subject: ftplugin/*/*.xpt.vim: Add p (print) and pe (print error) snippets. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=eb1a6f7157124838b90563216675d520ea40b867;p=config%2Fdotfiles.git ftplugin/*/*.xpt.vim: Add p (print) and pe (print error) snippets. --- 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^;