-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathexample.bim3rc
More file actions
36 lines (31 loc) · 1.22 KB
/
example.bim3rc
File metadata and controls
36 lines (31 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'''
Sample config file for bim3
'''
# Quirks work the same as they did in bim2, except for the obvious syntax change
quirk('TERM','screen','no24bit','noitalic')
quirk('TERM','xterm-256color','caninsert','canpaste','cansgrmouse')
quirk('TERMINAL_EMULATOR','JetBrains','nobce')
quirk('TERM_PROGRAM','Apple_Terminal','no24bit')
# checkprop() returns 0 if we _can_ do something, so
# call it with 'not' to check capabilities...
if not checkprop('can_unicode'):
tabindicator('»')
spaceindicator('·')
# Themes are actually Kuroko functions now, but we load
# them into a table like always for the :theme command
theme('sunsmoke')
# Non-string values are coerced into strings, so these commands
# can take integer values.
global.git(1)
global.statusbar(1)
global.autohidetabs(1)
smartcomplete(1)
# The @c onload function is called, if it exists, whenever a file is
# opened. There are two APIs available: If your implementation takes
# one required argument, the old API is used and details of the file
# are passed in a dictionary. Otherwise, the new API is used. Users
# of the new API should accept arbitrary keyword arguments, all of
# which are optional.
def onload(lang='',**kwargs):
if lang == 'gitcommit':
goto_line(0)