14.06.2014 Views

vim 101 hacks

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Buyer: xiujuan lu (luxiujuan@gmail.com)<br />

Transaction ID: 85W16630AD8515549<br />

Vim <strong>101</strong> Hacks<br />

www.thegeekstuff.com<br />

Hack 62. Skip Loading Plugins Temporarily<br />

While opening a file, you can temporarily stop loading all plugins only during<br />

that particular file editing as shown below.<br />

$ <strong>vim</strong> --noplugin filename.txt<br />

Hack 63. Enter Restricted Mode in Vim<br />

You can enter restricted mode in Vim using one of the following methods.<br />

$ <strong>vim</strong> –Z filename<br />

(or)<br />

$ r<strong>vim</strong> filename<br />

From :help –Z<br />

Restricted mode (-Z): All commands that make use of an external shell are<br />

disabled. This includes suspending with CTRL-Z, ":sh", filtering, the system()<br />

function, backtick expansion, etc.<br />

98

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!