toggleVimMode toggles vim mode on/off and updates the UI
()
| 53 | |
| 54 | // toggleVimMode toggles vim mode on/off and updates the UI |
| 55 | func (e *Editor) toggleVimMode() { |
| 56 | e.useVim = !e.useVim |
| 57 | if e.useVim { |
| 58 | e.vimMode = VimNormal |
| 59 | } |
| 60 | e.updateTitle() |
| 61 | e.updateFooter() |
| 62 | } |
| 63 | |
| 64 | // updateTitle updates the editor title to show current vim mode |
| 65 | func (e *Editor) updateTitle() { |
no test coverage detected