You can test this without a .vimrc :set expandtab
Leading tabs get converted to spaces. :set all shows expantab. :set paste Leading tabs no longer get converted to tabs. :set all shows "noexpandtab" The converse is not true though, setting expandtab does not affect the setting of paste. If you put set paste near the top of the vimrc it should work as expected. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1576583 Title: vim paste option bracks expandtab option To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/1576583/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs