VIM: Perform two actions at once

I often save :w and commit to SVN svn commit -m "Ticket 351" as two operations. Is there a way to combine them into a single operation so that I might just :⇑Enter when the need arises? I don't want to map a key as I will sometimes have to change the commit message.

Thanks.

Answers


Use | as a command separator (see :help :bar):

:w|!svn commit -m foo

Need Your Help

Why can the background page be an html file?

google-chrome-extension google-chrome-devtools

In manifest.json, we specify our background page and can put an html or a js file for it. Since it is only a script that executes what sense does it make to have an html file for it?

symfony2 twig whitelist html tags

html templates escaping symfony2 twig

I pass a variable to my twig template in Symfony2, this variable may contain <br /> html tags, I have tried to create an extension (function), but the variable still gets escaped.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.