diff --git a/src/plugins/fakevim/fakevimhandler.cpp b/src/plugins/fakevim/fakevimhandler.cpp
old mode 100755
new mode 100644
diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp
index 0a4111cba0057bfc18aa4bfea355ef0ce16bf350..9b54765fb4690f2a2b33b5d4f8a59d3e5d287eb3 100644
--- a/src/plugins/fakevim/fakevimplugin.cpp
+++ b/src/plugins/fakevim/fakevimplugin.cpp
@@ -649,8 +649,10 @@ void FakeVimPluginPrivate::indentRegion(int *amount, int beginLine, int endLine,
     if (!bt)
         return;
 
-    TextEditor::TabSettings tabSettings = 
-        TextEditor::TextEditorSettings::instance()->tabSettings();
+    TextEditor::TabSettings tabSettings;
+    tabSettings.m_indentSize = theFakeVimSetting(ConfigShiftWidth)->value().toInt();
+    tabSettings.m_tabSize = theFakeVimSetting(ConfigTabStop)->value().toInt();
+    tabSettings.m_spacesForTabs = theFakeVimSetting(ConfigExpandTab)->value().toBool();
     typedef SharedTools::Indenter<TextEditor::TextBlockIterator> Indenter;
     Indenter &indenter = Indenter::instance();
     indenter.setIndentSize(tabSettings.m_indentSize);