Questions tagged [history-of]

Questions about the history of Vi. DO NOT use this for command history.

Filter by
Sorted by
Tagged with
15
votes
4answers
2k views

What is the rationale for \r and \n meaning different things in s command?

We all know that, when searching, \n is newline and \r is carriage return (^M), but when replacing \r is newline while \n is a null byte (^@). What is the origin of this asymmetry? Given that this ...
44
votes
1answer
10k views

What is the select mode and when is it relevant to use it?

I accidentally pressed gh in normal mode and started a selection, so I looked up the doc and found :h Select-mode. From what I understand the select mode is close to the visual mode excepted that: ...
15
votes
3answers
878 views

What is the use of the black hole register ("_)?

I recently read about the black hole register "_ which is a write-only register. Vim documentation describes it this way: Black hole register "_ When writing to this register, nothing ...
4
votes
2answers
1k views

Why doesn't vimscript provide a random number generator?

I recently needed to generate a random number in vim and this question gave me all the solutions I needed. But I still have a question: Why is there no built-in function to generate a random number? ...
57
votes
3answers
16k views

Why does vim use hjkl for cursor keys?

Why use the keys hjkl on the same line instead of keys in a triangle like wasd for moving on video games? Why not something equivalent with right hand, like ijkl or pl;'?
4
votes
1answer
189 views

Traditional Vi and its regular expressions

I'd just want to get confirmation on (and maybe some background to) the way that Bill Joy's vi, sometimes found as traditional-vi on some BSD systems, handles regular expressions. It seems as if most ...