1

In one version of VIM that I run, when I hit the "tab" key in insert mode, it indents the whole line, regardless of the cursors position in the line.

Here is what I believe to be the only modified parts of the config, however I can include more as necessary (the whole file is 296 lines so I'll need to cut it down).

set nowrap

set shiftwidth=4
set expandtab
set autoindent
set tabstop=4

filetype plugin indent on
  • 2
    That sounds like a mapping (maybe something like inoremap <tab> <c-o>>>) you should following the instructions in this question and edit your question with what you'll find. – statox Oct 15 '18 at 8:00
  • Thanks for the debugging link. I followed the instructions and found out that your guess was almost spot on. – Stringers Oct 15 '18 at 23:20
0

Based on the comment from @statox♦ I was able to find the line of my code causing this. Using the debug method in the link showed me that it was the line (which was close to @statox♦'s original suggestion):

inoremap <Tab> <C-T>

Commenting this out fixed my issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.