[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the ~ functionality of vi

From: Thorsten Bonow
Subject: Re: How to get the ~ functionality of vi
Date: Fri, 27 May 2016 13:33:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

>>>>> Cecil Westerhof <address@hidden> writes:

> Cecil Westerhof <address@hidden> writes:

> In vi you can use ~ to flip the case of a character. Does Emacs has something
> like that?


"viper", the vi emulation already included has `viper-toggle-case'.

So what about this?

(require 'viper); loading viper but not enabling it
(global-set-key "\C-cf" 'viper-toggle-case)

If you don't mind the overhead of loading the whole package for just one
function. But you don't have to reinvent the wheel and use a maintained defun.


Sent from my GNU Emacs running on GNU/Linux

reply via email to

[Prev in Thread] Current Thread [Next in Thread]