После переустановки моей ОС с Kubuntu 12.10 на Kubuntu 14.04 VIM изменил свое поведение при редактировании файлов Python. Хотя до переустановки для всех типов файлов были установлены noexpandtab и tabstop=4 , теперь в Python эти значения представляют собой expandtab и tabstop=8 , которые также проверяются с помощью поведения VIM и также с помощью запроса VIM set foo? ,
Файлы не Python сохраняют noexpandtab и tabstop=4 которое я предпочитаю.
.vim direcotry и .vimrc не были затронуты во время переустановки. Видно, что за несколько месяцев ни один файл в .vimrc не был затронут (за исключением несоответствующего .netrwhist):
- bruno():~$ ls -lat ~/.vim
total 68
drwxr-xr-x 85 dotancohen dotancohen 12288 Aug 25 13:00 ..
drwxr-xr-x 12 dotancohen dotancohen 4096 Aug 21 11:11 .
-rw-r--r-- 1 dotancohen dotancohen 268 Aug 21 11:11 .netrwhist
drwxr-xr-x 2 dotancohen dotancohen 4096 Mar 6 18:31 plugin
drwxr-xr-x 2 dotancohen dotancohen 4096 Mar 6 18:31 doc
drwxrwxr-x 2 dotancohen dotancohen 4096 Nov 29 2013 syntax
drwxrwxr-x 2 dotancohen dotancohen 4096 Nov 29 2013 ftplugin
drwxr-xr-x 4 dotancohen dotancohen 4096 Nov 29 2013 autoload
drwxrwxr-x 5 dotancohen dotancohen 4096 May 27 2013 after
drwxr-xr-x 2 dotancohen dotancohen 4096 Nov 1 2012 spell
-rw------- 1 dotancohen dotancohen 138 Aug 14 2012 .directory
-rw-rw-r-- 1 dotancohen dotancohen 190 Jul 3 2012 .VimballRecord
drwxrwxr-x 2 dotancohen dotancohen 4096 May 12 2012 colors
drwxrwxr-x 2 dotancohen dotancohen 4096 Mar 16 2012 mytags
drwxrwxr-x 2 dotancohen dotancohen 4096 Feb 14 2012 keymap
Хотя .vimrc был затронут после переустановки, только я проверял, в чем проблема.
Как я могу сказать, что такое установка settingexpandtab и tabstop?
Примечание: я даже не уверен, что мне следует прочитать во встроенной справке по этому вопросу. Я начал с ": h plugin", но это не помогло, кроме показа мне, что загружены следующие плагины (возможно, соответствующие):
standard-plugin-list
Standard plugins
pi_getscript.txt Downloading latest version of Vim scripts
pi_gzip.txt Reading and writing compressed files
pi_netrw.txt Reading and writing files over a network
pi_paren.txt Highlight matching parens
pi_tar.txt Tar file explorer
pi_vimball.txt Create a self-installing Vim script
pi_zip.txt Zip archive explorer
LOCAL ADDITIONS: local-additions
DynamicSigns.txt - Using Signs for different things
NrrwRgn.txt A Narrow Region Plugin (similar to Emacs)
fugitive.txt A Git wrapper so awesome, it should be illegal
indent-object.txt Text objects based on indent levels.
taglist.txt Plugin for browsing source code
vimwiki.txt A Personal Wiki for Vim
