I have set up set tabstop=2 set lcs=tab>.,trail=.
in .vimrc when i open .txt files, tabs are displayed as
>.
however when i open a .py file, tabs are displayed as
>.........
I have typed :tabstop=2 which works. How to make tabstop=2 activated by default?
:verbose set tabstop?
results in tabstop=8
My .vimrc is
set list
set tabstop=2
set listchars=eol:⏎,tab:␉·,trail:␠,nbsp:⎵
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'davidhalter/jedi-vim'
call vundle#end() " required
filetype plugin indent on " required
I have only 1 plugin which is jedi-vim. Could that be the problem?
:verbose set tabstop?
. This will show where tabstop was last set. You should also read:help ft-python-plugin
,:help ft-python-indent
and:help ft-python-syntax
. – Ralf May 2 at 4:35