Vim inserting multiple tabs

Viewed 36

So, my vim just inserts 2 tabs instead of 1 every time. It has been happening for quite some time and has become annoying, any way how I could fix that?

This is my vimrc file:

set clipboard=unnamed
set guicursor=
set nohlsearch
set hidden
set nocompatible
set visualbell
set t_vb=
set number relativenumber
syntax enable
set smartcase
set nowrap
set incsearch
set tabstop=4
set autoindent
set laststatus=2
filetype plugin on
set noswapfile
set scrolloff=8
set signcolumn=yes
set path+=**
set wildmenu
set mouse=a
set termguicolors
set bg=dark
if filereadable(expand("~/.vimrc.plug"))
    source ~/.vimrc.plug
endif
call plug#begin('~/.vim/plugged')
Plug 'https://github.com/morhetz/gruvbox.git'
call plug#end()
colorscheme gruvbox
nnoremap ` $
:autocmd BufNewFile *[^=].cpp 0r ~/.vim/templates/skeleton.cpp
:autocmd BufNewFile *=.cpp 0r ~/.vim/templates/competitive.cpp
0 Answers
Related