Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8832095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:27:18+00:00 2026-06-14T08:27:18+00:00

Sometimes while on the R console I accidentally type an unknown keyboard short cut

  • 0

Sometimes while on the R console I accidentally type an unknown keyboard short cut that changes the editing mode from emacs to vi.

Does anyone know what is usually this combination of keys to change from one to the other?

I am on a Fedora 16 machine

I checked the info on this question but using meta+v or meta+e doesn’t change anything.

UPDATE: The keystrokes shown the answer below work ONLY WITHIN R!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:27:19+00:00Added an answer on June 14, 2026 at 8:27 am

    R uses the GNU readline library for keyboard editing modes. I think the answer is therefore meta-ctrl-j, based on these links: http://cnswww.cns.cwru.edu/php/chet/readline/readline.html#SEC22 ,
    http://www.algorithm-forge.com/techblog/2009/09/shortcuts-in-r-under-unix-from-the-readline-library/ …

    (I’m running Ubuntu 10.04 under VMWare on MacOS 10.6, so I actually have to hit theAlt-fn-j key combination to switch modes. I’ve never done it by accident!)

    edit: as pointed out by the OP, Ctrl-e goes back from emacs to vi mode. http://unixhelp.ed.ac.uk/CGI/man-cgi?readline+3 does say

       "C-E"  emacs-editing-mode
    

    but this was pretty hard to dig up!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes while writing Java in Eclipse, I write code that generates warnings. A common
While website loading speed testing I found that website is sometimes loading very quickly
While looking through apps written with Ember.js, I noticed that sometimes arrays are defined
Sometimes when I open my app (either while resuming it after it was dormant
Sometimes it is useful to enumerate a list while it is changing. e.g. foreach
While browsing SO I sometimes see EOFD for example: ftp -vn <$hostname> <<EOFD Yes
While working with ssh I sometimes write to long string/commands eg. command -param 3
While working with NSDate, sometimes the time zones are different. But I don't mess
//$colspan is a number in a string (eg. $colspan=5 ). While parsing, sometimes it
While writing a simple library to parse a game's data files, I noticed that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.