Sweeten Your Vim with Cream

Frustrated by Vim? Confused about why some swear by it but you can't figure out how make simple edits? Cream can take the edge off Vim's learning curve.

It’s an eternal debate amongst Penguinistas: Emacs or Vim? Unfortunately, for most” normal” (i.e., non-geek) folks, this debate will never occur, since they will find Emacs or Vim way too complicated, strange, and, well… different. You’ve heard what these new users say when they meet Emacs or Vim:” Why doesn’t anything appear when I type? What’s up with these weird key combinations? I have to do what to save? Modes? What are modes? I hate this! Why can’t I just type and save like normal?!”

This is really too bad, since Vim has a tremendous amount of power, stability, and extensibility to offer users (Emacs… ahhh, not so much). But if users are scared or confused by the interface, they’ll never get to enjoy the good stuff that Vim has to offer. There has to be some way to ease users into Vim, some way to leverage the power of Vim while accommodating, or even overcoming, the steep learning curve. Fortunately, there is a solution: Cream.

In order to use Cream, you have to have Vim installed. In fact, the program called” Cream” is really a series of scripts that extend Vim, adding and changing key commands, providing new tools and features, and simplifying the way the program works overall.

It’s an added bonus that, because Cream is just Vim underneath, power users comfortable with Vim can still take advantage of their muscle memory and years of learning. And perhaps the nicest extra of all is that Cream is open source, free, and runs on Linux and Windows.

I’ll Take Some Cream, Please

Installing Cream couldn’t be easier. Users on Ubuntu and other Debian- derived distros can simply run sudo apt-get install cream, and a few moments later the program will be on their systems.

SUSE and other RPM- based distros can use YaST, YUM, or whatever system package manager the distro comes with to install Cream, as it is provided by virtually all major distros. If your distro doesn’t provide what you need, or if you’re running Windows, head over to the main Cream website where you can download a binary or source code.

Now that Cream is installed, start it up. If you’ve ever used Vim with a GUI before (most likely GTK+), you’ll notice that Cream looks on the surface just like Vim. However, once you start poking around the menus, or begin typing, you’ll immediately see that Cream has been carefully designed to make Vim more user-friendly and more like the text editors most people are used to.

Most obviously, the idea of modes is gone. If you’re used to pressing i or a to edit and Esc to enter commands, this may seem crazy… but then, Cream wasn’t created for you.

What else is different? Quite a bit, actually.

Common keyboard shortcuts. Cut is Ctrl-X, Copy is Ctrl-C, and Paste is Ctrl-V, just like almost every other editor out there. And that’s the point. Same thing for Ctrl-Z (Undo), Ctrl-Y (Redo), Ctrl-S (Save), and Ctrl-N (New).

Not everything is exactly the same as common text editors, however. Ctrl-F brings up a nice little Find window, but you use Ctrl-H for Replace, not Ctrl-R. Take a stroll through Cream’s menus, and you’ll find that you already know most of the key commands, since they come from the common user interface found in thousands of programs. As you can see in Figure 1, Vim with Cream sports a couple of new menus.

“Vim with Cream”

Format menu. A new menu- Format- contains within it a wealth of easy-to-use text-changing goodies. Want to quickly change the case of highlighted text to all-caps, lowercase, or headline? No problem. Need to delete any empty line in a file? How about toggle between wrapping and no wrapping? Got a hankering to convert tabs to spaces? It’s all there, easily accessible under Format.

Settings menu. Another new menu- Settings- also provides easy access to useful features. Within the Settings menu, users can toggle line numbers, word wrap, revealing invisibles, auto-indent, syntax highlighting, and much more. In addition, a sub-menu labeled Preferences makes it very easy to set the default font, enable a tabbed interface, allow middle-clicking to paste copied text, and, in a nod to Vim users who want to try out Cream while keeping their well-earned Vim knowledge in play, Expert Mode. Enable Expert Mode, and you suddenly have access to modes again, so you can run your favorite scripts and take advantage of all the commands you know and love.

Tools. Cream isn’t just about rearranging Vim to make it easier for novices to use; it’s also about adding new extensions that take the program in some surprising new directions as well. Most of these extensions can be found in the Tools menu.

Some items under tools are actually present in Vim, but made more visible in Cream, like spell check, macro recording and playback, folding, text completion, and diff. The last sub-menu under Tools, however, is Add-ons, and it is there that the more adventurous users should definitely venture.

Really, it has to be said: Add-ons contains some pretty cool tools. You can invert lines or strings. sort text and then uniq it (in other words, use the uniq command to sift out similar lines), or” encrypt” text using various methods, including h4xOr and Rot13. This may be acceptable for casual” encryption” – like hiding the Christmas gift list from the kids- but it’s not going to wash in any circumstance that requires real encryption.

A timestamp is available, and so is the ability to convert your text from ASCII to Hex, or vice-versa, or even to HTML (although the HTML it produces is nothing to write home about). You’ll discover many more. One quick way to get a good overview of the items in the Add-ons menu is to try the Add-ons Explore wizard.

The Add-Ons Explore Wizard

To get to this feature, go to Tools-> Add-ons Explore(Map/Unmap). You’ll see a dialog similar to Figure 2. Here you can get a description of the various add-ons, and even map the shortcut used to access the add-ons.

That’s just the beginning of Cream, and even those who are well-experienced with Vim may find something useful in the program. Install it, play with it, and maybe you’ll find out that it’s useful not just for text editor newbies, but for old hands as well.

Comments on "Sweeten Your Vim with Cream"


FYI, Ctrl+H is Replace in Windows Notepad…


You’re kidding, right?

If you like vim or emacs, then use them. They are notoriously powerful. If you like “conventional” GUI-based text editors, don’t waste your time with adaptations to vim or emacs. Use a starightforward, powerful, cross-platform, open-source editor like jedit (http://jedit.org/).

If you are the type of person that shuns vim or emacs, you are the type of person that will like jedit.


I agree with hhemken. Let us note that vim:”emacs-mode” and emacs:”vim-mode”, altough they do exists, are jokes (big jokes by the way). But I find the idea of a vim:”windows-notepad-mode” really bad. But as a an experiment on this, or as an alternative to jedit, it may have some followers. But I hope it doesn’t get taken too seriously.

By the way, and to not to loose the humour here:
¡Larga vida a emacs!


There is no thing I hate more than trying to edit something on a GUI editor and see my text full of “i” and “a” from my muscle memory as the author sad.
The main reason for using vi is the command mode, that can do some heavy magic on trained fingers. If that is not what you are after, the stick to kate or notepad.

I can’t let that las statement go by: VI FOR EVER !!!! ;-)

And don’t forget : Real programers code on hexa !!!!



And don’t forget : Real programers code on hexa !!!!

Clearly, you need an xkcd refresher. ;-)


that is all fine, making the shortcuts uniform.

but what is the real reason that sysadmins learn vi? it exists in just about any *nix system. what is the point if one has to install cream on every solaris, AIX, linux box one can log in to, just to avoid remembering the yank command?


nedit at http://www.nedit.org/ is yet another GUI editor. Personally I wouldn’t use a frontend to vim or emacs.


I use a Windows desktop to manage my servers and I like edit my simple scripts with Notepad++ using a local drive mounted with Webdrive.


Vim it’s ok for me, exactly like this


Does Microsoft Word and Notepad come with a Vim addon ;-)

I don’t see why anyone would use Vim with the cream addon. why not use pico instead. Or nano ?


OK, what sysadmin has X Windows running on their servers? If they are using Linux as their desktop, and we all are (with the exception of maurosanchezd), right? So I can see perhaps an occasional lapse in judgement in actually using the GUI, but seriously, when you need to edit a .conf file, don’t you do as I do, open a bash terminal and run your favorite console editor? I’m mean the thought never occurs to me to open a text file with the GUI editor or even navigate for files and directories with konqueror or nautilus…I must be a throw-back…hell, I still use mutt!:-)

But in all seriousness, and to add to sotirchenas’ comment, the real, real, reason why all *nix sysadmins *must* learn and stay at least current with the basics of vi, is that at some point, you’ll have to boot into a very minimal single user mode and you may only have vi. I’ve had that happen on several *nix systems over the years-and not every Unix has a nice full featured Knoppix CD to boot to…

And maurosanchezd:
I didn’t see a smiley face, so do you actually use a Windows desktop on purpose? To manage what, Windows? If so, I feel sorry for you…


I found Cream to be very un-user friendly to me.. Because I am a hardcore-vim user..
I felt like It’s just like notepad with possible options in regular vim.



i am agree with hhemken


where is all this stuff coming from? Too many windowz people are migrating to Linux.


Modes!! Holy crap I need modes!! Don\’t call it Vim if it doesn\’t distinguish command, insert, visual, visual line, visual block and select modes, if it is point-and-click oriented and if it has the same keybindings of Notepad! Call it Windows Notepad with an alternative GUI!

I don\’t think any true Vim user will ever consider the idea of using this stuff. And I don\’t even think any non-Vim user will use it, if not to feel cool and get his friends surprised when looking at a Vim GUI on his screen. The common user will keep on using gedit, kedit, Notepad++, or the editor he\’s been using for ages, since he has no reason to change. The power use will keep on using his heavily customized Vim with its powerful modes and years of learning and experience. So, what\’s the use of this stuff?

Xu Xiaoya you might care about this money, she said: Do not worry teachers, we must call a good single senior, this money will be reimbursed to Qiang got.

Thanks for the good writeup. It in fact used to be a leisure account it. Look advanced to more brought agreeable from you! However, how could we keep in touch?

Hello Web Admin, I noticed that your On-Page SEO is is missing a few factors, for one you do not use all three H tags in your post, also I notice that you are not using bold or italics properly in your SEO optimization. On-Page SEO means more now than ever since the new Google update: Panda. No longer are backlinks and simply pinging or sending out a RSS feed the key to getting Google PageRank or Alexa Rankings, You now NEED On-Page SEO. So what is good On-Page SEO?First your keyword must appear in the title.Then it must appear in the URL.You have to optimize your keyword and make sure that it has a nice keyword density of 3-5% in your article with relevant LSI (Latent Semantic Indexing). Then you should spread all H1,H2,H3 tags in your article.Your Keyword should appear in your first paragraph and in the last sentence of the page. You should have relevant usage of Bold and italics of your keyword.There should be one internal link to a page on your blog and you should have one image with an alt tag that has your keyword….wait there’s even more Now what if i told you there was a simple WordPress plugin that does all the On-Page SEO, and automatically for you? That’s right AUTOMATICALLY, just watch this 4minute video for more information at. Seo Plugin

Link exchange is nothing else except it is simply placing
the other person’s weblog link on your page at proper place and other
person will also do same in support of you.

Feel free to surf to my web site: fastest way to lose weight

In fact, a locksmith can be mobile now given that he does not need making use of fire and water.

Feel free to visit my homepage All City Lock (Bettye)

Whether you need to locate dependency treatment near house or want to get tidy begin in a new
setting, we could aid.

Feel free to surf to my web blog inpatient drug rehab centers

Rehab is the basic choice for all those struggling to manage
their yearnings and even wanting to damage the pattern of drug and alcohol treatment options abuse.

Which provides an additional factor towards alcohol dependence,
for not striking the pocket publication as hard as your ordinary medicine

Feel free to surf to my web page :: drug abuse statistics and facts

Becoming part of a prescription painkiller misuse therapy program
can be scary for many individuals, specifically those who have never ever used illegal drugs before.

Feel free to surf to my site: best drug rehabilitation treatment centers

Bush was Florida governor at the time, and also Noelle’s dependency was propelled
right into the complete public limelight.

Feel free to visit my web page: best treatment for cocaine addiction (Tyrell)

I had a center class training like you, yet via scenarios stay in public
real estate, and even the medication trouble is a nightmare that authorities do not
also begin to understand, not to mention tackle.

Also visit my blog post; Drug rehab facilities

As I have actually currently discussed, and as you surely already
recognize, drug industry daily testing is
done randomly as well as periodically on workers at lots of place of works
and even government offices.

Little, if any type of, real alcohol rehab facilities (Tina) has actually happened and
also the sources of the addiction have not been taken care

Animal designs are important for recognizing the neuropharmacological mechanisms
involved in the development of dependency.

Feel free to visit my web blog; free inpatient rehab

Heroin abusers could hide their addiction from loved ones members, either from shame or in an initiative to stay
clear of disturbance with their drug addiction statistics 2015 abuse.

Lots of people who are suffering from liquor or medicine troubles are successful in other locations of their lives,
and they could even be able to hide their issue for years.

Feel free to surf to my homepage: addiction rehab

One untried hypothesis is that clients at risk for substance abuse in fact have an organic vulnerability within the very same domain names as those organic modifications assumed to create during heavy medicine intake regardless of hereditary history
(see above).

Also visit my blog :: Rehabilitation centers

The online drug rehab treatment free
rehab program has very effective treatments to cure all kinds
of medication dependency at budget friendly prices.

Yet whereas addicts bring naloxone might be johnny-on-the-spot in conserving a fellow
abuser’s life, they cannot be relied on to get their addict pal
into the local medical medicine detoxification clinic when she
or he gets back on their feet.

Here is my webpage … help with cocaine addiction (man2-kotaprobolinggo.sch.id)

These substance addictions end up being sometimes so intense that a person could not stay without the things of substance addiction.

Visit my website :: counseling with specialists

Rutland City Mayor Christoper Louras claims he really feels enthusiastic seeing numerous individuals
continuously come together each month, but he admits
the city’s fight against dependency will certainly
be recurring.

my website: drug addiction treatment options (http://Aardvarktopsitesphp.com/)

Whether this will improve the false good or not,
that recognizes; the medication testing lab earns money by saying their item is infallible, so they are visiting withstand ever before needing to say their test screwed
up to the people that they depend on for earnings, however they
are SUPPOSED to.

my web-site: Drug Abuse

As one of one of the most frequently mistreated medicines, narcotics also has many chances cure
for drug addiction (Roscoe) treatment.

Whatever the instance, brownBear, I considerably understand you
discussing your expertise with the rest people, as well as applaud you for overcoming drug abuse and addiction facts in a setting that seems to have been quite difficult.

This can be largely because of just how the medicine is gotten as well as the peer pressure that includes it.
Alcoholics however, tend to continue to be alcoholics.

my website :: long term residential drug treatment

OxyContin, probably one of the most infamous
numbing ‘people-killer’ signs of drug abuse all prescription drugs, could in fact be surpassed by methadone, the much-cheaper,
highly-addictive narcotic pain reliever utilized as a ‘treatment’ for heroin dependency.

Normally, the addict has lots of enemies as well as has done wrong to most of the
household however debates and also trouble will certainly not profit the cause of getting the addict
to seek addiction treatment centers.

Changing one medicine with another is a really bad method to heal an pot addiction, also if it did aid you this time.

As well as those THAT RECOGNIZE BETTER, i.e. the significant scientists and the ex-abusers, will tell you that dependency to it is
quite physical, no fucking concern.

Have a look at my webpage … drug abuse rehab centers

Residential medicine obsession treatment facilities offer
24-hour clinical as well as scientific assistance in a fully-integrated restorative environment that could accelerate the early healing procedure.

my homepage: drug addiction statistics

That believed substance addiction is the start
of all recognized dependencies was an actual eyeopener.

Feel free to surf to my website – Drug rehab treatment centers

Fab HUB habee, Parents have to be vigilant with their kids keeping an eye out for all the signals symptoms of drug abuse beverage drug abuse.

Control of substance abuse treatment facility locator abuse is
a top priority of the United States Doctor General, as detailed in the Healthy Individuals 2010 goals
for the country.

Castle Craig is a world-renowned household rehabilitation clinic that filters liquor as well as medicine substance drug abuse and addiction facts.

Having information available about medicine therapy
options can aid an abuser get involved in a recovery program
as soon as feasible as soon as he or she is ready to stop using medicines or liquor.

Here is my web site – addiction treatment for you

Leave a Reply