当前位置:网站首页>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. .
边栏推荐
- Gartner最新报告:低代码应用开发平台在国内的发展
- The idea and method of MySQL master-slave only synchronizing some libraries or tables
- [普通物理] 半波损失 等厚与等倾干涉
- mysql 系列:存储引擎
- idea查看.class文件 idea查看.class文件夹
- Important knowledge of golang: rwmutex read / write lock analysis
- golang 重要知识:定时器 timer
- Golang-- judge whether the strings are equal
- Résumé de la méthode de déduction de la force 513 - trouver la valeur du coin inférieur gauche de l'arbre
- The "shoulder" of sales and service in the heavy truck industry, Linyi Guangshun deep ploughing product life cycle service
猜你喜欢

After nine years at the helm, the founding CEO of Allen Institute retired with honor! He predicted that Chinese AI would lead the world

SQL injection vulnerability (principle)

Babbitt | metauniverse daily must read: meta, Microsoft and other technology giants set up the metauniverse Standards Forum. Huawei and Alibaba joined. NVIDIA executives said that they welcomed partic

《墨者学院——SQL手工注入漏洞测试(MySQL数据库)》

Moher College - manual SQL injection vulnerability test (MySQL database)

K8s-- deploy stand-alone MySQL and persist it
Redis缓存三大异常的处理方案梳理总结

乐高宣布涨价,炒家更嗨皮了

golang 重要知识:context 详解

golang 重要知识:定时器 timer
随机推荐
小米为何深陷芯片泥潭?
32. Compose 优美的触摸动画
MySQL高级语句一
golang 重要知识:sync.Once 讲解
狂奔的极兔,摔了一跤
Origin of sectigo (Comodo) Certificate
F5 application strategy status report in 2022: edge deployment and load security become the focus of attention in the Asia Pacific Region
golang 重要知识:waitgroup 解析
K8s-- deploy stand-alone MySQL and persist it
Sfod: passive domain adaptation and upgrade optimization, making the detection model easier to adapt to new data (attached with paper Download)
Jsr303 data verification
快速排序的简单理解
AXI_ Round_ Robin_ Arbiter design - aw and W channels
打印内存站信息
The team of China University of Mines developed an integrated multi-scale deep learning model for RNA methylation site prediction
30. concatenate substrings of all words
RF analyzer demo setup
Important knowledge of golang: sync Cond mechanism
Solution to the problem that MySQL cannot be started in xampp
golang 重要知识:context 详解