- Introduce InsertCharBegin and InsertCharEnd commands
to insert a character at the beginning or end of the line (<Leader>I and <Leader>A).
- Add configuration variables for customizable mappings:
- g:singlechar_map_insert_begin
- g:singlechar_map_insert_end
- Implement GetInsertCommand() and DoSingleChar() in autoload/singlechar.vim
to support new modes and static cursor feature.
- Add g:singlechar_static_cursor option:
when enabled, cursor returns to its original position after insertion.
- Use strcharpart for Unicode character support
- Add warning message if more than one character is entered
- Refactor InsertChar to clarify variable names and flow
- Make user input handling robust against accidental multi-char input
- Add global config for warning message
- Update commands and mappings for flexible argument handling
- Update README.md with instructions and notes for vim-repeat (`.`) support
- Update doc/singlechar.txt: add requirements, usage, and tips for vim-repeat, including installation and dot-repeat behavior
- Move main functions (InsertChar, RepeatSingleChar) to autoload/singlechar.vim, using Vim9script and export for modularity
- Refactor plugin/singlechar.vim to import autoload module and update commands/mappings accordingly
- Prepare for improved maintainability and compatibility with vim-repeat