array_mode = ["[モード]"]
array_cursor = ["[カーソル移動]"]
array_edit = ["[編集]"]
array_search = ["[検索]"]
array_replace = ["[置換]"]
array_area = ["[領域選択]"]
array_tab = ["[タブ操作]"]
array_window = ["[ウィンドウ操作]"]
array_file = ["[ファイル操作]"]
array_buffer = ["[バッファ操作]"]
array_register = ["[レジスタ操作]"]
array_others = ["[その他操作]"]
def select_mode(word):
if word in array_mode:
array_mode.remove(word)
else:
array_mode.append(word)
def select_cursor(word):
if word in array_cursor:
array_cursor.remove(word)
else:
array_cursor.append(word)
def select_edit(word):
if word in array_edit:
array_edit.remove(word)
else:
array_edit.append(word)
def select_search(word):
if word in array_search:
array_search.remove(word)
else:
array_search.append(word)
def select_replace(word):
if word in array_replace:
array_replace.remove(word)
else:
array_replace.append(word)
def select_area(word):
if word in array_area:
array_area.remove(word)
else:
array_area.append(word)
def select_tab(word):
if word in array_tab:
array_tab.remove(word)
else:
array_tab.append(word)
def select_window(word):
if word in array_window:
array_window.remove(word)
else:
array_window.append(word)
def select_file(word):
if word in array_file:
array_file.remove(word)
else:
array_file.append(word)
def select_buffer(word):
if word in array_buffer:
array_buffer.remove(word)
else:
array_buffer.append(word)
def select_register(word):
if word in array_register:
array_register.remove(word)
else:
array_register.append(word)
def select_others(word):
if word in array_others:
array_others.remove(word)
else:
array_others.append(word)
def display_all():
array_all = [array_mode,array_cursor,array_edit,array_search,array_replace,array_area,array_tab,array_window, array_file,array_buffer,array_register,array_others]
display("Vimチートシート",target="title")
display(" ",target="result")
for k in array_all:
if len(k) > 1:
for j in k:
display(j,target="result")
display(" ",target="result")