8000 `ci)` does not work when cursor is not within parenthesis · Issue #3046 · VsVim/VsVim · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
ci) does not work when cursor is not within parenthesis #3046
Open
@lawrence-laz

Description

@lawrence-laz

Describe the bug
ci) works if cursor is within a pair of parenthesis, but it does nothing if cursor is before parenthesis. In vim/nvim the nearest next parenthesis are handled instead, which is a very useful jump mechanism.

To Reproduce
Steps to reproduce the behavior:

  1. Write a function:
public void MyFunction(string foo) { }
  1. Put cursor on void:
public void MyFunction(string foo) { }
//       ^
  1. Type ci)
  2. Nothing happens

Expected behavior
string foo is deleted, mode changed to insert and cursor is between empty parenthesis:

public void MyFunction() { }
//                     ^

Environment (please complete the following information):

  • Visual Studio version: 17.4.1
  • VsVim version: 2.10.0.6
  • Programming Language: c#
  • Check(Type 'x') any that are installed:
    • ReSharper
    • Visual Assist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0