]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
ftplugin/*/*.xpt.vim: Add p (print) and pe (print error) snippets.
authorSimon Ruderich <simon@ruderich.org>
Sat, 17 Nov 2012 15:01:06 +0000 (16:01 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 17 Nov 2012 15:01:06 +0000 (16:01 +0100)
vim/ftplugin/c/c.xpt.vim
vim/ftplugin/perl/perl.xpt.vim

index bca4558f8a2051e6aea6b66b3cc96bc9e12391b9..588d7c205abb102586537d2400ebe05961d22b62 100644 (file)
@@ -60,3 +60,10 @@ int main(int argc, char **argv) {
 
     return EXIT_SUCCESS;
 }
+
+
+XPT p
+printf("`format^"`cursor^);
+
+XPT pe
+fprintf(stderr, "`format^"`cursor^);
index 4b11472fef68f00ac2d897a00607a1025795f9d3..5259466361366be1db081839dff4d9db5f93393a 100644 (file)
@@ -57,3 +57,10 @@ use warnings;
 
 
 `cursor^
+
+
+XPT p
+print `cursor^;
+
+XPT pe
+print STDERR `cursor^;