Giter VIP home page Giter VIP logo

Comments (4)

jalvesaq avatar jalvesaq commented on July 22, 2024

The inability to map something like <M--> is not a Vim-R-plugin bug. It's a Vim/Terminal limitation, but I've just found the solution: http://vim.wikia.com/wiki/Get_Alt_key_to_work_in_terminal

If you want to press Alt+- to get _, then put in your vimrc:

set <M-->=�^[-
let vimrplugin_assign_map = "<M-->"

where ^[ is obtained by typing Ctrl+V Ctrl+[ in Insert mode. I'll add this information to the documentation.

from vim-r-plugin.

klmr avatar klmr commented on July 22, 2024

Pity – that doesn’t seem to work in my terminal (iTerm2 on OS X, nor locally nor via SSH on Linux) since Mac uses the Alt key for something else. This is a known problem but the solutions from that thread unfortunately don’t work, not even in conjunction with set macmeta. I’m probably doing something wrong but this is certainly not trivial.

However, unrelated to the alt-key issue, the following also doesn’t work:

let vimrplugin_assign_map = "<C-->"

from vim-r-plugin.

jalvesaq avatar jalvesaq commented on July 22, 2024

It seems that Ctrl can only be mapped to be followed by an alphabetic letter. Here, Ctrl-j does nothing useful and, thus, could be mapped to produce " <- ". It's not a mnemonic combination, though.

from vim-r-plugin.

klmr avatar klmr commented on July 22, 2024

Ah. That works. Thanks a lot.

from vim-r-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.