Skip to content

How to always push text when at the beginning of a line? #59

Closed Answered by abecodes
yanshay asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @yanshay ,

    act_as_tab = true, -- shift content if tab out is not possible
    act_as_shift_tab = false, -- reverse shift content if tab out is not possible (if your keyboard/terminal supports <S-Tab>)
    default_tab = '<C-t>', -- shift default action (only at the beginning of a line, otherwise <TAB> is used)
    default_shift_tab = '<C-d>', -- reverse shift default action,

These settings are your friend.
Normally act_as_tab should already capture this behavior, but only, if it is truly the beginning of the line.
If it is after a tab etc, you need to hit <C(trl)-t> to get a tab forward and a <C(trl)-d> for backwards. Both are standard in (n)vim.

Happy holidays and stay healthy

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@yanshay
Comment options

@abecodes
Comment options

@yanshay
Comment options

@abecodes
Comment options

Answer selected by abecodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants