Vim Tips Wiki
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 53: Line 53:
   
 
The script has an inconsistency when searching in the forwards direction. With the default hex in <code>'nrformats'</code>, the code finds and operates on the next number, which may be a hex number. After the operation, the cursor is left on the last character of the number, and if that character is a letter (for example, <code>0x12AB</code>), repeating the operation will find and operate on the ''next'' number because the script starts by searching for a digit 0..9.
 
The script has an inconsistency when searching in the forwards direction. With the default hex in <code>'nrformats'</code>, the code finds and operates on the next number, which may be a hex number. After the operation, the cursor is left on the last character of the number, and if that character is a letter (for example, <code>0x12AB</code>), repeating the operation will find and operate on the ''next'' number because the script starts by searching for a digit 0..9.
βˆ’  
βˆ’
==Enhanced with nextval plugin==
 
βˆ’
You can extend the functionality with a plugin. [http://www.vim.org/scripts/script.php?script_id=4536 Nextval] can increment/decrement integer (in several variants), float, hex and boolean.
 
   
 
==Making a list==
 
==Making a list==
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)