Commit 9cfb2ebe authored by Ray Strode's avatar Ray Strode
Browse files

vim: support replaying '>' with '.' command

One reasonable way to reindent code in vim is to select
the lines, hit '>' to indent one time and then hit '.'
several times until the desired indention level is reached.
This doesn't work in gnome-builder because the '>' command
isn't recorded.

This commit make sure '>' (and '<') get recorded, so they
can be replayed with '.'

https://bugzilla.gnome.org/show_bug.cgi?id=744286
parent d0b67160
......@@ -4741,8 +4741,10 @@ gb_source_vim_cmd_indent (GbSourceVim *vim,
count = MAX (1, count);
gb_source_vim_recording_begin (vim, '>', modifier);
for (i = 0; i < count; i++)
gb_source_vim_indent (vim);
gb_source_vim_recording_end (vim);
}
static void
......@@ -4756,8 +4758,10 @@ gb_source_vim_cmd_unindent (GbSourceVim *vim,
count = MAX (1, count);
gb_source_vim_recording_begin (vim, '<', modifier);
for (i = 0; i < count; i++)
gb_source_vim_unindent (vim);
gb_source_vim_recording_end (vim);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment