8000 GitHub - AntoineGS/Vi4D: Vi keybindings for Delphi IDE
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AntoineGS/Vi4D

Repository files navigation

Vi4D

About The Project

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. :)

Installation

  • 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'

Relative Line Numbers

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, then Options
  • In the Wizard Settings tab, find Editor Enhancements, ensure it is Enabled and click on Settings
  • Under the Line Number / Toolbar tab, activate Show Line Number in Editor. and then activate Show Relative Line Numbers.
  • Voila you now have relative line numbers in Delphi!

IDE Toolbar

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!

Debugging

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.

Roadmap

  • 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

Known issues (plan to address)

  • 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

Particularities (things that are not planned)

  • L goes to last -1 line, due to IDE auto-scrolling if we to to the last line
  • U is used to Redo, instead of the classic <C-R>
  • Fx and Tx only work on a line

License

This project is licensed under GPLv3 (see LICENSE). The original codebase is licensed under MIT (see vide-LICENSE).

About

Vi keybindings for Delphi IDE

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0