vim 101 hacks
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Buyer: xiujuan lu (luxiujuan@gmail.com)<br />
Transaction ID: 85W16630AD8515549<br />
Vim <strong>101</strong> Hacks<br />
www.thegeekstuff.com<br />
Hack 76. Encrypt File in Vim<br />
Save and encrypt the current file:<br />
:X<br />
Enter encryption key: ********<br />
Enter same key again: ********<br />
Once you’ve encrypted a file using :X, the next time you open that file, Vim<br />
will prompt for the encryption key.<br />
Hack 77. Save and Resume Vim Sessions<br />
When you are editing files in a Vim session, if you have to perform some other<br />
task you may have to close all files and Vim sessions. However after a while<br />
you may want to come back and continue the Vim sessions exactly where you<br />
left off earlier.<br />
In that case, you should save the Vim sessions, which will save your current<br />
settings such as:<br />
o<br />
o<br />
o<br />
o<br />
o<br />
Buffers<br />
Window size<br />
Custom Options<br />
Folds<br />
Current directory<br />
114