Skip to content

vim-scripts/cmdline-increment.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

This is a mirror of http://www.vim.org/scripts/script.php?script_id=2790

Increment last appearing number in commandline-mode command with Control-a ,
and decrement with Control-x .

    <C-a> increment commandline last appearing number.
    <C-x> decrement commandline last appearing number.


------------------------------------------------------------------------------
[Usage]

1.  Enter commandline mode.
2.  Enter next command.

    :edit workfile_1.txt

3.  And Press Control-a , or press Control-x .


------------------------------------------------------------------------------
[Customized Mapping]

If you will customize increment, decrement mapping,
add put these code to your vimrc .

    " (for example)
    " increment with Shift-Up
    cmap <S-Up> <Plug>IncrementCommandLineNumber
    " decrement with Shift-Down
    cmap <S-Down> <Plug>DecrementCommandLineNumber

About

increment, decrement commandline number.

Resources

Stars

Watchers

Forks

Packages

No packages published