Vedit macro language
'''Vedit''' is a commercial text editor for Windows and MS-DOS operating systems.
Vedit was one of the first full screen editors in the market. It was first published in 1980 for CP/M operating system. Versions for CP/M-86, OS/2, Unix and QNX were later published, but those are not available any more. Vedit is fast and compact (it is mostly written in Assembly language). Its notable feature is the ability to edit any file, including EBCDIC, database and binary files and huge multi-gigabyte files.
Vedit has a C-like '''macro language'''. Unlike external scripting languages used by some editors, the macro language has full access to all functions and internals of the editor. Anything you can do with the editor can be done with macro language, too.
The keywords in Vedit macro language usually have both long and short form. For example the command Reg_Copy_Block can be shortened to RCB. For readability, long keywords are preferred in the Rosetta Code examples.
Rosetta Code examples
Most examples are full "applications" ready to run in Vedit. To run an example, save the code in a file and run it with Misc ⇒ Load/Exec User macro. Or alternatively, copy it to text register 100 and run it with Misc ⇒ Execute macro.
Note that some examples output to current edit buffer, so you should not run the examples while you have an important documents open.
Citations
Tasks
- 100 doors
- Align columns
- Anagrams
- Animation
- Arithmetic/Integer
- Averages/Arithmetic mean
- Averages/Median
- Averages/Mode
- Binary digits
- Binary search
- Bitmap
- Bitmap/Bézier curves/Quadratic
- Bitmap/Histogram
- Bitmap/Midpoint circle algorithm
- Bitmap/Read a PPM file
- Bitmap/Write a PPM file
- Bresenham's Line Algorithm
- Bulls and cows
- CSV data manipulation
- CSV to HTML translation
- Caesar cipher
- Calendar
- Check that file exists
- Create a file
- Date format
- Day of the week
- Delete a file
- Determine if a string is numeric
- Dragon curve
- Environment variables
- Execute a system command
- Fibonacci sequence
- Forest fire
- Formatted numeric output
- Globally replace text in several files
- Grayscale image
- Hello world!
- Hello world/Graphical
- Hello world/Text
- Increment a numerical string
- Interactive programming
- Josephus problem
- Keyboard input/Flush the keyboard buffer
- Keyboard input/Obtain a Y or N response
- Keyboard macros
- Knuth shuffle
- Leap year
- Letter frequency
- Long multiplication
- Look-and-say sequence
- Loops/Do-while
- Loops/Downward for
- Loops/For
- Loops/For with a specified step
- Loops/Infinite
- Loops/N plus one half
- Loops/While
- Mandelbrot set
- Middle three digits
- Monty Hall problem
- One-dimensional cellular automata
- Ordered words
- Palindrome detection
- Pascal's triangle
- Percentage difference between images
- Playing cards
- Program termination
- Read a configuration file
- Read a file line by line
- Read a specific line from a file
- Regular expressions
- Remove duplicate elements
- Rename a file
- Repeat a string
- Reverse a string
- Roman numerals/Decode
- Roman numerals/Encode
- Rot-13
- Run-length encoding
- Shell one-liner
- Sierpinski triangle
- Sieve of Eratosthenes
- Simple windowed application
- Sleep
- String case
- Text processing/1
- Text processing/2
- Text processing/Max licenses in use
- Tokenize a string
- Vigenère cipher
- Vigenère cipher/Cryptanalysis
- Window creation
- XML/Input
- XML/Output