Linked Questions

3 votes
1 answer

What does <C-@> do? [duplicate]

I have seen CTRL@ being used in Insert Mode in a VimGolf challenge. In this scenario it inserts the text that was last typed and switches to Normal Mode. However, I wonder if this is the real purpose ...
Cristian Lupascu's user avatar
1 vote
1 answer

How to search for documentation on an option which is also a vim command argument? [duplicate]

When a Vim option is also a Vim command argument, :help opens the command argument help page. How can I direct :help to get the option page? For example, trying :help verbose opens the -V verbose ...
ysap's user avatar
  • 111
0 votes
0 answers

Vim what the :c command do? [duplicate]

On vim I enter for a mistake the :c And I can exit only with ctrl+c What the command :c do?
elbarna's user avatar
  • 157
0 votes
0 answers

":h command" doesn't work with some commads. How to deal with such cases? [duplicate]

When it comes to some commands, getting help is hard. For example, the display command. I know I can use, for example, set display=truncate or set display=lastline, but when I use :h display to read ...
james's user avatar
  • 129
170 votes
2 answers

How can I use Vim as a hex editor? [duplicate]

Is there a neat way I can view binary files as hex in Vim, and save it back to binary from the hex?
nos's user avatar
  • 1,853
81 votes
11 answers

How can I change the font size in gVim?

Is there a way to change the size of the font in gVim, using native commands? And if not, what script can be used to do it quickly?
glS's user avatar
  • 3,779
25 votes
5 answers

How to find out what a key is mapped to?

I know that running :map commands without arguments should give me a list of user-defined mappings, but, for example, when I press Ctrl-W Ctrl-I something happens, yet I have no idea what function was ...
Mad Wombat's user avatar
22 votes
2 answers

What does <Plug> do in vim?

I came across <Plug> in this command of easy-motion nmap <Leader>w <Plug>(easymotion-overwin-w) I tried to search for the definition of but no luck. What does it mean? Does it have ...
John Winston's user avatar
18 votes
2 answers

How to tell Vim not to try to unzip a file?

I'm trying to open an .xlsx file in Vim, but got an error saying: ***error*** (zip#Browse) unzip not available on your system I know it's a binary file, but I want to do some checksums and probably ...
Roflo's user avatar
  • 757
24 votes
1 answer

What are the .viminfo and .netrwhist files?

I was wondering what's the purpose of .viminfo and .netrwhist files?
Luis Veliz's user avatar
9 votes
1 answer

Understanding the line() built-in function

I'm reading vim help about the line function and here is an example I found: :let failed = append(line('$'), "# THE END") In my vimrc I also found line('.'). The documentation says: line( {expr}) ...
user3663882's user avatar
10 votes
2 answers

Manipulate chars with their ascii code

Let say I have let l:letter = 'A' is there a function that takes l:letter ascii code and transforms it to 'B'? I mean something like let l:next_letter = l:letter + 1 I know there's <Ctrl-A> ...
Jcao02's user avatar
  • 412
7 votes
2 answers

On string concatenation, what's the difference between . and .. (single dot and double dot)?

From the :execute help (:h :exe): *:exe* *:execute* :exe[cute] {expr1} .. Executes the string that results from the evaluation of {expr1} as an Ex command. ...
André Willik Valenti's user avatar
2 votes
1 answer

What is the vimscript version of sprintf?

I'm trying to create a dynamic line to execute, currently I have execute a:modes[i] .'noremap <silent> <buffer> '. l:key .' <Esc>:call HardModeEcho(g:HardMode_hardmodeMsg)<CR>...
Evan Carroll's user avatar
  • 1,206
8 votes
2 answers

What does [count]% do?

I would expect [count]% to jump back and forth between matching braces count times or something like that, but instead, typing that command seems to move the cursor to a random place in the buffer. ...
Daniel's user avatar
  • 183

15 30 50 per page