Linked Questions

134
votes
2answers
243k 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?
59
votes
6answers
92k 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?
19
votes
5answers
9k 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 ...
17
votes
2answers
6k 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 ...
15
votes
1answer
35k views

What are the .viminfo and .netrwhist files?

I was wondering what's the purpose of .viminfo and .netrwhist files?
9
votes
2answers
2k 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> ...
8
votes
2answers
269 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. ...
7
votes
1answer
5k 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}) ...
6
votes
2answers
1k views

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 ...
6
votes
1answer
174 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 ...
3
votes
2answers
115 views

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

What is the difference between ^ and _ for cursor movement

They both seem to move the cursor to the first non-blank character of the current line and I wonder what was the reason for duplicating this functionality
2
votes
1answer
285 views

How to change where Vim will read .vimrc file?

I'm re-learning Vim, and now I'm building my own ~/.vim/.vimrc file. Yes, it is store under the .vim/ folder, which is created by MacOSX after I updated to Big Sur. What I want is simply this set ...
2
votes
1answer
58 views

:put at the end of the current line?

I like to take minutes for meetings using vim+Markdown(CommonMark) I like having something like this # Meeting Name - 2018-02-25 The way I accomplish this is i# Meeting Name - ^[:put =strftime('%...

15 30 50 per page