airline.txt 87 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174
  1. *airline.txt* Lean and mean status/tabline that's light as air
  2. *airline* *vim-airline*
  3. _ _ _ _ ~
  4. __ _(_)_ __ ___ __ _(_)_ __| (_)_ __ ___ ~
  5. \ \ / / | '_ ` _ \ _____ / _` | | '__| | | '_ \ / _ \ ~
  6. \ V /| | | | | | |_____| (_| | | | | | | | | | __/ ~
  7. \_/ |_|_| |_| |_| \__,_|_|_| |_|_|_| |_|\___| ~
  8. ~
  9. Version: 0.11
  10. =============================================================================
  11. CONTENTS *airline-contents*
  12. 01. Intro ............................................... |airline-intro|
  13. 02. Features ......................................... |airline-features|
  14. 03. Name ................................................. |airline-name|
  15. 04. Configuration ............................... |airline-configuration|
  16. 05. Commands ......................................... |airline-commands|
  17. 06. Autocommands ................................. |airline-autocommands|
  18. 07. Customization ............................... |airline-customization|
  19. 08. Extensions ..................................... |airline-extensions|
  20. 09. Advanced Customization ............. |airline-advanced-customization|
  21. 10. Funcrefs ......................................... |airline-funcrefs|
  22. 11. Pipeline ......................................... |airline-pipeline|
  23. 12. Writing Extensions ..................... |airline-writing-extensions|
  24. 13. Writing Themes ..................................... |airline-themes|
  25. 14. Troubleshooting ........................... |airline-troubleshooting|
  26. 15. Contributions ............................... |airline-contributions|
  27. 16. License ........................................... |airline-license|
  28. =============================================================================
  29. INTRODUCTION *airline-intro*
  30. vim-airline is a fast and lightweight alternative to powerline, written
  31. in 100% vimscript with no outside dependencies.
  32. When the plugin is correctly loaded, Vim will draw a nice statusline at the
  33. bottom of each window.
  34. That line consists of several sections, each one displaying some piece of
  35. information. By default (without configuration) this line will look like
  36. this: >
  37. +---------------------------------------------------------------------------+
  38. |~ |
  39. |~ |
  40. |~ VIM - Vi IMproved |
  41. |~ |
  42. |~ version 8.0 |
  43. |~ by Bram Moolenaar et al. |
  44. |~ Vim is open source and freely distributable |
  45. |~ |
  46. |~ type :h :q<Enter> to exit |
  47. |~ type :help<Enter> or <F1> for on-line help |
  48. |~ type :help version8<Enter> for version info |
  49. |~ |
  50. |~ |
  51. +---------------------------------------------------------------------------+
  52. | A | B | C X | Y | Z | [...] |
  53. +---------------------------------------------------------------------------+
  54. The statusline is the colored line at the bottom, which contains the sections
  55. (possibly in different colors):
  56. section meaning (example)~
  57. --------------------------
  58. A displays mode + additional flags like crypt/spell/paste (`INSERT`)
  59. B VCS information (branch, hunk summary) (`master`)
  60. C filename + read-only flag (`~/.vim/vimrc RO`)
  61. X filetype (`vim`)
  62. Y file encoding[fileformat] (`utf-8[unix]`)
  63. optionally may contain Byte Order Mark `[BOM]` and missing end of last
  64. line `[!EOL]`
  65. Z current position in the file
  66. percentage % ln: current line/number of lines ☰ cn: column
  67. So this: 10% ln:10/100☰ cn:20
  68. means: >
  69. 10% - 10 percent
  70. ln: - line number is
  71. 10/100☰ - 10 of 100 total lines
  72. cn: - column number is
  73. 20 - 20
  74. <
  75. [...] additional sections (warning/errors/statistics)
  76. from external plugins (e.g. YCM/syntastic/...)
  77. For a better look, those sections can be colored differently, depending on
  78. the mode and whether the current file is 'modified'
  79. Additionally, several extensions exists, that can provide additional feature
  80. (for example the tabline extension provides an extra statusline on the top of
  81. the Vim window and can display loaded buffers and tabs in the current Vim
  82. session).
  83. Most of this is customizable and the default sections can be configured using
  84. the vim variables g:airline_section_<name> (see |airline-default-sections|)
  85. =============================================================================
  86. FEATURES *airline-features*
  87. * tiny core written with extensibility in mind.
  88. * integrates with many popular plugins.
  89. * looks good with regular fonts, and provides configuration points so you
  90. can use unicode or powerline symbols.
  91. * optimized for speed; it loads in under a millisecond.
  92. * fully customizable; if you know a little 'statusline' syntax you can
  93. tweak it to your needs.
  94. * extremely easy to write themes.
  95. =============================================================================
  96. NAME *airline-name*
  97. Where did the name come from?
  98. I wrote this on an airplane, and since it's light as air it turned out to be
  99. a good name :-)
  100. =============================================================================
  101. CONFIGURATION *airline-configuration*
  102. There are a couple configuration values available (shown with their default
  103. values):
  104. * enable experimental features >
  105. " Currently: Enable Vim9 Script implementation
  106. let g:airline_experimental = 1
  107. * the separator used on the left side >
  108. let g:airline_left_sep='>'
  109. <
  110. * the separator used on the right side >
  111. let g:airline_right_sep='<'
  112. <
  113. * enable modified detection >
  114. let g:airline_detect_modified=1
  115. * enable paste detection >
  116. let g:airline_detect_paste=1
  117. <
  118. * enable crypt detection >
  119. let g:airline_detect_crypt=1
  120. * enable spell detection >
  121. let g:airline_detect_spell=1
  122. * display spelling language when spell detection is enabled
  123. (if enough space is available) >
  124. let g:airline_detect_spelllang=1
  125. <
  126. Set to 'flag' to get a unicode icon of the relevant country flag instead of
  127. the 'spelllang' itself
  128. * enable iminsert detection >
  129. let g:airline_detect_iminsert=0
  130. <
  131. * determine whether inactive windows should have the left section collapsed
  132. to only the filename of that buffer. >
  133. let g:airline_inactive_collapse=1
  134. <
  135. * Use alternative separators for the statusline of inactive windows >
  136. let g:airline_inactive_alt_sep=1
  137. <
  138. * themes are automatically selected based on the matching colorscheme. this
  139. can be overridden by defining a value. >
  140. let g:airline_theme='dark'
  141. <
  142. Note: Only the dark theme is distributed with vim-airline. For more themes,
  143. checkout the vim-airline-themes repository
  144. (https://github.com/vim-airline/vim-airline-themes)
  145. * if you want to patch the airline theme before it gets applied, you can
  146. supply the name of a function where you can modify the palette. >
  147. let g:airline_theme_patch_func = 'AirlineThemePatch'
  148. function! AirlineThemePatch(palette)
  149. if g:airline_theme == 'badwolf'
  150. for colors in values(a:palette.inactive)
  151. let colors[3] = 245
  152. endfor
  153. endif
  154. endfunction
  155. <
  156. * if you want to update your highlights without affecting the airline theme,
  157. you can do so using the AirlineAfterTheme autocmd. >
  158. function! s:update_highlights()
  159. hi CursorLine ctermbg=none guibg=NONE
  160. hi VertSplit ctermbg=none guibg=NONE
  161. endfunction
  162. autocmd User AirlineAfterTheme call s:update_highlights()
  163. <
  164. * By default, airline will use unicode symbols if your encoding matches
  165. utf-8. If you want the powerline symbols set this variable: >
  166. let g:airline_powerline_fonts = 1
  167. <
  168. If you want to use plain ascii symbols, set this variable: >
  169. let g:airline_symbols_ascii = 1
  170. <
  171. * define the set of text to display for each mode. >
  172. let g:airline_mode_map = {} " see source for the defaults
  173. " or copy paste the following into your vimrc for shortform text
  174. let g:airline_mode_map = {
  175. \ '__' : '-',
  176. \ 'c' : 'C',
  177. \ 'i' : 'I',
  178. \ 'ic' : 'I',
  179. \ 'ix' : 'I',
  180. \ 'n' : 'N',
  181. \ 'multi' : 'M',
  182. \ 'ni' : 'N',
  183. \ 'no' : 'N',
  184. \ 'R' : 'R',
  185. \ 'Rv' : 'R',
  186. \ 's' : 'S',
  187. \ 'S' : 'S',
  188. \ '' : 'S',
  189. \ 't' : 'T',
  190. \ 'v' : 'V',
  191. \ 'V' : 'V',
  192. \ '' : 'V',
  193. \ }
  194. Note: 'multi' is for displaying the multiple cursor mode
  195. <
  196. * define the set of filename match queries which excludes a window from
  197. having its statusline modified >
  198. let g:airline_exclude_filenames = [] " see source for current list
  199. <
  200. * define the set of filetypes which are excluded from having its window
  201. statusline modified >
  202. let g:airline_exclude_filetypes = [] " see source for current list
  203. <
  204. * define the set of names to be displayed instead of a specific filetypes
  205. (for section a and b): >
  206. let g:airline_filetype_overrides = {
  207. \ 'coc-explorer': [ 'CoC Explorer', '' ],
  208. \ 'defx': ['defx', '%{b:defx.paths[0]}'],
  209. \ 'fugitive': ['fugitive', '%{airline#util#wrap(airline#extensions#branch#get_head(),80)}'],
  210. \ 'floggraph': [ 'Flog', '%{get(b:, "flog_status_summary", "")}' ],
  211. \ 'gundo': [ 'Gundo', '' ],
  212. \ 'help': [ 'Help', '%f' ],
  213. \ 'minibufexpl': [ 'MiniBufExplorer', '' ],
  214. \ 'nerdtree': [ get(g:, 'NERDTreeStatusline', 'NERD'), '' ],
  215. \ 'startify': [ 'startify', '' ],
  216. \ 'vim-plug': [ 'Plugins', '' ],
  217. \ 'vimfiler': [ 'vimfiler', '%{vimfiler#get_status_string()}' ],
  218. \ 'vimshell': ['vimshell','%{vimshell#get_status_string()}'],
  219. \ 'vaffle' : [ 'Vaffle', '%{b:vaffle.dir}' ],
  220. \ }
  221. <
  222. * defines whether the preview window should be excluded from having its window
  223. statusline modified (may help with plugins which use the preview window
  224. heavily) >
  225. let g:airline_exclude_preview = 0
  226. <
  227. * disable the Airline statusline customization for selected windows (this is a
  228. window-local variable so you can disable it per-window) >
  229. let w:airline_disable_statusline = 1
  230. <
  231. Old deprecated name: `w:airline_disabled`
  232. See also the following options, for disabling setting the statusline
  233. globally or per-buffer
  234. * Disable setting the statusline option: >
  235. " disable globally
  236. let g:airline_disable_statusline = 1
  237. " disable per-buffer
  238. let b:airline_disable_statusline = 1
  239. < This setting disables setting the 'statusline' option. This allows to use
  240. e.g. the tabline extension (|airline-tabline|) but keep the 'statusline'
  241. option totally configurable by a custom configuration.
  242. * Do not draw separators for empty sections (only for the active window) >
  243. let g:airline_skip_empty_sections = 1
  244. <
  245. This variable can be overridden by setting a window-local variable with
  246. the same name (in the correct window): >
  247. let w:airline_skip_empty_sections = 0
  248. <
  249. * Caches the changes to the highlighting groups, should therefore be faster.
  250. Set this to one, if you experience a sluggish Vim: >
  251. let g:airline_highlighting_cache = 0
  252. <
  253. * disable airline on FocusLost autocommand (e.g. when Vim loses focus): >
  254. let g:airline_focuslost_inactive = 0
  255. <
  256. * configure the fileformat output
  257. By default, it will display something like 'utf-8[unix]', however, you can
  258. skip displaying it, if the output matches a configured string. To do so,
  259. set: >
  260. let g:airline#parts#ffenc#skip_expected_string='utf-8[unix]'
  261. <
  262. * Display the statusline in the tabline (first top line): >
  263. let g:airline_statusline_ontop = 1
  264. <
  265. Setting this option, allows to use the statusline option to be used by
  266. a custom function or another plugin, since airline won't change it.
  267. Note: This setting is experimental and works on a best effort approach.
  268. Updating the statusline might not always happen as fast as needed, but that
  269. is a limitation, that comes from Vim. airline tries to force an update if
  270. needed, but it might not always work as expected.
  271. To force updating the tabline on mode changes, call `airline#check_mode()`
  272. in your custom statusline setting: `:set stl=%!airline#check_mode(winnr())`
  273. will correctly update the tabline on mode changes.
  274. * Display a short path in statusline: >
  275. let g:airline_stl_path_style = 'short'
  276. >
  277. * Display a only file name in statusline: >
  278. let g:airline_section_c_only_filename = 1
  279. >
  280. =============================================================================
  281. COMMANDS *airline-commands*
  282. :AirlineTheme {theme-name} *:AirlineTheme*
  283. Displays or changes the current theme.
  284. Note: `random` will switch to a random theme.
  285. :AirlineToggleWhitespace *:AirlineToggleWhitespace*
  286. Toggles whitespace detection.
  287. :AirlineToggle *:AirlineToggle*
  288. Toggles between the standard 'statusline' and airline.
  289. :AirlineRefresh[!] *:AirlineRefresh*
  290. Refreshes all highlight groups and redraws the statusline. With the '!'
  291. attribute, skips refreshing the highlighting groups.
  292. :AirlineExtensions *:AirlineExtensions*
  293. Shows the status of all available airline extensions.
  294. Extern means, the extensions does not come bundled with Airline.
  295. =============================================================================
  296. AUTOCOMMANDS *airline-autocommands*
  297. Airline comes with some user-defined autocommands.
  298. |AirlineAfterInit| after plugin is initialized, but before the statusline
  299. is replaced
  300. |AirlineAfterTheme| after theme of the statusline has been changed
  301. |AirlineToggledOn| after airline is activated and replaced the statusline
  302. |AirlineToggledOff| after airline is deactivated and the statusline is
  303. restored to the original
  304. |AirlineModeChanged| The mode in Vim changed.
  305. =============================================================================
  306. CUSTOMIZATION *airline-customization*
  307. The following are some unicode symbols for customizing the left/right
  308. separators, as well as the powerline font glyphs.
  309. Note: Some additional characters like spaces and colons may be included in the
  310. default. Including them within the symbol definitions rather than outside of
  311. them allows you to eliminate or otherwise alter them.
  312. Note: Be aware that some of these glyphs are defined as ligatures, so they may
  313. show up different (usually bigger) if followed by a space. This only happens
  314. if both the font and terminal implementation used support ligatures. If you
  315. want to follow a glyph with a space _without_ the alternate ligature being
  316. rendered, follow it with a non-breaking-space character.
  317. Note: You must define the dictionary first before setting values. Also, it's
  318. a good idea to check whether it exists as to avoid accidentally overwriting
  319. its contents. >
  320. if !exists('g:airline_symbols')
  321. let g:airline_symbols = {}
  322. endif
  323. " unicode symbols
  324. let g:airline_left_sep = '»'
  325. let g:airline_left_sep = '▶'
  326. let g:airline_right_sep = '«'
  327. let g:airline_right_sep = '◀'
  328. let g:airline_symbols.colnr = ' ㏇:'
  329. let g:airline_symbols.colnr = ' ℅:'
  330. let g:airline_symbols.crypt = '🔒'
  331. let g:airline_symbols.linenr = '☰'
  332. let g:airline_symbols.linenr = ' ␊:'
  333. let g:airline_symbols.linenr = ' ␤:'
  334. let g:airline_symbols.linenr = '¶'
  335. let g:airline_symbols.maxlinenr = ''
  336. let g:airline_symbols.maxlinenr = '㏑'
  337. let g:airline_symbols.branch = '⎇'
  338. let g:airline_symbols.paste = 'ρ'
  339. let g:airline_symbols.paste = 'Þ'
  340. let g:airline_symbols.paste = '∥'
  341. let g:airline_symbols.spell = 'Ꞩ'
  342. let g:airline_symbols.notexists = 'Ɇ'
  343. let g:airline_symbols.notexists = '∄'
  344. let g:airline_symbols.whitespace = 'Ξ'
  345. " powerline symbols
  346. let g:airline_left_sep = ''
  347. let g:airline_left_alt_sep = ''
  348. let g:airline_right_sep = ''
  349. let g:airline_right_alt_sep = ''
  350. let g:airline_symbols.branch = ''
  351. let g:airline_symbols.colnr = ' ℅:'
  352. let g:airline_symbols.readonly = ''
  353. let g:airline_symbols.linenr = ' :'
  354. let g:airline_symbols.maxlinenr = '☰ '
  355. let g:airline_symbols.dirty='⚡'
  356. " old vim-powerline symbols
  357. let g:airline_left_sep = '⮀'
  358. let g:airline_left_alt_sep = '⮁'
  359. let g:airline_right_sep = '⮂'
  360. let g:airline_right_alt_sep = '⮃'
  361. let g:airline_symbols.branch = '⭠'
  362. let g:airline_symbols.readonly = '⭤'
  363. let g:airline_symbols.linenr = '⭡'
  364. <
  365. For more intricate customizations, you can replace the predefined sections
  366. with the usual statusline syntax.
  367. Note: If you define any section variables it will replace the default values
  368. entirely. If you want to disable only certain parts of a section you can
  369. try using variables defined in the |airline-configuration| or
  370. |airline-extensions| section.
  371. |airline-default-sections|
  372. The following table describes what sections are available by default, and
  373. which extensions/functions make use of it. Note: using `g:` (global) variable
  374. prefix means, those variables are defined for all windows. You can use `w:`
  375. (window local variables) instead to make this apply only to a particular
  376. window.
  377. >
  378. variable names default contents
  379. ---------------------------------------------------------------------------
  380. let g:airline_section_a (mode, crypt, paste, spell, iminsert)
  381. let g:airline_section_b (hunks, branch)[*]
  382. let g:airline_section_c (bufferline or filename, readonly)
  383. let g:airline_section_gutter (csv)
  384. let g:airline_section_x (tagbar, filetype, virtualenv)
  385. let g:airline_section_y (fileencoding, fileformat, 'bom', 'eol')
  386. let g:airline_section_z (percentage, line number, column number)
  387. let g:airline_section_error (ycm_error_count, syntastic-err, eclim,
  388. languageclient_error_count)
  389. let g:airline_section_warning (ycm_warning_count, syntastic-warn,
  390. languageclient_warning_count, whitespace)
  391. " [*] This section needs at least the fugitive extension or else
  392. " it will remain empty
  393. "
  394. " here is an example of how you could replace the branch indicator with
  395. " the current working directory (limited to 10 characters),
  396. " followed by the filename.
  397. let g:airline_section_b = '%-0.10{getcwd()}'
  398. let g:airline_section_c = '%t'
  399. <
  400. *airline#ignore_bufadd_pat*
  401. Determines a pattern to ignore a buffer name for various things (e.g. the
  402. tabline extension) or the read-only check. Default is
  403. `g:airline#extensions#tabline#ignore_bufadd_pat` (see below) or
  404. `'!|defx|gundo|nerd_tree|startify|tagbar|term://|undotree|vimfiler'`
  405. if it is unset.
  406. The "!" prevents terminal buffers to appear in the tabline.
  407. *airline#extensions#tabline#exclude_buffers*
  408. Buffer numbers to be excluded from showing in the tabline (similar to
  409. |airline#ignore_bufadd_pat|).
  410. =============================================================================
  411. EXTENSIONS *airline-extensions*
  412. Most extensions are enabled by default and lazily loaded when the
  413. corresponding plugin (if any) is detected.
  414. By default, airline will attempt to load any extension it can find in the
  415. 'runtimepath'. On some systems this can result in an undesirable startup
  416. cost. You can disable the check with the following flag. >
  417. let g:airline#extensions#disable_rtp_load = 1
  418. <
  419. Note: Third party plugins that rely on this behavior will be affected. You
  420. will need to manually load them.
  421. Alternatively, if you want a minimalistic setup and would rather opt-in which
  422. extensions get loaded instead of disabling each individually, you can declare
  423. the following list variable: >
  424. " an empty list disables all extensions
  425. let g:airline_extensions = []
  426. " or only load what you want
  427. let g:airline_extensions = ['branch', 'tabline']
  428. <
  429. In addition, each extension can be configured individually. Following are
  430. the options for each extension (in alphabetical order, after the default
  431. extension)
  432. Usually, each extension will only be loaded if the required Vim plugin is
  433. installed as well, otherwise it will remain disabled. See the output of the
  434. |:AirlineExtensions| command.
  435. ------------------------------------- *airline-ale*
  436. ale <https://github.com/dense-analysis/ale>
  437. * enable/disable ale integration >
  438. let g:airline#extensions#ale#enabled = 1
  439. * ale error_symbol >
  440. let g:airline#extensions#ale#error_symbol = 'E:'
  441. <
  442. * ale warning >
  443. let g:airline#extensions#ale#warning_symbol = 'W:'
  444. * ale show_line_numbers >
  445. let g:airline#extensions#ale#show_line_numbers = 1
  446. <
  447. * ale open_lnum_symbol >
  448. let g:airline#extensions#ale#open_lnum_symbol = '(L'
  449. <
  450. * ale close_lnum_symbol >
  451. let g:airline#extensions#ale#close_lnum_symbol = ')'
  452. ------------------------------------- *airline-battery*
  453. vim-battery <https://github.com/lambdalisue/battery.vim>
  454. * enable/disable battery integration >
  455. let g:airline#extensions#battery#enabled = 1
  456. < default: 0
  457. ------------------------------------- *airline-bookmark*
  458. vim-bookmark <https://github.com/MattesGroeger/vim-bookmarks>
  459. * enable/disable bookmark integration >
  460. let g:airline#extensions#bookmark#enabled = 1
  461. ------------------------------------- *airline-branch*
  462. vim-airline will display the branch-indicator together with the branch name
  463. in the statusline, if one of the following plugins is installed:
  464. fugitive.vim <https://github.com/tpope/vim-fugitive>
  465. gina.vim <https://github.com/lambdalisue/gina.vim>
  466. lawrencium <https://bitbucket.org/ludovicchabant/vim-lawrencium>
  467. vcscommand <http://www.vim.org/scripts/script.php?script_id=90>
  468. If a file is edited, that is not yet in the repository, the
  469. notexists symbol will be displayed after the branch name. If the repository
  470. is not clean, the dirty symbol will be displayed after the branch name.
  471. * notexists symbol means you are editing a file, that has not been
  472. committed yet
  473. default: '?'
  474. * the dirty symbol basically means your working directory is dirty
  475. default: '!'
  476. Note: the branch extension will be disabled for windows smaller than 80
  477. characters.
  478. * enable/disable fugitive/lawrencium integration >
  479. let g:airline#extensions#branch#enabled = 1
  480. <
  481. * change the text for when no branch is detected >
  482. let g:airline#extensions#branch#empty_message = ''
  483. <
  484. * define the order in which the branches of different vcs systems will be
  485. displayed on the statusline (currently only for fugitive and lawrencium) >
  486. let g:airline#extensions#branch#vcs_priority = ["git", "mercurial"]
  487. <
  488. * use vcscommand.vim if available >
  489. let g:airline#extensions#branch#use_vcscommand = 0
  490. <
  491. * truncate long branch names to a fixed length >
  492. let g:airline#extensions#branch#displayed_head_limit = 10
  493. <
  494. * customize formatting of branch name >
  495. " default value leaves the name unmodified
  496. let g:airline#extensions#branch#format = 0
  497. " to only show the tail, e.g. a branch 'feature/foo' becomes 'foo', use
  498. let g:airline#extensions#branch#format = 1
  499. " to truncate all path sections but the last one, e.g. a branch
  500. " 'foo/bar/baz' becomes 'f/b/baz', use
  501. let g:airline#extensions#branch#format = 2
  502. " if a string is provided, it should be the name of a function that
  503. " takes a string and returns the desired value
  504. let g:airline#extensions#branch#format = 'CustomBranchName'
  505. function! CustomBranchName(name)
  506. return '[' . a:name . ']'
  507. endfunction
  508. <
  509. * truncate sha1 commits at this number of characters >
  510. let g:airline#extensions#branch#sha1_len = 10
  511. * customize branch name retrieval for any version control system >
  512. let g:airline#extensions#branch#custom_head = 'GetScmBranch'
  513. function! GetScmBranch()
  514. if !exists('b:perforce_client')
  515. let b:perforce_client = system('p4 client -o | grep Client')
  516. " Invalidate cache to prevent stale data when switching clients. Use a
  517. " buffer-unique group name to prevent clearing autocmds for other
  518. " buffers.
  519. exec 'augroup perforce_client-'. bufnr("%")
  520. au!
  521. autocmd BufWinLeave <buffer> silent! unlet! b:perforce_client
  522. augroup END
  523. endif
  524. return b:perforce_client
  525. endfunction
  526. >
  527. * configure additional vcs checks to run
  528. By default, vim-airline will check if the current edited file is untracked
  529. in the repository. If so, it will append the `g:airline_symbols.notexists`
  530. symbol to the branch name.
  531. In addition, it will check if the repository is clean, else it will append
  532. the `g:airline_symbols.dirty` symbol to the branch name (if the current
  533. file is not untracked). Configure, by setting the following variable: >
  534. let g:airline#extensions#branch#vcs_checks = ['untracked', 'dirty']
  535. <
  536. ------------------------------------- *airline-flog*
  537. vim-flog <https://github.com/rbong/vim-flog>
  538. If vim-flog is installed, vim-airline will display the branch name
  539. together with a status summary in the git log graph buffer;
  540. either 'no changes' or the number of added/removed/modified files.
  541. ------------------------------------- *airline-bufferline*
  542. vim-bufferline <https://github.com/bling/vim-bufferline>
  543. * enable/disable bufferline integration >
  544. let g:airline#extensions#bufferline#enabled = 1
  545. <
  546. * determine whether bufferline will overwrite customization variables >
  547. let g:airline#extensions#bufferline#overwrite_variables = 1
  548. <
  549. ------------------------------------- *airline-capslock*
  550. vim-capslock <https://github.com/tpope/vim-capslock>
  551. * enable/disable vim-capslock integration >
  552. let g:airline#extensions#capslock#enabled = 1
  553. * change vim-capslock symbol >
  554. let g:airline#extensions#capslock#symbol = 'CAPS' (default)
  555. ------------------------------------- *airline-coc*
  556. coc <https://github.com/neoclide/coc.nvim>
  557. * enable/disable coc integration >
  558. let g:airline#extensions#coc#enabled = 1
  559. <
  560. * change error symbol: >
  561. let g:airline#extensions#coc#error_symbol = 'E:'
  562. <
  563. * change warning symbol: >
  564. let g:airline#extensions#coc#warning_symbol = 'W:'
  565. <
  566. * enable/disable coc status display >
  567. let g:airline#extensions#coc#show_coc_status = 1
  568. * change the error format (%C - error count, %L - line number): >
  569. let g:airline#extensions#coc#stl_format_err = '%C(L%L)'
  570. <
  571. * change the warning format (%C - error count, %L - line number): >
  572. let g:airline#extensions#coc#stl_format_warn = '%C(L%L)'
  573. <
  574. ------------------------------------- *airline-codeium*
  575. vim-codeium <https://github.com/Exafunction/codeium.vim>
  576. * enable/disable codeium.vim integration >
  577. let g:airline#extensions#codeium#enabled = 1
  578. ------------------------------------- *airline-commandt*
  579. command-t <https://github.com/wincent/command-t>
  580. No configuration available.
  581. ------------------------------------- *airline-csv*
  582. csv.vim <https://github.com/chrisbra/csv.vim>
  583. * enable/disable csv integration for displaying the current column. >
  584. let g:airline#extensions#csv#enabled = 1
  585. <
  586. * change how columns are displayed. >
  587. let g:airline#extensions#csv#column_display = 'Number' (default)
  588. let g:airline#extensions#csv#column_display = 'Name'
  589. <
  590. ------------------------------------- *airline-ctrlp*
  591. ctrlp <https://github.com/ctrlpvim/ctrlp.vim>
  592. * configure which mode colors should ctrlp window use (takes effect
  593. only if the active airline theme doesn't define ctrlp colors) >
  594. let g:airline#extensions#ctrlp#color_template = 'insert' (default)
  595. let g:airline#extensions#ctrlp#color_template = 'normal'
  596. let g:airline#extensions#ctrlp#color_template = 'visual'
  597. let g:airline#extensions#ctrlp#color_template = 'replace'
  598. <
  599. * configure whether to show the previous and next modes (mru, buffer, etc...)
  600. >
  601. let g:airline#extensions#ctrlp#show_adjacent_modes = 1
  602. <
  603. ------------------------------------- *airline-ctrlspace*
  604. vim-ctrlspace <https://github.com/szw/vim-ctrlspace>
  605. * enable/disable vim-ctrlspace integration >
  606. let g:airline#extensions#ctrlspace#enabled = 1
  607. <
  608. To make the vim-ctrlspace integration work you will need to make the
  609. ctrlspace statusline function call the correct airline function. Therefore
  610. add the following line into your .vimrc: >
  611. let g:CtrlSpaceStatuslineFunction =
  612. \ "airline#extensions#ctrlspace#statusline()"
  613. <
  614. ------------------------------------- *airline-cursormode*
  615. cursormode <https://github.com/vheon/vim-cursormode>
  616. Built-in extension to displays cursor in different colors depending on the
  617. current mode (only works in terminals iTerm, AppleTerm and xterm)
  618. * enable cursormode integration >
  619. let g:airline#extensions#cursormode#enabled = 1
  620. * mode function. Return value is used as key for the color mapping. Default
  621. is |mode()|
  622. `let g:cursormode_mode_func = 'mode'`
  623. color mapping. Keys come from `g:cursormode_mode_func`
  624. (a background value can be appended)
  625. `let g:cursormode_color_map = {`
  626. `\ "nlight": '#000000',`
  627. `\ "ndark": '#BBBBBB',`
  628. `\ "i": g:airline#themes#{g:airline_theme}#palette.insert.airline_a[1],`
  629. `\ "R": g:airline#themes#{g:airline_theme}#palette.replace.airline_a[1],`
  630. `\ "v": g:airline#themes#{g:airline_theme}#palette.visual.airline_a[1],`
  631. `\ "V": g:airline#themes#{g:airline_theme}#palette.visual.airline_a[1],`
  632. `\ "\<C-V>": g:airline#themes#{g:airline_theme}#palette.visual.airline_a[1],`
  633. `\ }`
  634. ------------------------------------- *airline-default*
  635. The default extensions is an internal extension that is needed for handling
  636. all other extensions, takes care of how all sections will be combined into a
  637. 'statusline' specific item and when to truncate each section.
  638. It understands all of the `g:` variables in the |airline-configuration|
  639. section, however it also has some more fine-tuned configuration values that
  640. you can use.
  641. * control which sections get truncated and at what width. >
  642. let g:airline#extensions#default#section_truncate_width = {
  643. \ 'b': 79,
  644. \ 'x': 60,
  645. \ 'y': 80,
  646. \ 'z': 45,
  647. \ 'warning': 80,
  648. \ 'error': 80,
  649. \ }
  650. " Note: set to an empty dictionary to disable truncation.
  651. let g:airline#extensions#default#section_truncate_width = {}
  652. <
  653. * configure the layout of the sections by specifying an array of two arrays
  654. (first array is the left side, second array is the right side). >
  655. let g:airline#extensions#default#layout = [
  656. \ [ 'a', 'b', 'c' ],
  657. \ [ 'x', 'y', 'z', 'error', 'warning' ]
  658. \ ]
  659. <
  660. * configure the layout to not use %(%) grouping items in the statusline.
  661. Try setting this to zero, if you notice bleeding color artifacts >
  662. let g:airline#extensions#default#section_use_groupitems = 1
  663. <
  664. ------------------------------------- *airline-denite*
  665. Denite <https://github.com/Shougo/denite.nvim>
  666. * enable/disable denite integration >
  667. let g:airline#extensions#denite#enabled = 1
  668. ------------------------------------- *airline-dirvish*
  669. vim-dirvish <https://github.com/justinmk/vim-dirvish>
  670. * enable/disable vim-dirvish integration >
  671. let g:airline#extensions#dirvish#enabled = 1
  672. < default: 1
  673. ------------------------------------- *airline-eclim*
  674. eclim <https://eclim.org>
  675. * enable/disable eclim integration, which works well with the
  676. |airline-syntastic| extension. >
  677. let g:airline#extensions#eclim#enabled = 1
  678. ------------------------------------- *airline-fern*
  679. fern.vim <https://github.com/lambdalisue/fern.vim>
  680. Airline displays the fern.vim specific statusline.
  681. (for details, see the help of fern.vim)
  682. * enable/disable bufferline integration >
  683. let g:airline#extensions#fern#enabled = 1
  684. < default: 1
  685. ------------------------------------- *airline-fugitiveline*
  686. This extension hides the fugitive://**// part of the buffer names, to only
  687. show the file name as if it were in the current working tree.
  688. It is deactivated by default if |airline-bufferline| is activated.
  689. * enable/disable bufferline integration >
  690. let g:airline#extensions#fugitiveline#enabled = 1
  691. <
  692. If enabled, the buffer that comes from fugitive, will have added a trailing
  693. "[git]" to be able to distinguish between fugitive and non-fugitive buffers.
  694. ------------------------------------- *airline-fzf*
  695. fzf <https://github.com/junegunn/fzf>
  696. fzf.vim <https://github.com/junegunn/fzf.vim>
  697. * enable/disable fzf integration >
  698. let g:airline#extensions#fzf#enabled = 1
  699. ------------------------------------- *airline-gina*
  700. gina.vim <https://github.com/lambdalisue/gina.vim>
  701. Airline displays the gina.vim specific statusline.
  702. (for details, see the help of gina.vim)
  703. * enable/disable bufferline integration >
  704. let g:airline#extensions#gina#enabled = 1
  705. < default: 1
  706. ------------------------------------- *airline-grepper*
  707. vim-grepper <https://github.com/mhinz/vim-grepper>
  708. * enable/disable vim-grepper integration >
  709. let g:airline#extensions#grepper#enabled = 1
  710. ------------------------------------- *airline-gutentags*
  711. vim-gutentags <https://github.com/ludovicchabant/vim-gutentags>
  712. * enable/disable vim-gutentags integration >
  713. let g:airline#extensions#gutentags#enabled = 1
  714. ------------------------------------- *gen_tags.vim*
  715. gen_tags.vim <https://github.com/jsfaint/gen_tags.vim>
  716. * enable/disable gen_tags.vim integration >
  717. let g:airline#extensions#gen_tags#enabled = 1
  718. ------------------------------------- *airline-hunks*
  719. vim-gitgutter <https://github.com/airblade/vim-gitgutter>
  720. vim-signify <https://github.com/mhinz/vim-signify>
  721. changesPlugin <https://github.com/chrisbra/changesPlugin>
  722. quickfixsigns <https://github.com/tomtom/quickfixsigns_vim>
  723. coc-git <https://github.com/neoclide/coc-git>
  724. gitsigns.nvim <https://github.com/lewis6991/gitsigns.nvim>
  725. You can use `airline#extensions#hunks#get_raw_hunks()` to get the full hunks,
  726. without shortening. This allows for advanced customization, or a quick way of
  727. querying how many changes you got. It will return something like '+4 ~2 -1'.
  728. * enable/disable showing a summary of changed hunks under source control. >
  729. let g:airline#extensions#hunks#enabled = 1
  730. <
  731. * enable/disable showing only non-zero hunks. >
  732. let g:airline#extensions#hunks#non_zero_only = 0
  733. <
  734. * set hunk count symbols. >
  735. let g:airline#extensions#hunks#hunk_symbols = ['+', '~', '-']
  736. * enable coc-git extension.
  737. If not set to 1, vim-airline will not consider to use coc-git for the hunks
  738. extension. Make sure to have the coc-git extension enabled. >
  739. let g:airline#extensions#hunks#coc_git = 1
  740. <
  741. ------------------------------------- *airline-keymap*
  742. vim-keymap
  743. This extension displays the current 'keymap' in use.
  744. * enable/disable vim-keymap extension >
  745. let g:airline#extensions#keymap#enabled = 1
  746. * set label for a keymap (default is from g:airline_symbols.keymap) >
  747. let g:airline#extensions#keymap#label = 'Layout:'
  748. * set name for default layout (empty to disable it completely) >
  749. let g:airline#extensions#keymap#default = ''
  750. * set short codes for layout names >
  751. let g:airline#extensions#keymap#short_codes = {'russian-jcukenwin': 'ru'}
  752. ------------------------------------- *airline-languageclient*
  753. LanguageClient <https://github.com/autozimu/LanguageClient-neovim>
  754. (despite its name, it can be used for Vim and Neovim).
  755. * enable/disable LanguageClient integration >
  756. let g:airline#extensions#languageclient#enabled = 1
  757. * languageclient error_symbol >
  758. let g:airline#extensions#languageclient#error_symbol = 'E:'
  759. <
  760. * languageclient warning_symbol >
  761. let g:airline#extensions#languageclient#warning_symbol = 'W:'
  762. * languageclient show_line_numbers >
  763. let g:airline#extensions#languageclient#show_line_numbers = 1
  764. <
  765. * languageclient open_lnum_symbol >
  766. let g:airline#extensions#languageclient#open_lnum_symbol = '(L'
  767. <
  768. * languageclient close_lnum_symbol >
  769. let g:airline#extensions#languageclient#close_lnum_symbol = ')'
  770. ------------------------------------- *airline-localsearch*
  771. localsearch <https://github.com/mox-mox/vim-localsearch>
  772. * enable/disable localsearch indicator integration >
  773. let g:airline#extensions#localsearch#enabled = 1
  774. * invert the localsearch indicator
  775. if set to 1, the indicator shall only be shown when localsearch is disabled
  776. the text will also change from 'LS' to 'GS' (Global Search) >
  777. let g:airline#extensions#localsearch#inverted = 0
  778. ------------------------------------- *airline-lsp*
  779. lsp <https://github.com/prabirshrestha/vim-lsp>
  780. * enable/disable lsp integration >
  781. let g:airline#extensions#lsp#enabled = 1
  782. * lsp error_symbol >
  783. let g:airline#extensions#lsp#error_symbol = 'E:'
  784. <
  785. * lsp warning >
  786. let g:airline#extensions#lsp#warning_symbol = 'W:'
  787. * lsp show_line_numbers >
  788. let g:airline#extensions#lsp#show_line_numbers = 1
  789. <
  790. * lsp open_lnum_symbol >
  791. let g:airline#extensions#lsp#open_lnum_symbol = '(L'
  792. <
  793. * lsp close_lnum_symbol >
  794. let g:airline#extensions#lsp#close_lnum_symbol = ')'
  795. <
  796. * lsp progress skip time
  797. Suppresses the frequency of status line updates.
  798. Prevents heavy operation when using a language server that sends frequent progress notifications.
  799. Set 0 to disable. >
  800. let g:airline#extensions#lsp#progress_skip_time = 0.3 (default)
  801. <
  802. ------------------------------------- *airline-neomake*
  803. neomake <https://github.com/neomake/neomake>
  804. * enable/disable neomake integration >
  805. let g:airline#extensions#neomake#enabled = 1
  806. * neomake error_symbol >
  807. let g:airline#extensions#neomake#error_symbol = 'E:'
  808. <
  809. * neomake warning >
  810. let g:airline#extensions#neomake#warning_symbol = 'W:'
  811. <
  812. ------------------------------------- *airline-nerdtree*
  813. NerdTree <https://github.com/preservim/nerdtree.git>
  814. Airline displays the Nerdtree specific statusline (which can be configured
  815. using the |'NerdTreeStatusline'| variable (for details, see the help of
  816. NerdTree)
  817. * enable/disable nerdtree's statusline integration >
  818. let g:airline#extensions#nerdtree_statusline = 1
  819. < default: 1
  820. ------------------------------------- *airline-nrrwrgn*
  821. NrrwRgn <https://github.com/chrisbra/NrrwRgn>
  822. * enable/disable NrrwRgn integration >
  823. let g:airline#extensions#nrrwrgn#enabled = 1
  824. ------------------------------------- *airline-nvimlsp*
  825. nvimlsp <https://github.com/neovim/nvim-lsp>
  826. * enable/disable nvimlsp integration >
  827. let g:airline#extensions#nvimlsp#enabled = 1
  828. * nvimlsp error_symbol >
  829. let g:airline#extensions#nvimlsp#error_symbol = 'E:'
  830. <
  831. * nvimlsp warning - needs v:lua.vim.diagnostic.get
  832. let g:airline#extensions#nvimlsp#warning_symbol = 'W:'
  833. * nvimlsp show_line_numbers - needs v:lua.vim.diagnostic.get
  834. let g:airline#extensions#nvimlsp#show_line_numbers = 1
  835. * nvimlsp open_lnum_symbol - needs v:lua.vim.diagnostic.get
  836. let g:airline#extensions#nvimlsp#open_lnum_symbol = '(L'
  837. * nvimlsp close_lnum_symbol - needs v:lua.vim.diagnostic.get
  838. let g:airline#extensions#nvimlsp#close_lnum_symbol = ')'
  839. ------------------------------------- *airline-obsession*
  840. vim-obsession <https://github.com/tpope/vim-obsession>
  841. * enable/disable vim-obsession integration >
  842. let g:airline#extensions#obsession#enabled = 1
  843. * set marked window indicator string >
  844. let g:airline#extensions#obsession#indicator_text = '$'
  845. <
  846. ------------------------------------- *airline-omnisharp*
  847. OmniSharp <https://github.com/OmniSharp/omnisharp-vim>
  848. * enable/disable OmniSharp integration >
  849. let g:airline#extensions#omnisharp#enabled = 1
  850. ------------------------------------- *airline-po*
  851. This extension will display the currently translated, untranslated and fuzzy
  852. messages when editing translations (po files). Related plugin (not necessary
  853. for this extension is po.vim from
  854. <http://www.vim.org/scripts/script.php?script_id=2530>
  855. It will be enabled if the `msgfmt` executable is available and one is editing
  856. files with the 'filetype' "po".
  857. * enable/disable po integration >
  858. let g:airline#extensions#po#enabled = 1
  859. <
  860. * truncate width names to a fixed length >
  861. let g:airline#extensions#po#displayed_limit = 0
  862. ------------------------------------- *airline-poetv*
  863. poetv <https://github.com/petobens/poet-v>
  864. * enable/disable poetv integration >
  865. let g:airline#extensions#poetv#enabled = 1
  866. <
  867. ------------------------------------- *airline-promptline*
  868. promptline <https://github.com/edkolev/promptline.vim>
  869. * configure the path to the snapshot .sh file. Mandatory option. The created
  870. file should be sourced by the shell on login >
  871. " in .vimrc
  872. let g:airline#extensions#promptline#snapshot_file = "~/.shell_prompt.sh"
  873. " in .bashrc/.zshrc
  874. [ -f ~/.shell_prompt.sh ] && source ~/.shell_prompt.sh
  875. <
  876. * enable/disable promptline integration >
  877. let g:airline#extensions#promptline#enabled = 0
  878. <
  879. * configure which mode colors should be used in prompt >
  880. let g:airline#extensions#promptline#color_template = 'normal' (default)
  881. let g:airline#extensions#promptline#color_template = 'insert'
  882. let g:airline#extensions#promptline#color_template = 'visual'
  883. let g:airline#extensions#promptline#color_template = 'replace'
  884. <
  885. ------------------------------------- *airline-quickfix*
  886. The quickfix extension is a simple built-in extension which determines
  887. whether the buffer is a quickfix or location list buffer, and adjusts the
  888. title accordingly.
  889. * configure the title text for quickfix buffers >
  890. let g:airline#extensions#quickfix#quickfix_text = 'Quickfix'
  891. <
  892. * configure the title text for location list buffers >
  893. let g:airline#extensions#quickfix#location_text = 'Location'
  894. <
  895. ------------------------------------- *airline-rufo*
  896. rufo <https://github.com/ruby-formatter/rufo-vim>
  897. The rufo (Ruby Formatter) extension merely displays whether vim-rufo is
  898. currently enabled, in the z section of the statusline.
  899. * enable/disable vim-rufo integration >
  900. let g:airline#extensions#rufo#enabled = 1
  901. <
  902. * configure the symbol, or text, to display when vim-rufo auto formatting
  903. is on >
  904. let g:airline#extensions#rufo#symbol = 'R'
  905. <
  906. ------------------------------------- *airline-searchcount*
  907. The searchcount extension supports the searchcount() function in Vim script.
  908. Note: This is only enabled when 'hls' is on. When you turn off search
  909. highlighting (e.g. using |:nohls|), it this will be disabled.
  910. * enable/disable searchcount integration >
  911. let g:airline#extensions#searchcount#enabled = 1
  912. * enable/disable displaying search term >
  913. let g:airline#extensions#searchcount#show_search_term = 1
  914. * truncate long search terms to a fixed length >
  915. let g:airline#extensions#searchcount#search_term_limit = 8
  916. <
  917. ------------------------------------- *airline-syntastic*
  918. syntastic <https://github.com/vim-syntastic/syntastic>
  919. * enable/disable syntastic integration >
  920. let g:airline#extensions#syntastic#enabled = 1
  921. Note: The recommendation from syntastic to modify the statusline directly
  922. does not apply, if you use vim-airline, since it will take care for you of
  923. adjusting the statusline.
  924. * syntastic error_symbol >
  925. let g:airline#extensions#syntastic#error_symbol = 'E:'
  926. <
  927. * syntastic statusline error format (see |syntastic_stl_format|) >
  928. let g:airline#extensions#syntastic#stl_format_err = '%E{[%fe(#%e)]}'
  929. * syntastic warning >
  930. let g:airline#extensions#syntastic#warning_symbol = 'W:'
  931. <
  932. * syntastic statusline warning format (see |syntastic_stl_format|) >
  933. let g:airline#extensions#syntastic#stl_format_warn = '%W{[%fw(#%w)]}'
  934. <
  935. ------------------------------------- *airline-tabline*
  936. Note: If you're using the ctrlspace tabline only the option marked with (c)
  937. are supported!
  938. * enable/disable enhanced tabline. (c) >
  939. let g:airline#extensions#tabline#enabled = 0
  940. <
  941. * enable/disable displaying buffers with a single tab. (c) >
  942. let g:airline#extensions#tabline#show_buffers = 1
  943. Note: With `show_buffers = 0`, tabs behave like the vim default tabline.
  944. * enable/disable displaying open splits per tab (only when tabs are opened) >
  945. let g:airline#extensions#tabline#show_splits = 1
  946. * switch position of buffers and tabs on splited tabline (c)
  947. (only supported for ctrlspace plugin). >
  948. let g:airline#extensions#tabline#switch_buffers_and_tabs = 0
  949. Note: If you are using neovim (has('tablineat') = 1), then you can click
  950. on the tabline with the left mouse button to switch to that buffer, and
  951. with the middle mouse button to delete that buffer.
  952. * if you want to show the current active buffer like this:
  953. ----------------------
  954. buffer <buffer> buffer `
  955. >
  956. let g:airline#extensions#tabline#alt_sep = 1
  957. < Only makes sense, if g:airline_right_sep is not empty.
  958. default: 0
  959. * enable/disable displaying tabs, regardless of number. (c) >
  960. let g:airline#extensions#tabline#show_tabs = 1
  961. Note: To display only tabs and no buffers, set `show_buffers=0` in addition.
  962. * enable/disable displaying number of tabs in the right side (c) >
  963. let g:airline#extensions#tabline#show_tab_count = 1
  964. Note: Not displayed if the number of tabs is less than 1
  965. * always displaying number of tabs in the right side (c) >
  966. let g:airline#extensions#tabline#show_tab_count = 2
  967. <
  968. * configure filename match rules to exclude from the tabline. >
  969. let g:airline#extensions#tabline#excludes = []
  970. * enable/disable display preview window buffer in the tabline. >
  971. let g:airline#extensions#tabline#exclude_preview = 1
  972. * configure how numbers are displayed in tab mode. >
  973. let g:airline#extensions#tabline#tab_nr_type = 0 " # of splits (default)
  974. let g:airline#extensions#tabline#tab_nr_type = 1 " tab number
  975. let g:airline#extensions#tabline#tab_nr_type = 2 " splits and tab number
  976. let g:airline#extensions#tabline#tabnr_formatter = 'tabnr'
  977. Note: last option can be used to specify a different formatter for
  978. displaying the numbers. By default tabline/formatter/tabnr.vim is used
  979. The argument of that setting should either be a filename that exists
  980. autoload/airline/extensions/tabline/formatter/ (without .vim extension)
  981. and needs to provide a format() function. Alternatively you can use a
  982. custom function name, that is defined e.g. in your .vimrc file. In any
  983. case, the function needs to take 2 arguments, tab_nr_type and tabpage
  984. number.
  985. For an example, have a look at the default tabline/formatter/tabnr.vim
  986. <
  987. * enable/disable displaying tab number in tabs mode. >
  988. let g:airline#extensions#tabline#show_tab_nr = 1
  989. * enable/disable displaying tab number in tabs mode for ctrlspace. (c) >
  990. let g:airline#extensions#tabline#ctrlspace_show_tab_nr = 0
  991. * enable/disable displaying tab type (e.g. [buffers]/[tabs]) >
  992. let g:airline#extensions#tabline#show_tab_type = 1
  993. * show buffer label at first position: >
  994. let g:airline#extensions#tabline#buf_label_first = 1
  995. * rename label for buffers (default: 'buffers') (c) >
  996. let g:airline#extensions#tabline#buffers_label = 'b'
  997. * rename label for tabs (default: 'tabs') (c) >
  998. let g:airline#extensions#tabline#tabs_label = 't'
  999. * change the symbol for skipped tabs/buffers (default '...') >
  1000. let g:airline#extensions#tabline#overflow_marker = '…'
  1001. * always show current tabpage/buffer first >
  1002. let g:airline#extensions#tabline#current_first = 1
  1003. < default: 0
  1004. * enable/disable displaying index of the buffer.
  1005. `buffer_idx_mode` allows 3 different modes to access buffers from the
  1006. tabline. When enabled, numbers will be displayed in the tabline and
  1007. mappings will be exposed to allow you to select a buffer directly.
  1008. In default mode, when the variable is 1 Up to 10 mappings will be
  1009. exposed. Note: As 10 and 1 have same prefix, we use 0 to replace 10. So,
  1010. <leader>0 will jump to tenth buffer. Those mappings are not automatically
  1011. created, vim-airline just exposes those `<Plug>AirlineSeelctTab` keys
  1012. for you to map to a convenient key >
  1013. let g:airline#extensions#tabline#buffer_idx_mode = 1
  1014. nmap <leader>1 <Plug>AirlineSelectTab1
  1015. nmap <leader>2 <Plug>AirlineSelectTab2
  1016. nmap <leader>3 <Plug>AirlineSelectTab3
  1017. nmap <leader>4 <Plug>AirlineSelectTab4
  1018. nmap <leader>5 <Plug>AirlineSelectTab5
  1019. nmap <leader>6 <Plug>AirlineSelectTab6
  1020. nmap <leader>7 <Plug>AirlineSelectTab7
  1021. nmap <leader>8 <Plug>AirlineSelectTab8
  1022. nmap <leader>9 <Plug>AirlineSelectTab9
  1023. nmap <leader>0 <Plug>AirlineSelectTab0
  1024. nmap <leader>- <Plug>AirlineSelectPrevTab
  1025. nmap <leader>+ <Plug>AirlineSelectNextTab
  1026. <
  1027. In mode 2, (when the variable is 2) 89 mappings will be exposed: >
  1028. let g:airline#extensions#tabline#buffer_idx_mode = 2
  1029. nmap <Leader>10 <Plug>AirlineSelectTab10
  1030. nmap <Leader>11 <Plug>AirlineSelectTab11
  1031. nmap <Leader>12 <Plug>AirlineSelectTab12
  1032. nmap <Leader>13 <Plug>AirlineSelectTab13
  1033. ...
  1034. nmap <Leader>99 <Plug>AirlineSelectTab99
  1035. <
  1036. The <Plug>AirlineSelect<Prev/Next>Tab mapping handles counts as well,
  1037. so one can handle arbitrarily number of buffers/tabs.
  1038. Mode 3 is exactly the same as mode 2, except the indexing start at 01,
  1039. exposing 99 mappings: >
  1040. let g:airline#extensions#tabline#buffer_idx_mode = 3
  1041. nmap <Leader>01 <Plug>AirlineSelectTab01
  1042. nmap <Leader>02 <Plug>AirlineSelectTab02
  1043. nmap <Leader>03 <Plug>AirlineSelectTab03
  1044. ...
  1045. nmap <Leader>99 <Plug>AirlineSelectTab99
  1046. <
  1047. This matches that of the numbering scheme of |:buffers|, letting
  1048. `<Plug>AirlineSelectTab67` to reference buffer 67.
  1049. Note: To avoid ambiguity, there won't be <Plug>AirlineSelectTab1
  1050. - <Plug>AirlineSelectTab9 maps in mode 2 and 3.
  1051. Note: Mappings will be ignored for filetypes that match
  1052. `g:airline#extensions#tabline#keymap_ignored_filetypes`.
  1053. Note: In buffer_idx_mode these mappings won't change the
  1054. current tab, but switch to the buffer `visible` in the current tab.
  1055. If you want to switch to a buffer, that is not visible use the
  1056. `AirlineSelectPrev/NextTab` mapping (it supports using a count).
  1057. Use |gt| for switching tabs.
  1058. In tabmode, those mappings will be exposed as well and will switch
  1059. to the specified tab.
  1060. * define the set of filetypes which are ignored for the selectTab
  1061. keymappings: >
  1062. let g:airline#extensions#tabline#keymap_ignored_filetypes =
  1063. \ ['vimfiler', 'nerdtree']
  1064. * change the display format of the buffer index >
  1065. let g:airline#extensions#tabline#buffer_idx_format = {
  1066. \ '0': '0 ',
  1067. \ '1': '1 ',
  1068. \ '2': '2 ',
  1069. \ '3': '3 ',
  1070. \ '4': '4 ',
  1071. \ '5': '5 ',
  1072. \ '6': '6 ',
  1073. \ '7': '7 ',
  1074. \ '8': '8 ',
  1075. \ '9': '9 '
  1076. \}
  1077. <
  1078. * defines the name of a formatter for how buffer names are displayed. (c) >
  1079. let g:airline#extensions#tabline#formatter = 'default'
  1080. " here is how you can define a 'foo' formatter:
  1081. " create a file in the dir autoload/airline/extensions/tabline/formatters/
  1082. " called foo.vim >
  1083. function! airline#extensions#tabline#formatters#foo#format(bufnr, buffers)
  1084. return fnamemodify(bufname(a:bufnr), ':t')
  1085. endfunction
  1086. let g:airline#extensions#tabline#formatter = 'foo'
  1087. <
  1088. Note: the following variables are used by the 'default' formatter.
  1089. When no disambiguation is needed, both 'unique_tail_improved' and
  1090. 'unique_tail' delegate formatting to 'default', so these variables also
  1091. control rendering of unique filenames when using these formatters.
  1092. * configure whether buffer numbers should be shown. >
  1093. let g:airline#extensions#tabline#buffer_nr_show = 0
  1094. <
  1095. * configure how buffer numbers should be formatted with |printf()|. >
  1096. let g:airline#extensions#tabline#buffer_nr_format = '%s: '
  1097. <
  1098. * configure the formatting of filenames (see |filename-modifiers|). >
  1099. let g:airline#extensions#tabline#fnamemod = ':p:.'
  1100. <
  1101. * configure collapsing parent directories in buffer name. >
  1102. let g:airline#extensions#tabline#fnamecollapse = 1
  1103. <
  1104. * configure truncating non-active buffer names to specified length. >
  1105. let g:airline#extensions#tabline#fnametruncate = 0
  1106. " The `unique_tail` algorithm will display the tail of the filename, unless
  1107. " there is another file of the same name, in which it will display it along
  1108. " with the containing parent directory.
  1109. let g:airline#extensions#tabline#formatter = 'unique_tail'
  1110. " The following variables are also used by `unique_tail` formatter.
  1111. " the meanings are the same as the ones in default formatter.
  1112. let g:airline#extensions#tabline#fnamemod = ':p:.'
  1113. let g:airline#extensions#tabline#fnamecollapse = 1
  1114. " The `unique_tail_improved` algorithm will uniquify buffers names with
  1115. " similar filename, suppressing common parts of paths.
  1116. let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
  1117. " The `short_path` algorithm is a simple formatter, that will show the
  1118. filename, with its extension, and the first parent directory only.
  1119. e.g.
  1120. /home/user/project/subdir/file.ext -> subdir/file.ext
  1121. let g:airline#extensions#tabline#formatter = 'short_path'
  1122. " `short_path` can also display file name as relative to the current
  1123. " directory, if possible
  1124. let g:airline#extensions#tabline#fnamemod = ':h'
  1125. " or display file name as relative to the home directory, if possible
  1126. let g:airline#extensions#tabline#fnamemod = ':~:h'
  1127. " The `short_path_improved` algorithm will only show the short path for
  1128. " duplicate buffer names, otherwise suppressing directories.
  1129. let g:airline#extensions#tabline#formatter = 'short_path_improved'
  1130. * defines the customized format() function to display tab title in tab mode. >
  1131. let g:airline#extensions#tabline#tabtitle_formatter = 'MyTabTitleFormatter'
  1132. <
  1133. Then define the MyTabTitleFormatter() function in your vimrc. >
  1134. function MyTabTitleFormatter(n)
  1135. let buflist = tabpagebuflist(a:n)
  1136. let winnr = tabpagewinnr(a:n)
  1137. let bufnr = buflist[winnr - 1]
  1138. let winid = win_getid(winnr, a:n)
  1139. let title = bufname(bufnr)
  1140. if empty(title)
  1141. if getqflist({'qfbufnr' : 0}).qfbufnr == bufnr
  1142. let title = '[Quickfix List]'
  1143. elseif winid && getloclist(winid, {'qfbufnr' : 0}).qfbufnr == bufnr
  1144. let title = '[Location List]'
  1145. else
  1146. let title = '[No Name]'
  1147. endif
  1148. endif
  1149. return title
  1150. endfunction
  1151. * configure the minimum number of buffers needed to show the tabline. >
  1152. let g:airline#extensions#tabline#buffer_min_count = 0
  1153. <
  1154. Note: this setting only applies to a single tab and when `show_buffers` is
  1155. true.
  1156. * configure the minimum number of tabs needed to show the tabline. >
  1157. let g:airline#extensions#tabline#tab_min_count = 0
  1158. <
  1159. Note: this setting only applies when `show_buffers` is false.
  1160. * configure separators for the tabline only. >
  1161. let g:airline#extensions#tabline#left_sep = ''
  1162. let g:airline#extensions#tabline#left_alt_sep = ''
  1163. let g:airline#extensions#tabline#right_sep = ''
  1164. let g:airline#extensions#tabline#right_alt_sep = ''
  1165. * configure whether close button should be shown: >
  1166. let g:airline#extensions#tabline#show_close_button = 1
  1167. * configure symbol used to represent close button >
  1168. let g:airline#extensions#tabline#close_symbol = 'X'
  1169. * configure pattern to be ignored on BufAdd autocommand >
  1170. " fixes unnecessary redraw, when e.g. opening Gundo window
  1171. let g:airline#extensions#tabline#ignore_bufadd_pat =
  1172. \ '\c\vgundo|undotree|vimfiler|tagbar|nerd_tree'
  1173. Note: Enabling this extension will modify 'showtabline' and 'guioptions'.
  1174. * enable Refresh of tabline buffers on |BufAdd| autocommands
  1175. (set this to one, if you note 'AirlineTablineRefresh', however, this
  1176. won't update airline on |:badd| commands) >
  1177. let g:airline#extensions#tabline#disable_refresh = 0
  1178. * preserve windows when closing a buffer from the bufferline
  1179. (neovim specific, only works with buffers and not real tabs, default: 0) >
  1180. let g:airline#extensions#tabline#middle_click_preserves_windows = 1
  1181. <
  1182. *airline-tabline-hlgroups*
  1183. When the tabline is enabled, vim-airline exposes the following highlighting
  1184. groups:
  1185. airline_tab: default highlighting group for the tabline
  1186. airline_tab_right: idem, but for the right side of the tabline
  1187. airline_tabsel: highlighting group of the selected item
  1188. airline_tabsel_right: idem, but for the right side of the tabline
  1189. airline_tabmod: highlighting group for a 'modified' buffer
  1190. airline_tabmod_right: idem, but on the right side
  1191. airline_tabmod_unsel: unselected tab with modified buffer
  1192. airline_tabmod_unsel_right: (unused)
  1193. airline_tabtype: label group used by ctrlspace and tabws
  1194. airline_tabfill: highlighting group for the filler space
  1195. airline_tablabel: highlighting group for the label
  1196. airline_tablabel_right: highlighting group for the label on the right side
  1197. airline_tabhid: hidden buffer
  1198. airline_tabhid_right: idem, but on the right
  1199. ------------------------------------- *airline-scrollbar*
  1200. Displays an Ascii Scrollbar for active windows with a width > 200.
  1201. * enable/disable scrollbar integration >
  1202. let g:airline#extensions#scrollbar#enabled = 1 (default: 0)
  1203. * set minimum window width, below which the scollbar
  1204. will be disabled >
  1205. let g:airline#extensions#scrollbar#minwidth = 100 (default: 200)
  1206. ------------------------------------- *airline-taboo*
  1207. taboo.vim <https://github.com/gcmt/taboo.vim>
  1208. * enable/disable taboo.vim integration >
  1209. let g:airline#extensions#taboo#enabled = 1
  1210. <
  1211. ------------------------------------- *airline-term*
  1212. Vim-Airline comes with a small extension for the styling the builtin
  1213. |terminal|. This requires Nvim or a Vim compiled with terminal support.
  1214. * enable/disable terminal integration >
  1215. let g:airline#extensions#term#enabled = 1
  1216. default: 1
  1217. * Use custom section_z >
  1218. let g:airline_section_z_term = '%p%% ☰ %l/%L, %v'
  1219. default: airline#section#create(['linenr', 'maxlinenr'])
  1220. * Use custom section_a >
  1221. let g:airline_section_a_term = '%p%% ☰ %l/%L, %v'
  1222. default: airline#section#create_left(['terminal', 'tmode'])
  1223. ------------------------------------- *airline-tabws*
  1224. vim-tabws <https://github.com/s1341/vim-tabws>
  1225. * enable/disable tabws integration >
  1226. let g:airline#extensions#tabws#enabled = 1
  1227. <
  1228. ------------------------------------- *airline-tagbar*
  1229. tagbar <https://github.com/majutsushi/tagbar>
  1230. * enable/disable tagbar integration >
  1231. let g:airline#extensions#tagbar#enabled = 1
  1232. <
  1233. * change how tags are displayed (:help tagbar-statusline) >
  1234. let g:airline#extensions#tagbar#flags = '' (default)
  1235. let g:airline#extensions#tagbar#flags = 'f'
  1236. let g:airline#extensions#tagbar#flags = 's'
  1237. let g:airline#extensions#tagbar#flags = 'p'
  1238. <
  1239. * configure how to search for the nearest tag (:help tagbar-statusline) >
  1240. let g:airline#extensions#tagbar#searchmethod = 'nearest-stl' (default)
  1241. let g:airline#extensions#tagbar#searchmethod = 'nearest'
  1242. let g:airline#extensions#tagbar#searchmethod = 'scoped-stl'
  1243. * configure max filesize, after which to skip loading the extension
  1244. If the file is larger, tags won't be displayed for performance reasons >
  1245. let g:airline#extensions#tagbar#max_filesize = 1024*1024 (default)
  1246. <
  1247. ------------------------------------- *airline-taglist*
  1248. taglist <https://github.com/yegappan/taglist>
  1249. * enable/disable taglist integration >
  1250. let g:airline#extensions#taglist#enabled = 1
  1251. <
  1252. ------------------------------------- *airline-tmuxline*
  1253. tmuxline <https://github.com/edkolev/tmuxline.vim>
  1254. * enable/disable tmuxline integration >
  1255. let g:airline#extensions#tmuxline#enabled = 0
  1256. <
  1257. * configure which mode colors should be used in tmux statusline >
  1258. let g:airline#extensions#tmuxline#color_template = 'normal' (default)
  1259. let g:airline#extensions#tmuxline#color_template = 'insert'
  1260. let g:airline#extensions#tmuxline#color_template = 'visual'
  1261. let g:airline#extensions#tmuxline#color_template = 'replace'
  1262. <
  1263. * if specified, setting this option will trigger writing to the file whenever the
  1264. airline theme is applied, i.e. when :AirlineTheme is executed and on vim
  1265. startup >
  1266. let g:airline#extensions#tmuxline#snapshot_file =
  1267. \ "~/.tmux-statusline-colors.conf"
  1268. <
  1269. ------------------------------------- *airline-undotree*
  1270. Undotree <https://github.com/mbbill/undotree>
  1271. No configuration available.
  1272. ------------------------------------- *airline-unicode*
  1273. Unicode <https://github.com/chrisbra/unicode.vim>
  1274. No configuration available.
  1275. ------------------------------------- *airline-unite*
  1276. Unite <https://github.com/Shougo/unite.vim>
  1277. * enable/disable unite integration >
  1278. let g:airline#extensions#unite#enabled = 1
  1279. ------------------------------------- *airline-vim9lsp*
  1280. vim9lsp <https://github.com/yegappan/lsp>
  1281. * enable/disable vim9lsp integration >
  1282. let g:airline#extensions#vim9lsp#enabled = 1
  1283. <
  1284. * vim9lsp error_symbol >
  1285. let g:airline#extensions#vim9lsp#error_symbol = 'E:'
  1286. <
  1287. * vim9lsp warning >
  1288. let g:airline#extensions#vim9lsp#warning_symbol = 'W:'
  1289. <
  1290. ------------------------------------- *airline-vimagit*
  1291. vimagit <https://github.com/jreybert/vimagit>
  1292. * enable/disable vimagit integration >
  1293. let g:airline#extensions#vimagit#enabled = 1
  1294. <
  1295. ------------------------------------- *airline-vimcmake*
  1296. Vim-CMake <https://github.com/cdelledonne/vim-cmake>
  1297. * enable/disable Vim-CMake integration >
  1298. let g:airline#extensions#vimcmake#enabled = 1
  1299. <
  1300. ------------------------------------- *airline-vimodoro*
  1301. Vimodoro <https://github.com/VimfanTPdvorak/vimodoro>
  1302. No configuration available.
  1303. ------------------------------------- *airline-vimtex*
  1304. vimtex <https://github.com/lervag/vimtex>
  1305. Shows the current file's vimtex related info.
  1306. * enable/disable vimtex integration >
  1307. let g:airline#extensions#vimtex#enabled = 1
  1308. <
  1309. * left and right delimiters (shown only when status string is not empty) >
  1310. let g:airline#extensions#vimtex#left = "{"
  1311. let g:airline#extensions#vimtex#right = "}"
  1312. State indicators:
  1313. * the current tex file is the main project file
  1314. (nothing is shown by default) >
  1315. let g:airline#extensions#vimtex#main = ""
  1316. * the current tex file is a subfile of the project
  1317. and the compilation is set for the main file >
  1318. let g:airline#extensions#vimtex#sub_main = "m"
  1319. * the current tex file is a subfile of the project
  1320. and the compilation is set for this subfile >
  1321. let g:airline#extensions#vimtex#sub_local = "l"
  1322. * single compilation is running >
  1323. let g:airline#extensions#vimtex#compiled = "c₁"
  1324. * continuous compilation is running >
  1325. let g:airline#extensions#vimtex#continuous = "c"
  1326. * viewer is opened >
  1327. let g:airline#extensions#vimtex#viewer = "v"
  1328. * use vimtex specific wordcount function
  1329. for TeX buffers Note: this more accurate
  1330. but may slow down Vim) >
  1331. let g:airline#extensions#vimtex#wordcount = 1
  1332. ------------------------------------- *airline-virtualenv*
  1333. virtualenv <https://github.com/jmcantrell/vim-virtualenv>
  1334. * enable/disable virtualenv integration >
  1335. let g:airline#extensions#virtualenv#enabled = 1
  1336. <
  1337. * enable virtualenv for additional filetypes:
  1338. (default: python): >
  1339. let g:airline#extensions#virtualenv#ft = ['python', 'markdown', 'rmd']
  1340. <
  1341. ------------------------------------- *airline-vista*
  1342. vista.vim <https://github.com/liuchengxu/vista.vim>
  1343. * enable/disable vista integration >
  1344. let g:airline#extensions#vista#enabled = 1
  1345. ------------------------------------- *airline-whitespace*
  1346. * enable/disable detection of whitespace errors. >
  1347. let g:airline#extensions#whitespace#enabled = 1
  1348. <
  1349. * disable detection of whitespace errors. >
  1350. " useful to call for particular file types (e.g., in "ftplugin/*")
  1351. silent! call airline#extensions#whitespace#disable()
  1352. <
  1353. * customize the type of mixed indent checking to perform. >
  1354. " must be all spaces or all tabs before the first non-whitespace character
  1355. let g:airline#extensions#whitespace#mixed_indent_algo = 0 (default)
  1356. " certain number of spaces are allowed after tabs, but not in between
  1357. " this algorithm works well for /* */ style comments in a tab-indented file
  1358. let g:airline#extensions#whitespace#mixed_indent_algo = 1
  1359. " spaces are allowed after tabs, but not in between
  1360. " this algorithm works well with programming styles that use tabs for
  1361. " indentation and spaces for alignment
  1362. let g:airline#extensions#whitespace#mixed_indent_algo = 2
  1363. <
  1364. * customize the whitespace symbol. >
  1365. let g:airline#extensions#whitespace#symbol = '!'
  1366. <
  1367. * configure which whitespace checks to enable. >
  1368. " indent: mixed indent within a line
  1369. " long: overlong lines
  1370. " trailing: trailing whitespace
  1371. " mixed-indent-file: different indentation in different lines
  1372. " conflicts: checks for conflict markers
  1373. let g:airline#extensions#whitespace#checks =
  1374. \ [ 'indent', 'trailing', 'long', 'mixed-indent-file', 'conflicts' ]
  1375. " this can also be configured for an individual buffer
  1376. let b:airline_whitespace_checks =
  1377. \ [ 'indent', 'trailing', 'long', 'mixed-indent-file', 'conflicts' ]
  1378. <
  1379. * configure the max number of lines where whitespace checking is enabled. >
  1380. let g:airline#extensions#whitespace#max_lines = 20000
  1381. <
  1382. * configure whether a message should be displayed. >
  1383. let g:airline#extensions#whitespace#show_message = 1
  1384. <
  1385. * configure the formatting of the warning messages. >
  1386. let g:airline#extensions#whitespace#trailing_format = 'trailing[%s]'
  1387. let g:airline#extensions#whitespace#mixed_indent_format =
  1388. \ 'mixed-indent[%s]'
  1389. let g:airline#extensions#whitespace#long_format = 'long[%s]'
  1390. let g:airline#extensions#whitespace#mixed_indent_file_format =
  1391. \ 'mix-indent-file[%s]'
  1392. let g:airline#extensions#whitespace#conflicts_format = 'conflicts[%s]'
  1393. * configure custom trailing whitespace regexp rule >
  1394. let g:airline#extensions#whitespace#trailing_regexp = '\s$'
  1395. " this can also be configured for an individual buffer
  1396. let b:airline_whitespace_trailing_regexp = '\s$'
  1397. * configure, which filetypes have special treatment of /* */ comments,
  1398. matters for mix-indent-file algorithm: >
  1399. let g:airline#extensions#c_like_langs =
  1400. \ ['arduino', 'c', 'cpp', 'cuda', 'go', 'javascript', 'ld', 'php']
  1401. <
  1402. * disable whitespace checking for an individual buffer >
  1403. " Checking is enabled by default because b:airline_whitespace_disabled
  1404. " is by default not defined:
  1405. unlet b:airline_whitespace_disabled
  1406. " If b:airline_whitespace_disabled is defined and is non-zero for a buffer,
  1407. " then whitespace checking will be disabled for that buffer; for example:
  1408. " let b:airline_whitespace_disabled = 1
  1409. <
  1410. * disable specific whitespace checks for individual filetypes >
  1411. " The global variable g:airline#extensions#whitespace#skip_indent_check_ft
  1412. " defines what whitespaces checks to skip per filetype.
  1413. " the list can contain any of the available checks,
  1414. " (see above at g:airline#extensions#whitespace#checks)
  1415. " To disable mixed-indent-file for go files use:
  1416. let g:airline#extensions#whitespace#skip_indent_check_ft =
  1417. \ {'go': ['mixed-indent-file']}
  1418. <
  1419. ------------------------------------- *airline-windowswap*
  1420. vim-windowswap <https://github.com/wesQ3/vim-windowswap>
  1421. * enable/disable vim-windowswap integration >
  1422. let g:airline#extensions#windowswap#enabled = 1
  1423. * set marked window indicator string >
  1424. let g:airline#extensions#windowswap#indicator_text = 'WS'
  1425. <
  1426. ------------------------------------- *airline-wordcount*
  1427. * enable/disable word counting of the document/visual selection >
  1428. let g:airline#extensions#wordcount#enabled = 1
  1429. <
  1430. * set list of filetypes for which word counting is enabled: >
  1431. " The default value matches filetypes typically used for documentation
  1432. " such as markdown and help files. Default is:
  1433. let g:airline#extensions#wordcount#filetypes =
  1434. \ ['asciidoc', 'help', 'mail', 'markdown', 'rmd', 'nroff', 'org', 'plaintex', 'rst', 'tex', 'text'])
  1435. " Use ['all'] to enable for all filetypes.
  1436. * defines the name of a formatter for word count will be displayed: >
  1437. " The default will try to guess LC_NUMERIC and format number accordingly
  1438. " e.g. 1,042 in English and 1.042 in German locale
  1439. let g:airline#extensions#wordcount#formatter = 'default'
  1440. " enable reading time formatter
  1441. let g:airline#extensions#wordcount#formatter = 'readingtime'
  1442. " here is how you can define a 'foo' formatter:
  1443. " create a file in autoload/airline/extensions/wordcount/formatters/
  1444. " called foo.vim, which defines the following function signature:
  1445. function! airline#extensions#wordcount#formatters#foo#to_string(wordcount)
  1446. return a:wordcount == 0 ? 'NONE' :
  1447. \ a:wordcount > 100 ? 'okay' : 'not enough')
  1448. endfunction
  1449. let g:airline#extensions#wordline#formatter = 'foo'
  1450. " The function is passed the word count of the document or visual selection
  1451. * defines how to display the wordcount statistics for the default formatter >
  1452. " Defaults are below. If fmt_short isn't defined, fmt is used.
  1453. " '%s' will be substituted by the word count
  1454. " fmt_short is displayed when window width is less than 80
  1455. let g:airline#extensions#wordcount#formatter#default#fmt = '%s words'
  1456. let g:airline#extensions#wordcount#formatter#default#fmt_short = '%sW'
  1457. <
  1458. ------------------------------------- *airline-xkblayout*
  1459. The vim-xkblayout extension will only be enabled, if the global variable
  1460. `g:XkbSwitchLib` is set or `FcitxCurrentIM()` exists.
  1461. `g:XkbSwitchLib` should be set to a C library that will be called
  1462. using |libcall()| with the function name `Xkb_Switch_getXkbLayout`. For
  1463. details on how to use it, see e.g. <https://github.com/ierton/xkb-switch>
  1464. * enable/disable vim-xkblayout extension >
  1465. let g:airline#extensions#xkblayout#enabled = 1
  1466. * redefine keyboard layout short codes to shown in status >
  1467. let g:airline#extensions#xkblayout#short_codes =
  1468. \ {'Russian-Phonetic': 'RU', 'ABC': 'EN'}
  1469. <
  1470. 'RU' instead of system 'Russian-Phonetic',
  1471. 'EN' instead of system 'ABC'.
  1472. Default: >
  1473. let g:airline#extensions#xkblayout#short_codes =
  1474. \ {'2SetKorean': 'KR', 'Chinese': 'CN', 'Japanese': 'JP'}
  1475. * define path to the backend switcher library
  1476. Linux with gnome (Install https://github.com/lyokha/g3kb-switch): >
  1477. let g:XkbSwitchLib = '/usr/lib/libg3kbswitch.so'
  1478. <
  1479. Linux (Install https://github.com/ierton/xkb-switch): >
  1480. let g:XkbSwitchLib = '/usr/lib/libxkbswitch.so'
  1481. <
  1482. macOS (Install https://github.com/vovkasm/input-source-switcher): >
  1483. let g:XkbSwitchLib = '/usr/local/lib/libInputSourceSwitcher.dylib'
  1484. <
  1485. Linux with fcitx (Install https://github.com/fcitx/fcitx5):
  1486. Install https://github.com/lilydjwg/fcitx.vim to get `FcitxCurrentIM()`
  1487. or https://github.com/black-desk/fcitx5-ui.nvim to get
  1488. `luaeval('require"fcitx5-ui".displayCurrentIM()')`
  1489. or https://github.com/Freed-Wu/ime.nvim to get
  1490. `luaeval('require"ime".current()')`
  1491. ------------------------------------- *airline-xtabline*
  1492. xtabline <https://github.com/mg979/vim-xtabline>
  1493. This is a simplified and stand-alone version of the original extension.
  1494. The bigger version adds fzf commands, session management, tab bookmarks, and
  1495. features that you may not need. They both require |vim-airline| anyway.
  1496. Main features and default mappings of this extension are:
  1497. * tab cwd persistence, also across sessions if vim-obsession is being used.
  1498. * buffer filtering in the tabline: only buffers whose path is within the tab
  1499. cwd will be shown in the tabline.
  1500. * toggle tabs/buffer view on the tabline, toggle buffer filtering:
  1501. >
  1502. nmap <F5> <Plug>XTablineToggleTabs
  1503. nmap <leader><F5> <Plug>XTablineToggleFiltering
  1504. * reopen last closed tab, restoring its cwd and buffers:
  1505. >
  1506. nmap <leader>tr <Plug>XTablineReopen <SID>ReopenLastTab
  1507. * switch among filtered buffers (accepts count):
  1508. >
  1509. nmap ]l <Plug>XTablineNextBuffer
  1510. nmap [l <Plug>XTablinePrevBuffer
  1511. * go to N buffer (a count must be provided):
  1512. >
  1513. nmap <BS> <Plug>XTablineSelectBuffer
  1514. * alternative command if count is not provided:
  1515. >
  1516. let g:xtabline_alt_action = "buffer #"
  1517. Note: Make sure to also enable >
  1518. :let g:airline#extensions#tabline#show_buffers = 1
  1519. otherwise the tabline might not actually be displayed correctly (see
  1520. |airline-tabline|)
  1521. * exclude fugitive logs and files that share part of the real buffer path:
  1522. >
  1523. let g:xtabline_include_previews = 0 (default 1)
  1524. * activate fast cwd selection mappings:
  1525. >
  1526. let g:xtabline_cd_commands = 1 (default 0)
  1527. * default mappings for them are:
  1528. >
  1529. map <leader>cdc <Plug>XTablineCdCurrent
  1530. map <leader>cdd <Plug>XTablineCdDown1
  1531. map <leader>cd2 <Plug>XTablineCdDown2
  1532. map <leader>cd3 <Plug>XTablineCdDown3
  1533. map <leader>cdh <Plug>XTablineCdHome
  1534. Note: if you don't use these mappings and change the cwd, the tabline won't
  1535. be updated automatically. Either re-enter the tab or press <F5> two times.
  1536. * here are some easier mappings to change tab buffer:
  1537. >
  1538. nnoremap <silent> <expr> <Right> v:count ?
  1539. \ airline#extensions#tabline#xtabline#next_buffer(v:count) : "\<Right>"
  1540. nnoremap <silent> <expr> <Left> v:count ?
  1541. \ airline#extensions#tabline#xtabline#prev_buffer(v:count) : "\<Left>"
  1542. ------------------------------------- *airline-ycm*
  1543. YouCompleteMe <https://github.com/ycm-core/YouCompleteMe>
  1544. Shows number of errors and warnings in the current file detected by YCM.
  1545. * enable/disable YCM integration >
  1546. let g:airline#extensions#ycm#enabled = 1
  1547. * set error count prefix >
  1548. let g:airline#extensions#ycm#error_symbol = 'E:'
  1549. * set warning count prefix >
  1550. let g:airline#extensions#ycm#warning_symbol = 'W:'
  1551. <
  1552. ------------------------------------- *airline-zoomwintab*
  1553. zoomwintab <https://github.com/troydm/zoomwintab.vim>
  1554. * enable/disable zoomwintab integration >
  1555. let g:airline#extensions#zoomwintab#enabled = 1
  1556. * zoomwintab's zoomin symbol >
  1557. let g:airline#extensions#zoomwintab#status_zoomed_in = 'Currently Zoomed In'
  1558. default: '> Zoomed'
  1559. * zoomwintab's zoomout symbol >
  1560. let g:airline#extensions#zoomwintab#status_zoomed_out = 'Currently Zoomed Out'
  1561. default: ''
  1562. =============================================================================
  1563. ADVANCED CUSTOMIZATION *airline-advanced-customization*
  1564. The defaults will accommodate the mass majority of users with minimal
  1565. configuration. However, if you want to reposition sections or contents you
  1566. can do so with built-in helper functions, which makes it possible to create
  1567. sections in a more declarative style.
  1568. ------------------------------------- *airline-parts*
  1569. A part is something that contains metadata that eventually gets rendered into
  1570. the statusline. You can define parts that contain constant strings or
  1571. functions. Defining parts is needed if you want to use features like automatic
  1572. insertion of separators or hiding based on window width.
  1573. For example, this is how you would define a part function: >
  1574. call airline#parts#define_function('foo', 'GetFooText')
  1575. <
  1576. Here is how you would define a part that is visible only if the window width
  1577. greater than a minimum width. >
  1578. call airline#parts#define_minwidth('foo', 50)
  1579. <
  1580. Parts can be configured to be visible conditionally. >
  1581. call airline#parts#define_condition('foo', 'getcwd() =~ "work_dir"')
  1582. <
  1583. Now add part "foo" to section airline_section_y: >
  1584. let g:airline_section_y = airline#section#create_right(['ffenc','foo'])
  1585. <
  1586. Note: Part definitions are combinative; e.g. the two examples above modify
  1587. the same `foo` part.
  1588. Note: Look at the source code and tests for the full API.
  1589. ------------------------------------- *airline-predefined-parts*
  1590. The following list of parts are predefined by vim-airline.
  1591. * `mode` displays the current mode
  1592. * `iminsert` displays the current insert method
  1593. * `paste` displays the paste indicator
  1594. * `crypt` displays the crypted indicator
  1595. * `spell` displays the spell indicator
  1596. * `filetype` displays the file type
  1597. * `readonly` displays the read only indicator
  1598. * `file` displays the filename and modified indicator
  1599. * `path` displays the filename (absolute path) and modifier indicator
  1600. * `linenr` displays the current line number
  1601. * `maxlinenr` displays the number of lines in the buffer
  1602. * `ffenc` displays the file format and encoding
  1603. And the following are defined for their respective extensions:
  1604. `ale_error_count` `ale_warning_count` `branch` `eclim` `hunks`
  1605. `languageclient_error_count` `languageclient_warning_count` `lsp_error_count`
  1606. `lsp_warning_count``neomake_error_count` `neomake_warning_count`
  1607. `nvimlsp_error_count` `nvimlsp_warning_count` `obsession`
  1608. `syntastic-warn` `syntastic-err` `tagbar` `whitespace` `windowswap`
  1609. `ycm_error_count` `ycm_warning_count`
  1610. ------------------------------------- *airline-accents*
  1611. Accents can be defined on any part, like so: >
  1612. call airline#parts#define_accent('foo', 'red')
  1613. <
  1614. This will override the colors of that part by using what is defined in that
  1615. particular accent. In the above example, the `red` accent is used, which
  1616. means regardless of which section the part is used in, it will have red
  1617. foreground colors instead of the section's default foreground color.
  1618. The following accents are defined by default. Themes can define their
  1619. variants of the colors, but defaults will be provided if missing. >
  1620. bold, italic, red, green, blue, yellow, orange, purple, none
  1621. <
  1622. The defaults configure the mode and line number parts to be bold, and the
  1623. readonly part to be red.
  1624. "none" is special. This can be used, to remove a bold accent from an existing
  1625. theme. For example, the mode part of the statusline is usually defined to be
  1626. bold. However, it can be hard to remove an existing bold accent from the
  1627. default configuration. Therefore, you can use the none accent to remove
  1628. existing accents, so if you put >
  1629. call airline#parts#define_accent('mode', 'none')
  1630. the mode section will be set to non-bold font style.
  1631. ------------------------------------- *airline-sections*
  1632. Once a part is defined, you can use helper functions to generate the
  1633. statuslines for each section. For example, to use the part above, we could
  1634. define a section like this: >
  1635. function! AirlineInit()
  1636. let g:airline_section_a = airline#section#create(['mode', ' ', 'foo'])
  1637. let g:airline_section_b = airline#section#create_left(['ffenc','file'])
  1638. let g:airline_section_c = airline#section#create(['%{getcwd()}'])
  1639. endfunction
  1640. autocmd User AirlineAfterInit call AirlineInit()
  1641. <
  1642. This will create a section with the `mode`, followed by a space, and our
  1643. `foo` part in section `a`. Section `b` will have two parts with a left-side
  1644. separator. And section `c` will contain the current path. You may notice that
  1645. the space and cwd are not defined parts. For convenience, if a part of that
  1646. key does not exist, it will be inserted as is. The unit tests will be a good
  1647. resource for possibilities.
  1648. Note: The use of |User| is important, because most extensions are lazily
  1649. loaded, so we must give them a chance to define their parts before we can use
  1650. them. Also this autocommand is only triggered, after the airline functions
  1651. are actually available on startup.
  1652. Note: The `airline#section#create` function and friends will do its best to
  1653. create a section with the appropriate separators, but it only works for
  1654. function and text parts. Special 'statusline' items like %f or raw/undefined
  1655. parts will not work as it is not possible to inspect their widths/contents
  1656. before rendering to the statusline.
  1657. =============================================================================
  1658. FUNCREFS *airline-funcrefs*
  1659. vim-airline internally uses funcrefs to integrate with third party plugins,
  1660. and you can tap into this functionality to extend it for you needs. This is
  1661. the most powerful way to customize the statusline, and sometimes it may be
  1662. easier to go this route than the above methods.
  1663. Every section can have two values. The default value is the global `g:`
  1664. variable which is used in the absence of a `w:` value. This makes it very
  1665. easy to override only certain parts of the statusline by only defining
  1666. window-local variables for a subset of all sections.
  1667. ------------------------------------- *add_statusline_func*
  1668. *add_inactive_statusline_func*
  1669. The following is an example of how you can extend vim-airline to support a
  1670. new plugin. >
  1671. function! MyPlugin(...)
  1672. if &filetype == 'MyPluginFileType'
  1673. let w:airline_section_a = 'MyPlugin'
  1674. let w:airline_section_b = '%f'
  1675. let w:airline_section_c = '%{MyPlugin#function()}'
  1676. let g:airline_variable_referenced_in_statusline = 'foo'
  1677. endif
  1678. endfunction
  1679. call airline#add_statusline_func('MyPlugin')
  1680. <
  1681. Notice that only the left side of the statusline is overwritten. This means
  1682. the right side (the line/column numbers, etc) will be intact.
  1683. To have the function act only on statuslines of inactive functions, use
  1684. `airline#add_inactive_statusline_func('MyPlugin')`
  1685. ------------------------------------- *remove_statusline_func*
  1686. You can also remove a function as well, which is useful for when you want a
  1687. temporary override. >
  1688. call airline#remove_statusline_func('MyPlugin')
  1689. <
  1690. =============================================================================
  1691. PIPELINE *airline-pipeline*
  1692. Sometimes you want to do more than just use overrides. The statusline funcref
  1693. is invoked and passed two arguments. The first of these arguments is the
  1694. statusline builder. You can use this to build completely custom statuslines
  1695. to your liking. Here is an example: >
  1696. >
  1697. function! MyPlugin(...)
  1698. " first variable is the statusline builder
  1699. let builder = a:1
  1700. " WARNING: the API for the builder is not finalized and may change
  1701. call builder.add_section('Normal', '%f')
  1702. call builder.add_section('WarningMsg', '%{getcwd()}')
  1703. call builder.split()
  1704. call builder.add_section('airline_z', '%p%%')
  1705. " tell the core to use the contents of the builder
  1706. return 1
  1707. endfunction
  1708. <
  1709. The above example uses various example highlight groups to demonstrate
  1710. that you can use any combination from the loaded colorscheme. However, if
  1711. you want colors to change between modes, you should use one of the section
  1712. highlight groups, e.g. `airline_a` and `airline_b`.
  1713. The second variable is the context, which is a dictionary containing various
  1714. values such as whether the statusline is active or not, and the window
  1715. number.
  1716. >
  1717. context = {
  1718. 'winnr': 'the window number for the statusline',
  1719. 'active': 'whether the window is active or not',
  1720. 'bufnr': 'the current buffer for this window',
  1721. }
  1722. <
  1723. ------------------------------------- *airline-pipeline-return-codes*
  1724. The pipeline accepts various return codes and can be used to determine the
  1725. next action. The following are the supported codes: >
  1726. 0 the default, continue on with the next funcref
  1727. -1 do not modify the statusline
  1728. 1 modify the statusline with the current contents of the builder
  1729. <
  1730. Note: Any value other than 0 will halt the pipeline and prevent the next
  1731. funcref from executing.
  1732. =============================================================================
  1733. WRITING EXTENSIONS *airline-writing-extensions*
  1734. For contributions into the plugin, here are the following guidelines:
  1735. 1. For simple 'filetype' checks, they can be added directly into the
  1736. `extensions.vim` file.
  1737. 2. Pretty much everything else should live as a separate file under the
  1738. `extensions/` directory.
  1739. a. Inside `extensions.vim`, add a check for some variable or command that
  1740. is always available (these must be defined in `plugin/`, and _not_
  1741. `autoload/` of the other plugin). If it exists, then initialize the
  1742. extension. This ensures that the extension is loaded if and only if the
  1743. user has the other plugin installed. Also, a check to
  1744. `airline#extensions#foo_plugin#enabled` should be performed to allow
  1745. the user to disable it.
  1746. b. Configuration variables for the extension should reside in the
  1747. extension, e.g. `g:airline#extensions#foo_plugin#bar_variable`.
  1748. See the source of |example.vim| for documented code of how to write one.
  1749. Looking at the other extensions is also a good resource.
  1750. =============================================================================
  1751. WRITING THEMES *airline-themes*
  1752. Themes are written "close to the metal" -- you will need to know some basic
  1753. VimL syntax to write a theme, but if you've written in any programming
  1754. language before it will be easy to pick up.
  1755. The |dark.vim| theme fully documents this procedure and will guide you
  1756. through the process.
  1757. For other examples, you can visit the official themes repository at
  1758. <https://github.com/vim-airline/vim-airline-themes>. It also includes
  1759. examples such as |jellybeans.vim| which define colors by extracting highlight
  1760. groups from the underlying colorscheme.
  1761. =============================================================================
  1762. TROUBLESHOOTING *airline-troubleshooting*
  1763. Q. There are no colors.
  1764. A. You need to set up your terminal correctly. For more details, see
  1765. <http://vim.wikia.com/wiki/256_colors_in_vim>. Alternatively, if you want
  1766. to bypass the automatic detection of terminal colors, you can force Vim
  1767. into 256 color mode with this: >
  1768. set t_Co=256
  1769. <
  1770. Also if you enable true color mode in your terminal, make sure it will work
  1771. correctly with your terminal. Check if it makes a difference without it: >
  1772. set notermguicolors
  1773. Q. Powerline symbols are not showing up.
  1774. A. First, you must install patched powerline fonts. Second, you must enable
  1775. unicode in vim. >
  1776. set encoding=utf-8
  1777. <
  1778. Q. There is a pause when leaving insert mode.
  1779. A. Add the following to your vimrc. >
  1780. set ttimeoutlen=50
  1781. <
  1782. Q. The colors look a little off for some themes.
  1783. A. Certain themes are derived from the active colorscheme by extracting
  1784. colors from predefined highlight groups. These airline themes will look
  1785. good for their intended matching colorschemes, but will be hit or miss
  1786. when loaded with other colorschemes.
  1787. Q. Themes are missing
  1788. A. Themes have been extracted into the vim-airlines-themes repository. Simply
  1789. clone https://github.com/vim-airline/vim-airline-themes and everything
  1790. should work again.
  1791. Q. Performance is bad
  1792. A. Check the question at the wiki:
  1793. https://github.com/vim-airline/vim-airline/wiki/FAQ#i-have-a-performance-problem
  1794. Q. Something strange happens on certain autocommands
  1795. A. Try to disable the autocommand by setting the 'eventignore' option like
  1796. this: >
  1797. set eventignore+=FocusGained
  1798. Solutions to other common problems can be found in the Wiki:
  1799. <https://github.com/vim-airline/vim-airline/wiki/FAQ>
  1800. =============================================================================
  1801. CONTRIBUTIONS *airline-contributions*
  1802. Contributions and pull requests are welcome.
  1803. =============================================================================
  1804. LICENSE *airline-license*
  1805. MIT License. Copyright © 2013-2021 Bailey Ling, Christian Brabandt, Mike
  1806. Hartington et al.
  1807. vim:tw=78:ts=8:ft=help:norl: