《记住乡愁》 第四季 20180322 第五十六集 广府镇——顺势而为
百度 不断提神增力,进一步强化使命担当。
Questions about the history of Vi. DO NOT use this for command history.
30 questions
1
vote
1
answer
3k
views
Why did vi use hjkl instead of jikl?
I found this convincing history on StackOverlow:
Vim uses hjkl because vi did.
Vi used hjkl because its creator's keyboard didn't have physical cursor keys. Instead, the arrows were printed on the ...
4
votes
1
answer
195
views
When was getcharstr() introduced? And how could I have found the answer my self from :help?
Yesterday I made a change to my plugin which essentially consisted in using getcharstr() instead of nr2char(getchar()).
That was Vim 8.2.4106.
Today at work I updated my plugin and got an error, ...
1
vote
2
answers
175
views
How to find patch release date
I want to use a feature included in Patch 7.4.1154.
From vim-history, I see releases:
v8.0 - 12 September, 2016
v7.4 - 10 August, 2013
There's a few years between them.
How do I find the release ...
1
vote
1
answer
43
views
Is there a reason why the short for `'modifiable'` is `'ma'` and not `'mo'`?
Is there a reason why the short for 'modifiable' is 'ma' and not 'mo'?
I've entered :h 'mo' and I got E149, so there doesn't seem to be any clash...
1
vote
1
answer
106
views
Why does vi sometimes use harder-to-reach keys?
For example:
[[ and ]] instead of [ and ], and
G instead of g.
Some ideas:
Vim used these keys first, and they were backported to Vi (though G seems like an essential command for a code editor)
Vi ...
14
votes
2
answers
11k
views
Advice to add `set nocompatible` as first line of .vimrc
I recall (perhaps in the early 2000's) having set nocompatible as the first line of my vimrc and most Vim guides and tutorials recommending that practice.
Some examples I could easily find online:
...
3
votes
1
answer
2k
views
Why is `vmap` for both Visual *and* Select mode?
Vim has both Visual and Select modes. Select mode is similar to Visual mode in some senses, but different in that when a printable character is typed, Vim will replace the selection with that ...
15
votes
1
answer
2k
views
Vi and Vim default to split left and split above. What is the history and motivation behind this?
When a window is split, given that Vi/Vim splits are not stored in a tree structure, the "direction of the split" is basically "the window in which the cursor is placed after the ...
4
votes
1
answer
444
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 ...
15
votes
1
answer
2k
views
Why is it called a "vimrc" file?
Where did the name vimrc come from? Is the rc part an acronym? Are there historical reasons for picking this name? Where did the practice of using rc for configuration files first come from?
For what ...
5
votes
1
answer
153
views
Why is it okay to have a space in a `let` statement?
In my ~/.vimrc if I write set tabstop = 2, it will be a syntax error:
set tabstop = 2 " E521: Number required after =: tabstop =
set tabstop=2 " no errors
But I can write let @/ = ""
let @/ = "" " ...
11
votes
1
answer
488
views
What are the advantages of using colon for commands instead of semicolon?
Vi very successfully minimises finger travel and speed with command mode.
Swapping ; and : seems to save a lot of extra shift keystrokes for commands which are used more freqently than repititions of ...
18
votes
4
answers
3k
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 ...
72
votes
3
answers
28k
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;'?
-2
votes
1
answer
593
views
Does Vim have a marketing symbol? [closed]
Since Vim is one of the most popular editors maybe it does not need marketing, but does it have a marketing symbol, like the Linux Penguin?