0

I want to show line number in the editor, thus I use set nu in my vimrc. But when I open the embedded terminal with :ter, there are also line numbers there which I feel not comfortable. How could I switch off the line numbers in the terminal while still keep the line numbers of the editor window ?

  • 1
    doesn't this only happen in terminal normal mode? e.g. while the job is running, no line numbers are shown. In any case, have your tried a TerminalOpen autocommand, e.g. :au TerminalOpen * :set nonu? – Christian Brabandt Sep 13 '18 at 8:01
1

Thanks the helpful comment provided by Christian Brabandt. The answer is to add a line in the .vimrc:

autocmd TerminalOpen * set nonu

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.