sponsor Vim development Vim logo Vim Book Ad

stringliteral : C++ multi-line string literals from common text

 script karma  Rating 0/0, Downloaded by 641  Comments, bugs, improvements  Vim wiki

created by
Alcides Viamontes
script type
This script convert multiline text in a C++ file to a multi-line
string literal, escaping the quote and tab characters. It also does
the reverse conversion, un-escaping some characters. It's not too
complete for now, but it will be someday if needs come.

This script requires Python.

You can find a source-repository for this script here:


Feel free to use Bitbucket's ticket system or to write-me an email to a.viamontes.esquivel @"google's popular email service"  with comments or suggestions.

install details
Copy the stringliteral.vim file to some place in your Vim's runtime under the directory ftplugin/cpp,
and the .txt file to doc/. Note that you will need filetype plugin on for this to work.  Redo the help
tags file with :helptags <youruntimepath>

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
stringliteral-0.1.tar.gz 0.1 2013-09-24 7.0 Alcides Viamontes Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.