diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-01-22 23:53:08 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-01-22 23:53:08 +0000 |
| commit | 7ba24c043aced097631e21463d79b21b17442a4e (patch) | |
| tree | a4e1a2825e43de706670cdeab037869c444c6ead /src/normal.cc | |
| parent | 66e422e3971acd8b36b23e52ac3def70534294fb (diff) | |
Add `gi` to go to first non-blank character on line
Fixes #407
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/normal.cc b/src/normal.cc index af72e000..1f0f6e5a 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -141,6 +141,9 @@ void goto_commands(Context& context, NormalParams params) case 'h': select<mode, select_to_line_begin<true>>(context, {}); break; + case 'i': + select<mode, select_to_first_non_blank>(context, {}); + break; case 'j': context.push_jump(); select_coord<mode>(buffer, buffer.line_count() - 1, context.selections()); @@ -230,17 +233,18 @@ void goto_commands(Context& context, NormalParams params) } } }, "goto", - "g,k: buffer top \n" - "l: line end \n" - "h: line begin \n" - "j: buffer bottom \n" - "e: buffer end \n" - "t: window top \n" - "b: window bottom \n" - "c: window center \n" - "a: last buffer \n" - "f: file \n" - ".: last buffer change\n"); + "g,k: buffer top \n" + "l: line end \n" + "h: line begin \n" + "i: line non blank start\n" + "j: buffer bottom \n" + "e: buffer end \n" + "t: window top \n" + "b: window bottom \n" + "c: window center \n" + "a: last buffer \n" + "f: file \n" + ".: last buffer change \n"); } } |
