rstudio / rstudio

RStudio is an integrated development environment (IDE) for R
https://posit.co/products/open-source/rstudio/
Other
4.69k stars 1.1k forks source link

repeating change with vim keybindings #4583

Open gpli opened 5 years ago

gpli commented 5 years ago

System details

RStudio Edition : Desktop
RStudio Version : 1.2.1330
OS Version      : MacOS 10.14.3
R Version       : 3.5.3

Steps to reproduce the problem

  1. Set keybindings to Vim
  2. Edit a existing line using some auto-completion, return to normal mode
  3. Move to another line, press . to repeat last change

Describe the problem in detail

rstudio_vim_repeating

Before editing

a <- "1"
b <- as.numeric(a) * 10
c <- as.numeric(a) * 100

After editing

a <- "1"
b <- paste0(a, "0")
c <- pas0paste0()a, ""0

Expected

a <- "1"
b <- paste0(a, "0")
c <- paste0(a, "0")

Describe the behavior you expected

The same happens for vim macro. Maybe vim recording should consider more about auto-complete behaviors.

mskar commented 4 years ago

This is still a problem and a major limitation of vim mode in RStudio. Please see my system details below.

RStudio Edition : Desktop
RStudio Version : 1.3.1073
OS Version      :  MacOS Catalina 10.15.6
R Version       : 4.0.2
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

mskar commented 3 years ago

This issue is still relevant in RStudio Version 1.4.1103.