Add horizontal splits

This commit is contained in:
Zachary Yedidia
2016-06-26 18:44:15 -04:00
parent 7e0286b621
commit bcbef1c633
2 changed files with 41 additions and 10 deletions

View File

@@ -19,6 +19,7 @@ var commandActions = map[string]func([]string){
"Save": Save,
"Replace": Replace,
"VSplit": VSplit,
"HSplit": HSplit,
}
// InitCommands initializes the default commands
@@ -58,12 +59,16 @@ func DefaultCommands() map[string]string {
"save": "Save",
"replace": "Replace",
"vsplit": "VSplit",
"hsplit": "HSplit",
}
}
func VSplit(args []string) {
CurView().VSplit()
}
func HSplit(args []string) {
CurView().HSplit()
}
// Set sets an option
func Set(args []string) {