dcsimg

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"

chriswong

FYI, Ctrl+H is Replace in Windows Notepad…

Reply
hhemken

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.

Reply
wpkzz666

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!

Reply
spremolla

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 !!!!

LALO

Reply
bryanjrichard

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

Clearly, you need an xkcd refresher. ;-)

Reply
sotirchenas

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?

Reply
tonl

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

Reply
maurosanchezd

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.

Reply
richzendy

Vim it’s ok for me, exactly like this

Reply
troglodyte

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 ?

Reply
markdean

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…

Reply
kandagatla

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.

rgrds
kandagatla

Reply
bilash.apece

i am agree with hhemken

Reply
duncan

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

Reply
blacklight01

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?

Reply

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.

Reply

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?

Reply

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

Reply

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
(Allie)

Reply

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)

Reply

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

Reply

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.

Reply

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

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

Reply

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

Reply

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)

Reply

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

Reply

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.

Reply

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
of.

Reply

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

Reply

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.

Reply

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

Reply

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

Reply

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

Reply

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)

Reply

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

Reply

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/)

Reply

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

Reply

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

Reply

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.

Reply

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

Reply

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.

Reply

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.

Reply

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

Reply

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

Reply

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

Reply

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

Reply

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.

Reply

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.

Reply

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

Reply

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

Reply

In addition, many drug addicts have underlying mental diseases, raising the opportunity causes of drug addiction
fierce actions.

Reply

Physical reliance almost invariably results in straight-out medication for drug addiction; http://www.mutters.co.za, at a psychological and also psychological degree.

Reply

T5 fat loss calculator running (Dell)
Burners are focuseded on both men and women which wish to either lose fat or keep
it off.

Reply

We suggest the complete plan as it offers you the full
sources to get started on your weight fat loss diet on a
budget (musicbrainz.org)
journey.

Reply

I shed over 20kg way back from 100kg to 75kg on a low carb diet regimen and have actually always hovered around
76kg.

My homepage … fat loss formula workout [Melva]

Reply

fat loss workouts for the gym only problem
I am dealing with now is adjusting my diet with Task timings I function from 2pm- 11pm
afternnon shift.

Reply

The only thing that matters is that you pick one
modest strength and also maintain that rate throughout the whole
cardio session.

Look at my weblog fat loss workouts at home (Lachlan)

Reply

Each exercise ought to consist of 2-3 specific circuits, each duplicated a 2nd time,
for an overall of 4-6 performed circuits.

Stop by my weblog: fat loss diet macros; Maricela,

Reply

This is known as a caloric excess, and it is the one and only source of fat loss diet bodybuilding (Margery) gain.

Reply

Depriving to shed body fat loss workouts for beginners (http://www.nature.com/protocolexchange/labgroups/160543) is
not the solution; you must sustain your human engine with top quality meals sources as well as combos
at the correct time.

Reply

Visit my blog post :: fat loss diet bodybuilding [Leonardo]

Reply

Next off came Burn the fat loss diet on a budget (Rosita)
personal training, where numerous individuals did the program with me in person or long distance by phone or e-mail.

Reply

One of our guests just lately proposed the following website.

Reply

That will be the finish of this write-up. Here you?ll obtain some internet sites that we think you will appreciate, just click the links.

Reply

Then post, you’ll not just have a few new exercises to attempt, yet you’ll
have all the devices to create your very own– Roman style.

Also visit my homepage; fat loss workouts for men –
Della -

Reply

Several nutrients including vitamins A, D, E, and K are fat-soluble, implying that
the physical body can not absorb them without fat loss workouts for men [http://www.69project.com/Forum/index.php?topic=990066.0].

Reply

Breast cells comprises the mammary gland (one’s ‘endowment’) bordered by
fat loss workouts at home (Emory).

Reply

When you don’t have any fat loss pills amazon in your diet regimen its like you do
not have energy to burn calories,” Glassman states.

Reply

But, in and also of themselves, not a solitary point on that particular list really
causes fat loss diet for male (Guadalupe) to be lost.

Reply

The diet regimen in the fat loss diet for male regimen Handbook does not
use an on-line food selection generator, however is somewhat comparable.

Reply

I’ve blended some HIIT training classes twice a
week with some typical lifting as well as cardio.

Feel free to visit my web page: fat loss diet macros (http://www.buildinnovationstrategy.com/groups/just-how-alcoholic-beverages-influences-toughness-training-and-weight-loss/)

Reply

As your physical body executes all these functions,
it exhausts significantly much more energy also at
remainder, which brings about much more fat loss pills prescription loss!

Reply

Consequently, everyone’s regarded knowledge on weight fat loss calculator running is not consistently according to what science in fact shows.

Reply

Therefore, working out in the early morning burns fat loss pills walmart because fat is the only fuel available.

Reply

The ideal practice type, intensity, and also period fat loss workouts for men (Louann) weight management are still vague.

Reply

A New, increasingly reliable Burn the fat loss calculator bodybuilding (wloclawek.extrapolska.pl) Program has been totally updated for
2015, and also released in a never-seen-before online process.

Reply

So there’s 5 (6 really!) weight fat loss diet meal plan foods
you could begin planning into your regular meals from today!

Reply

Food supplements need to not be utilized as an alternative for
a varied and also well balanced diet regimen and a healthy
and balanced way of living.

Feel free to visit my web-site … fat loss (Christena)

Reply

I have osteo arthritis of knees, as well as would would like to do exercises maintaining that
in mind.

Here is my blog post fat loss diet for female bodybuilders (Vivien)

Reply

Brief duration sessions simply protect muscle cells much
better than long dragged out cardio sessions.

Here is my web-site fat loss diet for male

Reply

For Weeks 1-4, do cardio a minimum of five times per week, preferably
in the early morning.

my webpage – fat loss formula program – Melody -

Reply

Well body fat loss pills that really work (Van)
% is lean but great mass readings are visiting be wrong” because shedding WATER isn’t really losing MUSCULAR TISSUE FIBERS.

Reply

When I state cardio I am not talking about taking the stairs rather than the lift fat loss workouts at
home (Shelly) the office.

Reply

I would not advise any significant weight fat loss
workouts at home – Lorri
dieting at your age due to the fact that it can mess with your development.

Reply

There is no reason why you could not do a kind of cost-free fat loss
plateau (http://aventuries.com/?option=com_k2&view=itemlist&task=user&id=590008) Loss
4 Morons by yourself, without joining the program.

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>