vim Questions

5

Solved

I recently installed vim-go using pathogen, but the autocompletion feature is not working. If I am using it only shows commands I've already used. My .vimrc has filetype plugin on " Enable autoc...
Minton asked 7/6, 2014 at 19:38

3

Solved

Currently if I have a word like this bool t = someobject.someMethod() ; If I want to delete someobject.someMethod() I do a diw on someobject and then diw on someMethod and then use the delet...
vim
Skippy asked 18/11, 2014 at 2:57

8

Solved

I'm runing nvim through wsl2 on ubuntu. However if I use the windows terminal nvim or vim will not fill the whole terminal How can I get rid of those black borders? It works just fine if I u...
Eolanda asked 25/6, 2020 at 15:3

10

In vim, the default indentation for JSON is: { "employees": [ { "firstName":"John" , "lastName":"Doe" }, { "firstName":"Anna" , "lastName":"Smith" }, { "firstName":"Peter" , "lastName":"Jone...
Brandibrandice asked 18/5, 2013 at 4:56

3

Solved

Essentially I would like for my headings to look like this: How could I accomplish this in markdown syntax? I prefer sublime text but would be happy if I can make this happen in Sublime Text 3, ...
Intine asked 7/4, 2019 at 14:10

5

Solved

Is there a way to make NeoVim as default text/code editor (without any bad side effects) ?Trust me, I looked to lots of StackOverflow question/answers and tried a few things but nothing worked for ...
Omega asked 21/2, 2021 at 2:47

4

Solved

I am wondering about a improvement for vim that I can jump back for where I was the last time I stopped to move around for like 3 seconds. Then I can scroll around and have a kick shortcut to jump ...
Waspish asked 28/11, 2014 at 17:58

7

Solved

I have a Vim autocmd that removes trailing whitespace in files before write. I want this almost 100% of the time, but there are a few filetypes that I'd like it disabled. Conventional wisdom is to ...
Matthia asked 27/6, 2011 at 17:45

11

Solved

I tried to map <Alt+D> to <Ctrl+D> by adding the below line to .vimrc, but it doesn't work. I checked the .vimrc is loaded by Vim. map <Alt-D> <C-D> Is there any error in th...
vim
Calumniate asked 21/9, 2011 at 14:0

6

Solved

Usually I use ea to append something to a word; however, this doesn't work if the cursor is already in the last position of the word. ea will cause the cursor to move to the end of the next word....
vim
Fanatical asked 19/9, 2012 at 4:0

8

I've trouble setting up Vim (7.1.xxx) for editing Python files (*.py). Indenting seems to be broken (optimal 4 spaces). I've followed some tutorials I found via Google. Still no effect :/ Please h...
Urquhart asked 15/9, 2008 at 17:48

10

I used to know this keyboard shortcut which makes you move around Vim tabs in the terminal, similar to Ctrl+tab in a browser. I've been looking all over the Internet and I can't find it anymore. A...
Oxyacetylene asked 22/9, 2012 at 18:52

4

Solved

I often accidentally press Enter while typing in insert mode. To undo the accidental new line, I typically press Backspace several times, first to remove all the automatic indentation, and then, fi...
Nestor asked 12/2, 2013 at 8:49

21

Solved

How can I close all buffers in Vim except the one I am currently editing?
vim
Incunabulum asked 28/12, 2010 at 10:14

16

Solved

Assuming the current buffer is a file open for edit, so :e does not display E32: No file name. I would like to yank one or all of: The file name exactly as show on the status line, e.g. ~\myfil...
Luganda asked 27/5, 2009 at 16:56

10

Solved

When I quit VIM and open the same file again, I am positioned at the start of the file. How can I preserve the last cursor position?
vim
Islean asked 25/10, 2011 at 18:50

5

Solved

I'm looking for a way to make Vim have the ability to open a file by fuzzy-searching its name. Basically, I want to be able to define a project once, and then have a shortcut which will give me a ...
Mollee asked 3/3, 2010 at 15:4

7

At first, I use the set foldmethod=marker, and move the cursor to the { of one function, use the zf% to fold current function. But there are a lot of functions in this file. How can I fold all func...
Abrogate asked 30/12, 2010 at 2:33

3

Solved

I am sure this has been answered, but the query is a bit too complex for google. In short, I am trying to delete many deprecated methods from some code. So I am skimming the file and when I see a ...
vim
Porphyria asked 9/8, 2012 at 11:56

5

Solved

Say I have the following python array literal: def f(): arr = [ 1, 2, 3 ] I want to delete everything in the brackets so that it becomes this: def f(): arr = [] How can I do that wi...
Mathilda asked 24/10, 2016 at 0:7

6

Solved

I'm absolutely new in C and Vim (now learning), started from Python, but now turned to C for educational reasons, along with which I had to learn the Vim (the point is, it wasn't my choice). The sy...
Distraught asked 24/1, 2022 at 18:17

8

Solved

I am using NERDTree on vim and usually open files with i Is there an easy way to switch between different panes? Currently I use CTRL+W+W to move from one pane to another.
Nominal asked 19/5, 2011 at 3:3

8

I'm trying to come up with something that will delete all text to end of line from a given character onwards. E.g. in the example below I want to keep only the IP address: 192.168.2.121/32 -m co...
vim
Stubbed asked 18/5, 2016 at 8:6

4

In vim, how might a person paste styled text from the system clipboard rather than the plain-text? For example, copying from a web browser and pasting in to a word processor typically results in s...
Brunabrunch asked 19/3, 2012 at 21:0

13

Solved

My arrow keys don't work in vi in insert mode at home, they just each insert a newline and a capital letter, like 'A'. Is there a way to fix that?
Bootleg asked 1/5, 2009 at 19:55

© 2022 - 2024 — McMap. All rights reserved.