无需ROOT 2招干掉Android里无法卸载的流氓APP
百度 文章称,我们对小行星还了解不多,这就是为什么NASA向贝努发射OSIRIS-REx探测器,这项任务的目的是在2023年取回这颗小行星的样本。
Questions specific to Vi IMproved written by Bram Moolenar et al. Use this tag for features not found in other Vi-like editors or for comparison of features.
80 questions
35
votes
5
answers
26k
views
Biggest differences between Vim and vi
I tried vi instead of Vim, and I didn't notice much difference. The biggest thing I noticed was how vi didn't say -- INSERT -- when I went into insertion mode (and other minor interface differences).
...
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:
...
10
votes
2
answers
20k
views
Is there a way in Vim to get standard path like Neovim's stdpath() function?
In Neovim, we can get default standard path via the stdpath() function. I wonder if there is any way to do that in Vim.
Below is the help doc about stdpath() in Neovim:
stdpath({what}) ...
6
votes
2
answers
4k
views
How does VIM know to NOT interpret this .html file as html?
I've been working on an SGML/XML/HTML parser, and part of proof testing it is running through every last .html and .xml file on my system.
One file I came across was this:
vim "/var/lib/snapd/...
5
votes
2
answers
243
views
Autocomplete ^X^F mode in another directory
I notice when I launch Vim, the ^X^F completion works in the current directory I launch Vim in, not where the current file is.
For example, if I use vim /path/to/foo/file.txt instead of vim file.txt, ...
5
votes
1
answer
498
views
Parsing winlayout() For Toggling Multiple Windows At Once
When working in vim, I like to have a toggle-able terminal window that I can bring with me from tab to tab. This works by tracking a buffer, and opening it in a new bot split (if it isn't visible), or ...
5
votes
1
answer
204
views
Constant-update Words Per Minute in Vim?
I'm interested (mostly just for fun) in seeing my typing speed while working in Vim. I saw this post but this requires starting and stopping a function. I would prefer this to be a constantly updating ...
4
votes
1
answer
420
views
What are the differences between built-in terminals in Neovim and Vim?
AFAIK the main difference is that Vim has this :terminal feature as optional. Could you mention another other important differences?
4
votes
1
answer
145
views
Create new Highlight for C pointers
I am trying to highlight only the name of pointer without '->' I tried with syn region but all the pointer and component are highlighted when i use match:
syn match PTR1 /\<[0-9A-Za-z_]\{1,\}[-][...
3
votes
3
answers
2k
views
How can I use different vim setting for different filename?
In most cases, I want to use the same setting. However, when I write the makefile file, I need to use tab instead of space, so I need to execute the :set noexpandtab for all the makefile file. In ...
3
votes
1
answer
270
views
How do I pick a line and write it to an external file?
I'm searching through a big text file and want to copy certain lines to another file - there is no specific pattern,
I need to visually inspect and copy those lines to an external file.
The command :...
3
votes
1
answer
6k
views
Why do I suddenly receive "Error detected while processing function <SNR>30_Highlight_Matching_Pair"?
I suddenly receive Error detected while processing function <SNR>30_Highlight_Matching_Pair when I want to write parantheses or when moving over parantheses. I can turn off these error message ...
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 ...
3
votes
1
answer
972
views
How to disable arrows in insert mode VIM
I want to disable my VIM-arrows in VIM, to get used to move the cursor using hjkl. I have tried a lot of different approaches found on this forum, however, i can't seem to disable the up and down ...
3
votes
1
answer
178
views
Macro "oend^[Ores^[" results in new line "end2es". How?
I don't usually have this much trouble debugging issues, but I'm starting to get stumped.
The line doesn't happen when typing the macro out (running it by hand). In fact, it's part of something I ...