Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert-mode backslash commands conflict with roxygen #12

Closed
chiphogg opened this issue Jul 20, 2012 · 3 comments
Closed

Insert-mode backslash commands conflict with roxygen #12

chiphogg opened this issue Jul 20, 2012 · 3 comments

Comments

@chiphogg
Copy link

I'm developing an R package using devtools and roxygen. This lets me auto-generate my .Rd files from specially formatted comments in the source .R files.

The problem is that certain backslash-letter combinations get interpreted as commands, when all I want to do is enter text. For example, \dquote activates \d, \link activates \l, etc. This is extremely frustrating: instead of
\dQuote{text}
I have to write
dQuote<esc>bi\<esc>ea{text}

Can the backslash commands be disabled for insert-mode? Or if this disrupts other people's workflow: can it at least be made optional?

Thanks :)

@jalvesaq
Copy link

On Fri, Jul 20, 2012 at 2:36 PM, Chip Hogg
reply@reply.github.com
wrote:

I'm developing an R package using
devtools and roxygen.
This lets me auto-generate my .Rd files from specially formatted
comments in the source .R files.

The problem is that certain backslash-letter combinations get
interpreted as commands, when all I want to do is enter text. For
example, \dquote activates \d, \link activates \l, etc.
This is extremely frustrating: instead of
\dQuote{text}
I have to write
`dQuotebiea{text}'

Can the backslash commands be disabled for insert-mode? Or if this
disrupts other people's workflow: can it at least be made optional?

That's a good idea. I can create an option to avoid mappings in Insert
mode. For specific conflicts, you can change the corresponding key
bindings. Please, see :h r-plugin-key-bindings

See also :h r-plugin-localleader

And read about the difference between Leader and LocalLeader.

Best regards,

Jakson

@jalvesaq
Copy link

jalvesaq commented Aug 2, 2012

Thanks for writing the code for vimrplugin_insert_mode_cmds!

@jalvesaq jalvesaq closed this as completed Aug 2, 2012
@chiphogg
Copy link
Author

chiphogg commented Aug 2, 2012

You're welcome :) It was actually my first time writing vimscript!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants