On Tuesday, February 25, 2025 at 7:10:46 PM UTC-5 Tim Chase wrote:
Reading the help for :left, it says: Sets the indent in the lines to [indent] (default 0). However, it seems to do that indenting with N spaces rather than respecting 'shiftwidth' and 'expandtab' settings. [snip] Is there a way to get the indent-count parameter of `:left` to behave like using the > motion (which respects 'shiftwidth' and 'expandtab')? -tim brought to my attention by this Reddit thread: https://www.reddit.com/r/vim/comments/1ixcyt5/put_all_lines_in_visual_bloc_on_the_same_indent/ It took me a while to figure out what the question was, but I think you could something like this: V<motions>:left N | *retab! You'll probably have to adjust N above if you want to use tabs (so 3 indents with tab stops of 8 would be 24; I'm not sure if tabstop or softtabstop is what matters here). -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_use/f7dd9987-3861-4af2-bd80-2aad5739bc6en%40googlegroups.com.