- Code completion, hints, and syntax highlighting updated for b49
- Fixed a few minor bugs.
- The syntax highlighting/code completion/help is now more up to date it contains some (but not all of b47) additions.
- Fixed case problem with linux
- Added "syntax on" to recommended vimrc commands.
Just download the file from the link below and follow the steps again to update.
---------------------------------------------------------------------------------------
Here is take 2 of the MapTool Macro plugin for the vim editor.
The latest version of vim is recommended.
If you have an older version then you may need to install vimball
http://www.vim.org/scripts/script.php?script_id=1502
For Microsoft Windows you can download vim here
http://www.vim.org/download.php#pc
Download the self installing executable
For Linux you will already have vim.
For Mac OSX, vim is included but you should download a more recent version that also has a mac GUI from the following link (MacVim-7_2-stable-1_2.tbz)
http://code.google.com/p/macvim/downloads/list
- <b>Features</b>
- Syntax Highlighting.
- Code Completion with parameters and function descriptions.
- Function parameter hints.
- Many mappings for reducing typing
- Help Documentation.
vimbook-OPL.pdf
Vim also has very good documentation available through :help
Another book that you can download for free as a pdf or read online is available at http://www.swaroopch.com/notes/Vim. The book tends to jump around a bit but the start is useful for beginners.
Once you are comfortable with vim download the file
mtmacro.vba
and edit it with vim, then type in
Code: Select all
:source %
:q
In windows type
Code: Select all
: e! $HOME/_vimrc
Code: Select all
:e! $HOME/.vimrc
Code: Select all
filetype plugin on
syntax on
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
Code: Select all
:wq
Now when you edit a file that ends in .mtmacro or .mtm the plugin will be loaded. You can also use :set filetype=mtmacro to load in for a file you are editing.
Control-X Control-O is used for completion if you find this to be too awkward you can install the SuperTab plugin which will allow you to use tab for completion SuperTab
You can get help about the plugin with
:help mtmacro
There is also help available for all of the functions which you can get by typing
:help mtm-<function>()
e.g.
:help mtm-abs()
:help mtm-listAppend()
The help file and plugin contain the information for build 45, and what I know about patches that are in the works for a later build. Once build 46 comes out I will update the plugin for that (and I will try keep it up to
date, probably a day or 2 behind each release).
<b>Some Screen shots.</b>
Syntax Highlighting Code Completion & Function Hints Help Edit - RPTroll 03/16/2015 - fixed dropbox download link. Added Az's modifications.