I'm sure this is a familiar topic, but I can't find quite what I need anywhere.
Say I have a line in a file with 4 characters followed by a <TAB>followed by 2 characters and a <TAB>. Say the tabstops are at positions 5, 10, 15, etc. Then, when viewing this file, the first tab will be displayed as a single space, since it aligns with the tabstop boundary. The second tab will display as 3 spaces in order to align with the tabstop boundary. Its kinda the whole point of tabs. Great. What I would like to be able to do is replace all of these tabs with the number of spaces by which they are being displayed. The first would be 1 space, the 2nd 3 spaces, etc. So, s/\t/ /g will not work, because its the same number of spaces for each tab. Thanks- Hoss --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
