diff --git a/cmd/micro/settings.go b/cmd/micro/settings.go index e785d628..6a99d2cf 100644 --- a/cmd/micro/settings.go +++ b/cmd/micro/settings.go @@ -213,8 +213,8 @@ func DefaultGlobalSettings() map[string]interface{} { "scrollspeed": float64(2), "scrollmargin": float64(3), "softwrap": false, - "splitRight": true, - "splitBottom": true, + "splitright": true, + "splitbottom": true, "statusline": true, "sucmd": "sudo", "syntax": true, @@ -252,8 +252,8 @@ func DefaultLocalSettings() map[string]interface{} { "scrollspeed": float64(2), "scrollmargin": float64(3), "softwrap": false, - "splitRight": true, - "splitBottom": true, + "splitright": true, + "splitbottom": true, "statusline": true, "syntax": true, "tabmovement": false, diff --git a/cmd/micro/view.go b/cmd/micro/view.go index 72bc8466..37acf3f5 100644 --- a/cmd/micro/view.go +++ b/cmd/micro/view.go @@ -282,7 +282,7 @@ func (v *View) ReOpen() { // HSplit opens a horizontal split with the given buffer func (v *View) HSplit(buf *Buffer) { i := 0 - if v.Buf.Settings["splitBottom"].(bool) { + if v.Buf.Settings["splitbottom"].(bool) { i = 1 } v.splitNode.HSplit(buf, v.Num+i) @@ -291,7 +291,7 @@ func (v *View) HSplit(buf *Buffer) { // VSplit opens a vertical split with the given buffer func (v *View) VSplit(buf *Buffer) { i := 0 - if v.Buf.Settings["splitRight"].(bool) { + if v.Buf.Settings["splitright"].(bool) { i = 1 } v.splitNode.VSplit(buf, v.Num+i) diff --git a/runtime/help/options.md b/runtime/help/options.md index a9945df8..5ceef104 100644 --- a/runtime/help/options.md +++ b/runtime/help/options.md @@ -110,12 +110,12 @@ Here are the options that you can set: default value: `off` -* `splitRight`: when a vertical split is created, should it be created to the right of +* `splitright`: when a vertical split is created, should it be created to the right of the current split? default value: `on` -* `splitBottom`: when a horizontal split is created, should it be created below the +* `splitbottom`: when a horizontal split is created, should it be created below the current split? default value: `on`