Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Edit binary (and normal) plist files with vim' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Edit binary (and normal) plist files with vim
Authored by: gxw on Aug 10, '05 09:06:21PM

Cool hint!
I don't seem to have a .vimrc file on my system (running Tiger).
Will this still work if I add the script to the .viminfo file (located in home folder)?

PS
.viminfo gets a current timestamp when I run vi.



[ Reply to This | # ]
10.4: Edit binary (and normal) plist files with vim
Authored by: geohar on Aug 11, '05 02:36:48AM
I think ~/.viminfo stores recent files and line positions, that kind of thing. There is no ~/.vimrc file unless you create one, but just go ahead and create that file. The same file will be read whether you use fink's vim or the apple provided one.

[ Reply to This | # ]
10.4: Edit binary (and normal) plist files with vim
Authored by: moritzh on Aug 11, '05 09:08:09AM

geohar is right. Don't add it to ~/.viminfo as this only memorizes in which line you were for each file, what recent searched you have perfomed etc.

~/.vimrc (vim run commands) is the file vim scans each time you open vim to edit a file. There is none by default, but you can create one. Either just start with an empty file or you can copy the file /usr/share/vim/vim62/vimrc_example.vim and append the script from the hint at the bottom. That way, you also get some nice features that are not enabled by default.



[ Reply to This | # ]