Questions tagged [vscode]

Questions about VS Code, in particular the Vim and NeoVim extensions for VS Code

Filter by
Sorted by
Tagged with
0 votes
1 answer
22 views

How to repeat a command in command-line mode

I need to repeat the delete of matching lines in vscode-vim. Unfortunately the g has not been implemented yet, so I'm trying to figure out a way to repeat the same change in command-line mode using ...
user avatar
0 votes
1 answer
70 views

How to replace text with clipboard content in VsCode using VsCodeVim?

I am using vscode + vim. Consider a common scenario where I have to yank/delete some text from one place and replace it with some text anywhere else. But as I need to replace I have to first delete ...
user avatar
2 votes
1 answer
81 views

What does underscore cursor (caret?) and half cursor (caret?) mean?

I noticed different styles. But I cannot relate to what I typed, maybe because I have many missed key strokes.
user avatar
0 votes
1 answer
68 views

Why "vie" selects the entired file?

I'm trying to type "vie", "cie" and "die", and their behaviors are both operating on the entired file, i.e. "vie" selects the whole file text, "cie" ...
user avatar
0 votes
0 answers
143 views

Is there any way to list classes, fields, and functions, in C/CPP files using vim, ccls, and coc.nvim like vscode?

I'm using vim8.1 + coc.nvim + ccls to work on C/CPP projects since my vscode always crashes. Many of the features on vscode can be implemented by several plugins. However, I have not found a plugin to ...
user avatar
0 votes
0 answers
94 views

Macro not working as expected

I have a list such as follows apple banana cherry I am trying to write a macro that will get it in this format (I am writing a .yaml file) - "apple" - "banana" - "...
user avatar
3 votes
1 answer
249 views

Can macros be edited? [duplicate]

I want to end up in insert mode after a macro. Is there a way to do that? A real life example: Given "foo", I'm wanting to convert it into "$123" where the number is something I ...
user avatar
  • 43
0 votes
1 answer
51 views

Bind :w to ASCII bell?

I'm using the Visual Studio Code Vim plugin to write my master's thesis. VS Code has an 'autosave' setting, which I have enabled, which means I don't need to use :w to save my files. However, I can't ...
user avatar
  • 101
0 votes
1 answer
177 views

Vim Formatter vs VsCode Formatter Problem with GIT

I am using Vim (neovim) for the past couple of weeks now. I am facing one problem with the way vim formats the code. My other team members uses vscode which formats JS file on Save something like this:...
user avatar
0 votes
1 answer
92 views

What is a quick and efficient way to cut and paste text with Vim?

I'm a new Vim user (using the Vim extension in VSCode), and while it's faster at some operations, I'm having a lot of trouble finding an easy way to cut text (copy and delete it), then paste it at ...
user avatar
0 votes
0 answers
360 views

VSCode Vim -- don't want escape to enter normal mode if I'm exiting tooltip or Intellisense

I'm new to VIM and I'm loving it. I'm learning slowly but surely. I've passed the point where there's enough benefit and not too much hassle. I'm using the VS code integration. I'm learning VIM (...
user avatar
  • 101
0 votes
0 answers
38 views

How do you disable automatically copying text when pasting over it in visual mode in VS Code? [duplicate]

Like the title says, if I have yanked some text, then select what I want to replace in visual mode, press p to paste, I want the original text still available to paste in other locations. I never ...
user avatar
  • 101
2 votes
0 answers
100 views

How to make vim mode in vs code work with other languages?

I use English(US) and Russian layouts on my laptop. I wonder, is there a way to configure the vim extension in vs code so that it works normally with other languages? I want all commands and mode ...
user avatar
0 votes
3 answers
257 views

How to copy the selection to clipboard without the indentation that is relevant just in the full file, not in the selection?

With other words: How to copy selection without its root-level indentation? Example: How to copy this: a b c d instead of: a b c d I am using Neovim inside VS Code ...
user avatar
0 votes
1 answer
37 views

What's the fastest way to go about defining functions in Python?

def counter(num): I always get stuck inside of the parenthesis and find myself pressing ESC, going back to Normal mode, then pressing A to append the colon to the end of the line. Is there a faster ...
user avatar
  • 1
1 vote
0 answers
194 views

Extent and limitations of Vim extension for VS Code

VS Code is a very popular these days and it has a Vim emulator which seems to have a fairly good reputation. See: Vim extension page at VS Code marketplace GitHub source for the above extension ...
user avatar
  • 26.3k
1 vote
1 answer
94 views

How to add a certain word before the names of methods in Javascript?

I am working with react. First I had a component with state I created methods and all that. Now I want to convert it into stateless component. I have add the word function before each method name. ...
user avatar
2 votes
1 answer
704 views

How can I record a macro across multiple files

I have two code files open and I'm trying to write a macro for moving code from one file to the other. I start recording the macro in file A. After I enter all of the commands I need in file A, I ...
user avatar
  • 121