Linked Questions

11
votes
1answer
2k views

How to change undo granularity in Vim?

At some point my Vim would undo an entire word when I hit u. [i]typing some words[C-c][u] Would result in typing some However, the undo granularity seems to have changed to deleting one letter at ...
6
votes
3answers
5k views

Why does .vimrc not set colorscheme properly?

So I have downloaded proton.vim (a colorscheme) and placed it inside my .vim/colors folder. In .vimrc, right at the bottom I have colorscheme proton but when Vim loads, it is set to the default ...
4
votes
1answer
4k views

Vim does not redraw screen and cursorlines remain drawn [closed]

I think this question of mine should be closed, since I do not have access to that computer anymore, so I can't check wheter the answers are effective solutions or not. I never had this problem, but ...
6
votes
1answer
913 views

How do I turn off the “feature” where the pound sign “#” is forced to 0 position?

When writing C/C++ code, vim defaults to forcing any pound sign ("#") to the zero position column. This is fine for for C/C++, but it is very annoying for shell scripting and perl scripting, since the ...
-2
votes
1answer
2k views

Vim Powerline is at top of window instead of bottom

I just installed Powerline for the first time and the Powerline bar shows up at the top of my Vim window instead of at the bottom. This is both on MacVim and on terminal Vim. Running OS X 10.10 ...
4
votes
1answer
424 views

Why does Vim say “Already at newest change” despite a full “changes” history list?

I seem to be unable to undo something in a file I saved, despite that the history of changes shows up with I press :changes. So the change history is known to vim but I cannot access it? I thought it ...
4
votes
1answer
951 views

How to make a newline without autoindent

Is there a command to make a newline without the autoindent? In other words, I want o and O to normally autoindent, but is there another command that will not autoindent for just the duration of that ...
9
votes
2answers
267 views

Is there a way to disable the foldexpr during autocomplete?

I've noticed that vim's fold method affects the efficiency of autocomplete, e.g. C-N is slow, and C-X L is hideously slow in medium sized files with relatively expensive foldexprs. I can't see the ...
6
votes
2answers
2k views

If I split the screen and open a Netrw dir listing in one window, Vim won't let me focus that window

I'm using Vim 7.4. I have a buffer open and I type :vsplit. Vim splits the screen and I see my buffer in both windows. That's great. Just what I want. And at this point ctrl+W W switches the focus ...
3
votes
1answer
1k views

Vim slows down with multiple buffers etc

I think noticing a slow redrawing and slow cursor movement on a fastest PC, is one of the popular frustrations with Vim. Here I am as a yet another instance. I have a fresh installation of VIM, with ...
3
votes
2answers
859 views

Stop Vim from deleting trailing whitespace [closed]

Vim automatically strips trailing whitespace from my files on save, which is extremely annoying in various contexts. How do I disable this behaviour? This question is not a duplicate of this one, ...
3
votes
1answer
592 views

How to go to the end of the line even in on a wrapped line?

I would like to map <End> and <Home> to go to the end or beginning of the current line (not the screen), even if the cursor is on a wrapped line: |1 First line. | |2 This is some ...
4
votes
2answers
548 views

Breaks line without leaving insert mode

With the textwidth option set the text written can be wrapped when we leave insert mode. If I type a line longer than my textwidth value then it will go on a new line. e.g. with set textwidth=5 and ...
7
votes
1answer
1k views

How can I change the highlighting of python class name?

How can I define a syntax to highlight the python class name MyClass in vim? class MyClass(object): ...... Vim has already highlighted the class name. However, it seemingly highlights it with ...
2
votes
1answer
1k views

nnoremap is not working with `[v`]

I'm trying to add a simple mapping to visually select recently pasted text. However, even though `[v`] is working correctly in a vim session, when I try to use it in my .vimrc file, it doesn't work. ...

15 30 50 per page
1
2
3 4 5
12