Настройка отступа моего Vim устанавливает ширину 4 и отключает автоматический отступ, в отличие от того, что я настроил в .vimrc
. Поэтому мне всегда нужно :so ~/.vimrc
вручную, чтобы это работало.
Я вижу, что мой .vimrc
загружается при запуске при запуске strace -o vim_strace vim
. Вот мой .vimrc
set autoread
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'git://git.wincent.com/command-t.git'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'davidhalter/jedi-vim'
Plugin 'ervandew/supertab'
call vundle#end() " required
filetype plugin indent on
syntax on
set number
set tabstop=2 softtabstop=0 expandtab shiftwidth=2 smarttab
if &term =~ "xterm\\|rxvt"
" use an orange cursor in insert mode
let &t_SI = "\<Esc>]12;orange\x7"
" use a red cursor otherwise
let &t_EI = "\<Esc>]12;red\x7"
silent !echo -ne "\033]12;red\007"
" reset cursor when vim exits
autocmd VimLeave * silent !echo -ne "\033]112\007"
" use \003]12;gray\007 for gnome-terminal and rxvt up to version 9.21
endif