main.js
/**
     * @private
     * Enable or disable Vimderbar based on preferences
     */
@private
Enable or disable Vimderbar based on preferences
@private Enable or disable Vimderbar based on preferences
function preferencesChange() {
        var active = EditorManager.getActiveEditor();
        if (active) {
            var cm = active._codeMirror;
            if (vimderbarPreferences.get("enabled")) {
                enableVimderbar(cm);
                CommandManager.get(TOGGLE_VIMDERBAR_ID).setChecked(true);
            } else {
                disableVimderbar(cm);
                CommandManager.get(TOGGLE_VIMDERBAR_ID).setChecked(false);
            }
        }
    }
function preferencesChange ( ) { var active = EditorManager . getActiveEditor ( ) ; if ( active ) { var cm = active . _codeMirror ; if ( vimderbarPreferences . get ( "enabled" ) ) { enableVimderbar ( cm ) ; CommandManager . get ( TOGGLE_VIMDERBAR_ID ) . setChecked ( true ) ; } else { disableVimderbar ( cm ) ; CommandManager . get ( TOGGLE_VIMDERBAR_ID ) . setChecked ( false ) ; } } }
@private
 Enable or disable Vimderbar based on preferences
@private Enable or disable Vimderbar based on preferences