private String insertComment(boolean isViMode) throws IOException {
        String comment = this.getCommentBegin();
        setCursorPosition(0);
        putString(comment);
        if (isViMode) {
            consoleKeys.setKeyMap(KeyMap.VI_INSERT);
        }
        return accept();
    }