vim viminfo
来源:互联网 发布:cisco2960g 端口闪黄灯 编辑:程序博客网 时间:2024/05/16 06:04
The viminfo file is designed to store information on marks as well as the following:
Command-line history
Search-string history
Input-line history
Registers
Marks
Buffer list
Global variables
1 The trick is that you have to enable it ,This is done through the following command:
:save viminfo=string
The string specifies what to save.
2 First ,the 'option is used to specify how many files for which you save local marks(a-Z).Pick a nice even number for
this option(1000,for instance).Your viminfo option now looks like this:
:save viminfo='1000
3 The f option controls whether global marks (A-Z 0-9)are stored ,If this option is 0,none are stored ,If it is 1 or you do not specify an
f option.marks are stored ,You want this feature,so now you have this:
:set viminfo='1000,f1
4 The r option tells vim about removeable media,Marks for files on removeable media are not stroed ,The idea here is that jump to mark is a
difficult command to execute if the file is on a flopy disk that you have left in your top desk drawer at home ,You can specify the r option multiple times;
therefore,if you are on Micorsoft Windows system ,you can tell vim that floppy disks A and B are removable with the r option:
:set viminfo='1000,f1,rA:,rB:
On UNIX ,you can use following command:
set viminfo='1000,f1,r/mnt/floppy
5 The \" option controls how many lines are saved for each of registers.By default,all the lines are saved ,If 0,nothing is saved .
You like the default,so you will not be adding a \" specification to the viminfo line.
6 The : option contrals the number of lines of : history to save .100 is enough for us:
:set viminfo='1000,f1,r/mnt/floppy,:100,
7 The / option defines the size of the search history.Again 100 is plenty:
:set viminfo='1000,f1,r/mnt/floppy,:100,/100
8 Generally ,when Vim starts,if you have the 'hlsearch' option set ,the editor high-lights the previous search string (left over from
the previous editing sessions).To turn off this featurn ,put the h flag in your 'viminfo' option list.(Or you can just start Vim,see the
- vim viminfo
- [vim] .viminfo和.vimrc
- vim VI E138: Can't write viminfo file /*/.viminfo!
- vim 环境设定与记录: ~/.vimrc, ~/.viminfo
- vim使用(三):.viminfo和.vimrc
- [ vim ] vim使用进阶: 使用会话和viminfo!
- 使用VIM开发软件项目 - (2) 会话和viminfo
- vim时”E575: viminfo: Illegal starting char in line。。。。。。
- Linux-Vim错误Can’t write viminfo file
- .viminfo权限引起的vim无法记住上次编辑位置
- vim记不住上次编辑位置.viminfo 权限不够
- vim E576: viminfo: Missing '>' in line: 19^I0^
- ~/.viminfo权限引起的vim无法记住上次编辑的位置(附vim配置文件)
- viminfo详解
- .viminfo介绍
- Can't write viminfo file /root/.viminfo!
- 转:viminfo了解
- viminfo文件了解
- 如何成为有钱人?
- 在邮件标头中找到无效的字符:“周”
- windows下Google Protocol Buffer 编译安装教程
- typedef的用法总结
- android百度地图api 实现离线地图需要注意的一个问题
- vim viminfo
- linux系统引导流程学习1
- HDU 4609 3-idiots (FFT)
- 我收藏的链接
- C++ Base64加密解密
- Linux中gdb 查看core堆栈信息
- opencv提取ROI区域
- 溢出和越界的区别
- hdu1412