Linked Questions

2
votes
1answer
2k views

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 ...
0
votes
0answers
18 views

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?
82
votes
2answers
162k views

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?
41
votes
6answers
50k views

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?
14
votes
2answers
4k views

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 ...
12
votes
3answers
4k views

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 ...
4
votes
1answer
20k views

What are the .viminfo and .netrwhist files?

I was wondering what's the purpose of .viminfo and .netrwhist files?
8
votes
2answers
1k views

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> ...
3
votes
1answer
3k views

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}) ...
8
votes
2answers
226 views

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. ...
0
votes
1answer
2k views

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>...
5
votes
1answer
126 views

What does “tag” mean in the context of Vim's help window?

I ran :help index to find out about key mappings and it's great, but there's one thing I don't get. At the top it says... This file contains a list of all commands for each mode, with a tag and a ...
1
vote
2answers
338 views

vimscript: get result of cmdline-completion Ctrl-a

Need a function that, returns a string, which is result of cmdline-completion Ctrl-a, i.e., a list of words seperated by space. given an input string of partial ex-command. For example, given :h ...
-1
votes
2answers
357 views

Good Ways to Get Over that Vim Learning Curve? [closed]

I've done vimtutor several times when I get bored. I love the idea of Vim. It's keyboard shortcuts have a lot of relevancy to me and I just feel like there's a lot available to me, that wasn't ...
0
votes
1answer
574 views

What is the difference between normal mode and command mode in vim?

I know that normal mode and command mode is same thing but tells different. I found this in http://vim.wikia.com/wiki/Mapping_keys_in_Vim_-Tutorial(Part_1)

15 30 50 per page