forked from taku-o/vim-catn
-
Notifications
You must be signed in to change notification settings - Fork 0
vim cat -n command plugin.
KSR-Yasuda/vim-catn
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
https://github.com/taku-o/vim-catn ------------------------------------------------------------------------------ Insert formatted text with number at selected area. You can select "text format", "starting number", and "insert area". Default value of option are text format : "%d " starting number : 1 insert area : current line only ------------------------------------------------------------------------------ [command format] :'<,'>Catn {text format} {starting number} :'<,'>Catn [{starting number}] ({text format} ... see ":help printf()", available format is written there.) ------------------------------------------------------------------------------ [command example] (Insert number at selected area. 1, 2, 3, ....) :'<,'>Catn (Insert number at selected area. 1000, 1001, 1002, ....) :'<,'>Catn 1000 (Insert formatted number text at selected area. 0000500, 0000501, 0000502, ....) :'<,'>Catn %08d\ 500 ============================================================================== 1. Copy the catn.vim script to $HOME/vimfiles/plugin or $HOME/.vim/plugin directory. Refer to ':help add-plugin', ':help add-global-plugin' and ':help runtimepath' for more details about Vim plugins. 2. Restart Vim.
About
vim cat -n command plugin.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Vim Script 100.0%