当前位置:网站首页>VIM backup history command
VIM backup history command
2022-06-23 15:27:00 【fqbqrr】
vim Self History commands There seems to be a problem , Our own Backup One copy .
fun! Lsks()
//" History begins .
let s:k=histnr("cmd")
endf
fun! Lsjs()
// The end of history . Historical commands in the file .
// It should be before opening the file , Before and after , History commands , Add it all to ` History commands .vim`.
let s:j=histnr("cmd")
if s:k==s:j
return
// There is no change , Go straight back to .
endif
let l=[]
//:call Qjzl(s:k,s:j,l)
:call Qjls(s:k,s:j,l)
call Glkh(l)
// Filter blank line .
// Take the historical content .
let s:ls=$XVIM."/ History commands .vim"
//echo l
call Jlrl(s:ls,l)
// Automatic addition . perhaps ` Delete history `.
endf
au VimEnter * :call Lsks()
au VimLeave * :call Lsjs()
// Written in vim After entering or exiting ,
Only need VimEnter and VimLeave when , Every time you call , It's done. .
边栏推荐
猜你喜欢
![[opencv450] salt and pepper noise demo](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[opencv450] salt and pepper noise demo

Half wave loss equal thickness and equal inclination interference

How can genetic testing help patients fight disease?

The "shoulder" of sales and service in the heavy truck industry, Linyi Guangshun deep ploughing product life cycle service

Summary of operating system underlying knowledge (interview)

Gartner最新报告:低代码应用开发平台在国内的发展

百万奖金等你来拿,首届中国元宇宙创新应用大赛联合创业黑马火热招募中!

Analysis of graphical level-1 programming problem of Electronic Society: cat and mouse

LEGO announces price increase, speculators are more excited

A transformer can only convert alternating current. How can I convert direct current?
随机推荐
他山之石 | 微信搜一搜中的智能问答技术
2021-04-15
重卡界销售和服务的“扛把子”,临沂广顺深耕产品全生命周期服务
30. 串联所有单词的子串
Important knowledge of golang: waitgroup parsing
2021-06-07
After nine years at the helm, the founding CEO of Allen Institute retired with honor! He predicted that Chinese AI would lead the world
32. Compose 优美的触摸动画
The work and development steps that must be done in the early stage of the development of the source code of the live broadcasting room
Important knowledge of golang: rwmutex read / write lock analysis
2021-05-08
狂奔的极兔,摔了一跤
2021-05-22
PHP指定字段大于100正序排,小于100随机排
[opencv450] salt and pepper noise demo
这届文娱人,将副业做成了主业
RF Analyzer Demo搭建
Volatile~ variables are not visible under multithreading
力扣解法汇总513-找树左下角的值
F5 application strategy status report in 2022: edge deployment and load security become the focus of attention in the Asia Pacific Region