@@ -32,7 +32,7 @@ The directories listed above are Vim's defaults but you're free to change the
32
32
Note that | vimrc | scripts are not reloaded because that seems to cause more
33
33
trouble than it's worth...
34
34
35
- ==============================================================================
35
+ ===============================================================================
36
36
*reload-install-first-use*
37
37
Install & first use ~
38
38
@@ -49,9 +49,8 @@ all Vim scripts that it knows how to. If you like it this way then you don't
49
49
need to configure anything! However if you don't like the automatic reloading
50
50
then you'll need the following:
51
51
52
- ------------------------------------------------------------------------------
53
- *g:reload_on_write-option*
54
- The 'g:reload_on_write' option ~
52
+ -------------------------------------------------------------------------------
53
+ The *g:reload_on_write* option
55
54
56
55
If you don't like automatic reloading because it slows Vim down or causes
57
56
problems you can add the following line to your | vimrc | script:
@@ -61,11 +60,10 @@ problems you can add the following line to your |vimrc| script:
61
60
This disables automatic reloading which means you'll have to reload scripts
62
61
using the command discussed below.
63
62
64
- ------------------------------------------------------------------------------
65
- *:reloadscript-command*
66
- The ':ReloadScript' command ~
63
+ -------------------------------------------------------------------------------
64
+ The *:ReloadScript* command
67
65
68
- You can execute the ' :ReloadScript' command to reload the Vim script you're
66
+ You can execute the | :ReloadScript | command to reload the Vim script you're
69
67
editing. If you provide a script name as argument to the command then that
70
68
script will be reloaded instead, e.g.:
71
69
>
@@ -75,15 +73,15 @@ If after executing this command you see Vim errors such as "Function already
75
73
exists" (| E122 | ) or "Command already exists" (| E174 | ) then you'll need to change
76
74
your Vim script(s) slightly to enable reloading, see below.
77
75
78
- ==============================================================================
76
+ ===============================================================================
79
77
*things-that-prevent-reloading*
80
78
Things that prevent reloading ~
81
79
82
80
If you want your Vim plug-ins and/or other scripts to be automatically
83
81
reloaded they'll have to be written a certain way, though you can consider the
84
82
following points good practice for Vim script writing anyway:
85
83
86
- ------------------------------------------------------------------------------
84
+ -------------------------------------------------------------------------------
87
85
Use a bang in command and function definitions! ~
88
86
89
87
Function and command definitions using Vim's | :command | and | :function | built-ins
@@ -100,7 +98,7 @@ complain that the command or function already exists:
100
98
:function! MyFun()
101
99
:endfunction
102
100
103
- ------------------------------------------------------------------------------
101
+ -------------------------------------------------------------------------------
104
102
*reload-use-automatic-command-groups*
105
103
Use automatic command groups ~
106
104
@@ -119,7 +117,7 @@ several times:
119
117
: autocmd! TabEnter * echomsg "Entered tab page"
120
118
:augroup END
121
119
122
- ==============================================================================
120
+ ===============================================================================
123
121
*reload-alternatives*
124
122
Alternatives ~
125
123
@@ -134,7 +132,7 @@ scripts, but there are a few notable differences:
134
132
135
133
- This plug-in can more or less reload itself ;-)
136
134
137
- ==============================================================================
135
+ ===============================================================================
138
136
*reload-contact*
139
137
Contact ~
140
138
@@ -143,14 +141,14 @@ contacted at peter@peterodding.com. The latest version is available at
143
141
http://peterodding.com/code/vim/reload/ and http://github.com/xolox/vim-reload .
144
142
If you like the plug-in please vote for it on Vim Online [3].
145
143
146
- ==============================================================================
144
+ ===============================================================================
147
145
*reload-license*
148
146
License ~
149
147
150
148
This software is licensed under the MIT license [4]. Copyright 2010 Peter
151
149
Odding <peter@peterodding.com>.
152
150
153
- ==============================================================================
151
+ ===============================================================================
154
152
*reload-references*
155
153
References ~
156
154
0 commit comments