aojo眼镜什么档次
Tagged with original-vim vimscript
7 questions
-1
votes
3
answers
178
views
Problem using the edit command in a function defined in vimrc
I am attempting to write a vim function that I would like to be loaded automatically when vim starts, thus I am putting it in my vimrc (but maybe that is wrong?). When called during normal editing, it ...
1
vote
1
answer
286
views
How to generate random string with required length in Vim?
I am using this code for console log
nmap cll yiwocll<Esc>p
I wanted to add some random string inside this console log, assume 10 characters symbols length.
How to achieve this?
1
vote
0
answers
68
views
Vim local statusline doesn't set up correctly upon open new window
I tried to write a small script to give the statusline distinguishable appearance on current and non-current window.
The local active and inactive statuslines are defined by the following code:
...
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 ...
2
votes
2
answers
132
views
Moving to special marks inside opfunc
I'm trying to write a opfunc which surrounds selected motion with two stars (bold in Markdown):
nnoremap <localleader>b :set opfunc=BoldIt<CR>g@
function! BoldIt(type, ...)
execute &...
1
vote
1
answer
2k
views
Why does ViM use VimScript? [closed]
As a person that is interested in the tools used to build useful software
Why does ViM need a built-in language such as VimScript ( VimL )?
Why It cannot be just C?
2
votes
2
answers
1k
views
How to make vim open two windows when opening a directory or file with netrw?
I want to achieve two effects about using the netrw plugin for vim.
EFFECT ONE:
I have a test directory.Here is its directory structure:
MINGW64 ~/test
$ ll
total 1
drwxr-xr-x 1 uooki2 197121 0 一月 ...