Mercurial > vim
comparison runtime/doc/usr_41.txt @ 570:27d1ec742f17
updated for version 7.0162
author | vimboss |
---|---|
date | Fri, 02 Dec 2005 00:44:04 +0000 |
parents | 9595cf1d80a7 |
children | 19106f131c87 |
comparison
equal
deleted
inserted
replaced
569:bdbdec22a225 | 570:27d1ec742f17 |
---|---|
1 *usr_41.txt* For Vim version 7.0aa. Last change: 2005 Jun 09 | 1 *usr_41.txt* For Vim version 7.0aa. Last change: 2005 Nov 30 |
2 | 2 |
3 VIM USER MANUAL - by Bram Moolenaar | 3 VIM USER MANUAL - by Bram Moolenaar |
4 | 4 |
5 Write a Vim script | 5 Write a Vim script |
6 | 6 |
2112 :let current_compiler = "mine" | 2112 :let current_compiler = "mine" |
2113 | 2113 |
2114 When you write a compiler file and put it in your personal runtime directory | 2114 When you write a compiler file and put it in your personal runtime directory |
2115 (e.g., ~/.vim/compiler for Unix), you set the "current_compiler" variable to | 2115 (e.g., ~/.vim/compiler for Unix), you set the "current_compiler" variable to |
2116 make the default file skip the settings. | 2116 make the default file skip the settings. |
2117 | 2117 *:CompilerSet* |
2118 The second mechanism is to use ":set" for ":compiler!" and ":setlocal" for | 2118 The second mechanism is to use ":set" for ":compiler!" and ":setlocal" for |
2119 ":compiler". Vim defines the ":CompilerSet" user command for this. However, | 2119 ":compiler". Vim defines the ":CompilerSet" user command for this. However, |
2120 older Vim versions don't, thus your plugin should define it then. This is an | 2120 older Vim versions don't, thus your plugin should define it then. This is an |
2121 example: > | 2121 example: > |
2122 | 2122 |
2137 | 2137 |
2138 ============================================================================== | 2138 ============================================================================== |
2139 *41.14* Writing a plugin that loads quickly *write-plugin-quickload* | 2139 *41.14* Writing a plugin that loads quickly *write-plugin-quickload* |
2140 | 2140 |
2141 A plugin may grow and become quite long. The startup delay may become | 2141 A plugin may grow and become quite long. The startup delay may become |
2142 noticable, while you hardly every use the plugin. Then it's time for a | 2142 noticeable, while you hardly every use the plugin. Then it's time for a |
2143 quickload plugin. | 2143 quickload plugin. |
2144 | 2144 |
2145 The basic idea is that the plugin is loaded twice. The first time user | 2145 The basic idea is that the plugin is loaded twice. The first time user |
2146 commands and mappings are defined that offer the functionality. The second | 2146 commands and mappings are defined that offer the functionality. The second |
2147 time the functions that implement the functionality are defined. | 2147 time the functions that implement the functionality are defined. |