[gnome-builder] vim: add support for "set et" and "set noet"
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vim: add support for "set et" and "set noet"
- Date: Thu, 25 Dec 2014 06:53:20 +0000 (UTC)
commit ebee7f385e2721d08952ee29414350a8d7dde344
Author: Christian Hergert <christian hergert me>
Date: Wed Dec 24 22:53:07 2014 -0800
vim: add support for "set et" and "set noet"
src/vim/gb-source-vim.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/vim/gb-source-vim.c b/src/vim/gb-source-vim.c
index 7b26e71..7e7f2ce 100644
--- a/src/vim/gb-source-vim.c
+++ b/src/vim/gb-source-vim.c
@@ -3788,6 +3788,14 @@ gb_source_vim_op_set_pair (GbSourceVim *vim,
{
gtk_source_view_set_show_line_numbers (source_view, TRUE);
}
+ else if (g_str_equal (key, "et"))
+ {
+ gtk_source_view_set_insert_spaces_instead_of_tabs (source_view, TRUE);
+ }
+ else if (g_str_equal (key, "noet"))
+ {
+ gtk_source_view_set_insert_spaces_instead_of_tabs (source_view, FALSE);
+ }
else if (g_str_equal (key, "ft") || g_str_equal (key, "filetype"))
{
GtkSourceLanguageManager *manager;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]