Quick first try at vertical splits

This commit is contained in:
Zachary Yedidia
2016-06-15 18:38:37 -04:00
parent cb238db307
commit 9b9ae89e59
2 changed files with 21 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ var commandActions = map[string]func([]string){
"Quit": Quit,
"Save": Save,
"Replace": Replace,
"VSplit": VSplit,
}
// InitCommands initializes the default commands
@@ -56,9 +57,14 @@ func DefaultCommands() map[string]string {
"quit": "Quit",
"save": "Save",
"replace": "Replace",
"vsplit": "VSplit",
}
}
func VSplit(args []string) {
CurView().VSplit()
}
// Set sets an option
func Set(args []string) {
// Set an option and we have to set it for every view