     }
   }
 
-  @IBAction func redo(_ sender: AnyObject?) {
+  @IBAction func redo(_ sender: Any?) {
     switch self.mode {
     case .insert, .replace:
       self.api

      .disposed(by: self.disposeBag)
  }

  @IBAction func delete(_ sender: AnyObject?) {
    switch self.mode {
    case .normal, .visual:
      self.api

// MARK: - Edit Menu Items
extension NvimView {

  @IBAction func undo(_ sender: Any?) {
    switch self.mode {
    case .insert, .replace:
      self.api
