Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [edit]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
4 answers
772 views

How to clear a line in Vim

I want to achieve the same thing as S ESC without entering insert mode. Is there a way to do this? The best I've come up with is d$, but then you have to make sure you're at the front of a line which ...
user avatar
1 vote
1 answer
196 views

VIM error: WARNING: The file has been changed since reading it!!! How to view the changes VIM is complaining about?

Is there a quick way to see the differences VIM is describing?
user avatar
1 vote
2 answers
64 views

Open buffer without loading ftplugins

I have huge file and quite slow plugin (loaded by vim-plug) for corresponding filetype. I want following: Plugin is loaded by default Option to fast open this file without loading plugin. Something ...
user avatar
  • 223
0 votes
2 answers
49 views

Reloading buffers silently after an executed script changes the underlying files directly

I'm wrapping a command line script in a function and then in a command, which supplies this script with 2 arguments: nnoremap <leader>G :BxSedRi 'src/', 's/\<<C-r><C-w>\> ...
user avatar
  • 219
1 vote
2 answers
266 views

How to add several empty lines without entering insert mode? [duplicate]

Sometimes I want to add several empty lines for better visualization. Now I end up clicking o<Escape> multiple times. I would love to reduce number of clicks by using something like 7o instead, ...
user avatar
  • 1,073
1 vote
1 answer
452 views

W11: File has changed since editing started

When a file is changed (e.g. by checking out another git branch), and i reload it with :bufdo e, I get the message W11: Warning: File "foo.bar" has changed since editing started See ":...
user avatar
3 votes
1 answer
168 views

Why is oldfiles not listing last edited file

I use vim in the following way: I open vim. Then I press i to start writing. Then I save the buffer and give the file a name by issuing the command :w some-file-name.txt Then I quit vim by :x Then ...
user avatar
  • 31
0 votes
0 answers
262 views

vim: is possible to use mouse to move lines around

Question: Is possible to use mouse to move lines around? Requirements & Clarification I do know keyboard solutions. normal mode ddp d2j'}p dapggp alike. cmdline commands, :co. '<,'>m'a etc....
user avatar
  • 881
0 votes
1 answer
109 views

How to temporarily disable deleting and editing? [closed]

I sometimes use vim for brainstorming and writing first drafts and would like to be able to temporarily disable the ability to delete or edit what I write down. Is there anyway to do this natively in ...
user avatar
  • 139
3 votes
1 answer
168 views

What is the difference between :find and :edit

:find and :edit both edit files and appear to need the relative or absolute path provided if the file isn't in the current directory. What is the extra part that :find brings? What is 'path'? Help ...
user avatar
  • 133