Skip to content

Commit a959a1b

Browse files
committed
Document vim-misc as external dependency (needs to be installed separately from now on)
1 parent ddd3aab commit a959a1b

4 files changed

Lines changed: 58 additions & 22 deletions

File tree

‎INSTALL.md‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1-
If you're looking for the simplest way to get the plug-in up and running, download [the latest ZIP archive](http://peterodding.com/code/vim/downloads/lua-ftplugin.zip) from [Vim Online](http://www.vim.org/scripts/script.php?script_id=3625), unzip that in `~/.vim/` (on UNIX) or `%USERPROFILE%\vimfiles` (on Windows) and you're good to go.
1+
*Please note that the vim-lua-ftplugin plug-in requires my vim-misc plug-in which is separately distributed.*
22

3-
If you're using git and/or [Pathogen](http://www.vim.org/scripts/script.php?script_id=2332), [Vundle](https://github.com/gmarik/vundle) or a similar plug-in manager and want to keep the plug-in up to date using git, you can use the GitHub repository directly, it should just work.
3+
Unzip the most recent ZIP archives of the [vim-lua-ftplugin] [download-lua-ftplugin] and [vim-misc] [download-misc] plug-ins inside your Vim profile directory (usually this is `~/.vim` on UNIX and `%USERPROFILE%\vimfiles` on Windows), restart Vim and execute the command `:helptags ~/.vim/doc` (use `:helptags ~\vimfiles\doc` instead on Windows).
4+
5+
If you prefer you can also use [Pathogen] [pathogen], [Vundle] [vundle] or a similar tool to install & update the [vim-lua-ftplugin] [github-lua-ftplugin] and [vim-misc] [github-misc] plug-ins using a local clone of the git repository.
6+
7+
8+
[download-lua-ftplugin]: http://peterodding.com/code/vim/downloads/lua-ftplugin.zip
9+
[download-misc]: http://peterodding.com/code/vim/downloads/misc.zip
10+
[github-lua-ftplugin]: http://github.com/xolox/vim-lua-ftplugin
11+
[github-misc]: http://github.com/xolox/vim-misc
12+
[pathogen]: http://www.vim.org/scripts/script.php?script_id=2332
13+
[vundle]: https://github.com/gmarik/vundle

‎README.md‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ The [Lua][lua] file type plug-in for [Vim][vim] makes it easier to work with Lua
2222

2323
## Installation
2424

25-
Unzip the most recent [ZIP archive][zip] file inside your Vim profile directory (usually this is `~/.vim` on UNIX and `%USERPROFILE%\vimfiles` on Windows), restart Vim and execute the command `:helptags ~/.vim/doc` (use `:helptags ~\vimfiles\doc` instead on Windows). Now try it out: Edit a Lua script and try any of the features documented above.
25+
*Please note that the vim-lua-ftplugin plug-in requires my vim-misc plug-in which is separately distributed.*
26+
27+
Unzip the most recent ZIP archives of the [vim-lua-ftplugin] [download-lua-ftplugin] and [vim-misc] [download-misc] plug-ins inside your Vim profile directory (usually this is `~/.vim` on UNIX and `%USERPROFILE%\vimfiles` on Windows), restart Vim and execute the command `:helptags ~/.vim/doc` (use `:helptags ~\vimfiles\doc` instead on Windows).
28+
29+
If you prefer you can also use [Pathogen] [pathogen], [Vundle] [vundle] or a similar tool to install & update the [vim-lua-ftplugin] [github-lua-ftplugin] and [vim-misc] [github-misc] plug-ins using a local clone of the git repository.
30+
31+
Now try it out: Edit a Lua script and try any of the features documented above.
2632

2733
Note that on Windows a command prompt window pops up whenever Lua is run as an external process. If this bothers you then you can install my [shell.vim][shell] plug-in which includes a [DLL][dll] that works around this issue. Once you've installed both plug-ins it should work out of the box!
2834

@@ -115,7 +121,11 @@ This software is licensed under the [MIT license](http://en.wikipedia.org/wiki/M
115121
[cfu]: http://vimdoc.sourceforge.net/htmldoc/options.html#%27completefunc%27
116122
[dll]: http://en.wikipedia.org/wiki/Dynamic-link_library
117123
[dof]: http://www.lua.org/manual/5.1/manual.html#pdf-dofile
124+
[download-lua-ftplugin]: http://peterodding.com/code/vim/downloads/lua-ftplugin.zip
125+
[download-misc]: http://peterodding.com/code/vim/downloads/misc.zip
118126
[gf]: http://vimdoc.sourceforge.net/htmldoc/editing.html#gf
127+
[github-lua-ftplugin]: http://github.com/xolox/vim-lua-ftplugin
128+
[github-misc]: http://github.com/xolox/vim-misc
119129
[inc]: http://vimdoc.sourceforge.net/htmldoc/options.html#%27include%27
120130
[inex]: http://vimdoc.sourceforge.net/htmldoc/options.html#%27includeexpr%27
121131
[ll]: http://lua-users.org/wiki/LuaLint
@@ -124,10 +134,11 @@ This software is licensed under the [MIT license](http://en.wikipedia.org/wiki/M
124134
[lua]: http://www.lua.org/
125135
[mit]: http://vimdoc.sourceforge.net/htmldoc/usr_05.html#matchit-install
126136
[ofu]: http://vimdoc.sourceforge.net/htmldoc/options.html#%27omnifunc%27
137+
[pathogen]: http://www.vim.org/scripts/script.php?script_id=2332
127138
[pp]: http://www.lua.org/manual/5.1/manual.html#pdf-package.path
128139
[req]: http://www.lua.org/manual/5.1/manual.html#pdf-require
129140
[script]: http://www.vim.org/scripts/script.php?script_id=3625
130141
[shell]: http://peterodding.com/code/vim/shell/
131142
[tob]: http://vimdoc.sourceforge.net/htmldoc/motion.html#text-objects
132143
[vim]: http://www.vim.org/
133-
[zip]: http://peterodding.com/code/vim/downloads/lua-ftplugin.zip
144+
[vundle]: https://github.com/gmarik/vundle

‎autoload/xolox/lua.vim‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" Vim auto-load script
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: May 21, 2013
3+
" Last Change: May 25, 2013
44
" URL: http://peterodding.com/code/vim/lua-ftplugin
55

6-
let g:xolox#lua#version = '0.7.9'
6+
let g:xolox#lua#version = '0.7.10'
77
let s:miscdir = expand('<sfile>:p:h:h:h') . '/misc/lua-ftplugin'
88
let s:omnicomplete_script = s:miscdir . '/omnicomplete.lua'
99
let s:globals_script = s:miscdir . '/globals.lua'

‎doc/ft_lua.txt‎

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,25 @@ code in Vim by providing the following features:
7070
*ft_lua-installation*
7171
Installation ~
7272

73-
Unzip the most recent ZIP archive [8] file inside your Vim profile directory
74-
(usually this is '~/.vim' on UNIX and '%USERPROFILE%\vimfiles' on Windows),
75-
restart Vim and execute the command ':helptags ~/.vim/doc' (use ':helptags
76-
~\vimfiles\doc' instead on Windows). Now try it out: Edit a Lua script and try
77-
any of the features documented above.
73+
Please note that the vim-lua-ftplugin plug-in requires my vim-misc plug-in
74+
which is separately distributed.
75+
76+
Unzip the most recent ZIP archives of the vim-lua-ftplugin [8] and vim-misc
77+
[9] plug-ins inside your Vim profile directory (usually this is '~/.vim' on
78+
UNIX and '%USERPROFILE%\vimfiles' on Windows), restart Vim and execute the
79+
command ':helptags ~/.vim/doc' (use ':helptags ~\vimfiles\doc' instead on
80+
Windows).
81+
82+
If you prefer you can also use Pathogen [10], Vundle [11] or a similar tool to
83+
install & update the vim-lua-ftplugin [12] and vim-misc [13] plug-ins using a
84+
local clone of the git repository.
85+
86+
Now try it out: Edit a Lua script and try any of the features documented
87+
above.
7888

7989
Note that on Windows a command prompt window pops up whenever Lua is run as an
80-
external process. If this bothers you then you can install my shell.vim [9]
81-
plug-in which includes a DLL [10] that works around this issue. Once you've
90+
external process. If this bothers you then you can install my shell.vim [14]
91+
plug-in which includes a DLL [15] that works around this issue. Once you've
8292
installed both plug-ins it should work out of the box!
8393

8494
===============================================================================
@@ -132,7 +142,7 @@ The *lua_compiler_name* option
132142

133143
The name or path of the Lua compiler used to check for syntax errors (defaults
134144
to 'luac'). You can set this option to run the Lua compiler from a
135-
non-standard location or to run a dedicated syntax checker like lualint [11].
145+
non-standard location or to run a dedicated syntax checker like lualint [16].
136146

137147
-------------------------------------------------------------------------------
138148
The *lua_compiler_args* option
@@ -207,14 +217,14 @@ Contact ~
207217
If you have questions, bug reports, suggestions, etc. the author can be
208218
contacted at peter@peterodding.com. The latest version is available at
209219
http://peterodding.com/code/vim/lua-ftplugin and http://github.com/xolox/vim-lua-ftplugin.
210-
If you like this plug-in please vote for it on Vim Online [12].
220+
If you like this plug-in please vote for it on Vim Online [17].
211221

212222
===============================================================================
213223
*ft_lua-license*
214224
License ~
215225

216-
This software is licensed under the MIT license [13]. Š 2013 Peter Odding
217-
<peter@peterodding.com>.
226+
This software is licensed under the MIT license [18]. Copyright 2013 Peter
227+
Odding <peter@peterodding.com>.
218228

219229
===============================================================================
220230
*ft_lua-references*
@@ -228,10 +238,15 @@ References ~
228238
[6] http://www.vim.org/scripts/script.php?script_id=1291
229239
[7] http://peterodding.com/code/vim/lua-ftplugin/screenshots/omni-completion.png
230240
[8] http://peterodding.com/code/vim/downloads/lua-ftplugin.zip
231-
[9] http://peterodding.com/code/vim/shell/
232-
[10] http://en.wikipedia.org/wiki/Dynamic-link_library
233-
[11] http://lua-users.org/wiki/LuaLint
234-
[12] http://www.vim.org/scripts/script.php?script_id=3625
235-
[13] http://en.wikipedia.org/wiki/MIT_License
241+
[9] http://peterodding.com/code/vim/downloads/misc.zip
242+
[10] http://www.vim.org/scripts/script.php?script_id=2332
243+
[11] https://github.com/gmarik/vundle
244+
[12] http://github.com/xolox/vim-lua-ftplugin
245+
[13] http://github.com/xolox/vim-misc
246+
[14] http://peterodding.com/code/vim/shell/
247+
[15] http://en.wikipedia.org/wiki/Dynamic-link_library
248+
[16] http://lua-users.org/wiki/LuaLint
249+
[17] http://www.vim.org/scripts/script.php?script_id=3625
250+
[18] http://en.wikipedia.org/wiki/MIT_License
236251

237252
vim: ft=help

0 commit comments

Comments
 (0)