This package provides Vi keybinds for the Delphi IDE. This project is forked from the abandoned Vi-Delphi project which is based on VIDE repository. Thanks to both of those projects for the ideas and foundation. :)
- Clone the repo
- Open the
Vi4D_XXXXX.dproj
project file in Delphi (where 'XXXXX' is your version of Delphi) - Select the
Release
build configuration - Right-click the
Vi4D_XXXXX.bpl
entry in the project view - Click on 'Install'
CnWizards (repo) maintainers were kind enough to merge my PR to add relative line numbers and I highly recommend you use it. To use it:
- Install CnWizards, any version from 1.5.1.1221
- In the IDE, click on the
CnPack
menu, thenOptions
- In the
Wizard Settings
tab, findEditor Enhancements
, ensure it isEnabled
and click onSettings
- Under the
Line Number / Toolbar
tab, activateShow Line Number in Editor.
and then activateShow Relative Line Numbers.
- Voila you now have relative line numbers in Delphi!
The plugin will automatically install a toolbutton on the Custom toolbar, which is used to show the Vi Mode, the current command being typed as well as give the ability to activate/deactivate the plugin. So make sure you have the Custom toolbar shown!
Ensure the Host application
under Project Options
is set to your bds.exe
path and run the bpl in debug mode.
Note: This does not seem to work in recent versions of Delphi, it works great in D2010 though.
V
and (maybe, though probably not)<C-V>
- Support for Half Page and Page Up/Down,
gUU
,guu
, (maybe)=
- Complete the inside/around featuresets (paragraphs, tags, blocks, word)
- Implement
/
searching - Undoing operations that are more than one smaller operations require undoing each smaller operation, find a way to 'group' operations
- Marks support
- Better registry support (currently only one entry is supported)
- :s//
- Configurable bindings
- Look at bringing back the DLL debugging doc and project from the original repo, as it seems for newer versions of Delphi debugging bds.exe does not work
r
does not go back to Normal mode after entering the replacement character- Undo and Redo do not bring the cursor back to the change
- Around motions with things like
w
need to keep one of the two spaces around - After using some motions like Inside\Around when the cursor is before the text to change (like before the opening bracket), the view is changed with the cursor on the top line
L
goes to last -1 line, due to IDE auto-scrolling if we to to the last lineU
is used to Redo, instead of the classic<C-R>
Fx
andTx
only work on a line
This project is licensed under GPLv3 (see LICENSE). The original codebase is licensed under MIT (see vide-LICENSE).