Skip to main content

Questions tagged [plugin-airline]

For questions about the plugin vim-airline. The lightweight statusline plugin.

Filter by
Sorted by
Tagged with
1 vote
1 answer
23 views

Wrong fonts in vim-airline

I have vim-devicons installed (using vim-plug, and it is before vim-airline). But I don't see correct language glyphs.
weirdsmiley's user avatar
1 vote
1 answer
67 views

Not displaying symbols in vim-airline

My vim-airline has an unexpected ? symbol next to the program being run: I have tried manually setting the airline_symbols from here, for ex: let g:airline_left_sep = '>' and so on but this does ...
blackthorne18's user avatar
0 votes
0 answers
67 views

How to change spelllang alias in vim-airline (option `vim.g.airline_detect_spelllang = 1`)?

I have enabled the vim.g.airline_detect_spell = 1 and vim.g.airline_detect_spelllang = 1 options (config is written in Lua and can be found here). The vim.g.airline_detect_spelllang = 1 makes the vim-...
Vladyslav Rehan's user avatar
2 votes
0 answers
58 views

Vim and locales

I'm running Vim (9) on Ubuntu both on my local machine and a VPS. I was working on moving my config to the server, where I encountered an error saying: Invalid argument: listchars=tab:~@\ ,trail:~@,...
fbence's user avatar
  • 707
0 votes
2 answers
173 views

Argument of extend() must be a List or Dictionary, using List as a String errors

I have next init.lua in ~/.config/nvim vim.cmd [[packadd packer.nvim]] require('packer').startup(function(use) -- Packer can manage itself use 'wbthomason/packer.nvim' use 'vim-...
Vladyslav Rehan's user avatar
0 votes
2 answers
320 views

Vim to Neovim switch Airline Nerd Font not recognised

I am using Vim with airline for many years. Today I decided to test NeoVim. While in Vim the airline with my Nerd Font works great, in NeoVim it seems to ignore the Nerd Font. NeoVim doesn't display ...
baxbear's user avatar
  • 314
1 vote
1 answer
243 views

Show index of tabs in the tabline

I want when i type :tabnew , that it automatically create numbered (indexed) tabs according to which tab in order it is. if it's 3rd tab that will be opened, than to show number 3 before tab name ( 3 [...
Happy Cakiey's user avatar
0 votes
0 answers
47 views

^@ when placing a string from cmd.exe in vim-airline

I have defined the following function let g:conda_activate = 'myenv' " Get conda virtual environment function Condaenv(env) return system("conda activate ". a:env. " &&...
Barzi2001's user avatar
  • 758
0 votes
0 answers
160 views

How to make columns number display properly in Neovim's airline?

Resizing the window doesn't help, but when I use neovim-qt, I can see the columns number without issues. I am using Manjaro Linux, Plasma 5.25.5, konsole terminal.
Кучерук Денис's user avatar
0 votes
1 answer
79 views

vim-airline customization: parse substring from current branch name

We're formatting our branch name like feature/HD-1234_tiny_description where "1234" refers to a Jira ticket number. I'd like to only display this number in vim-airline (along with vim-...
Sumak's user avatar
  • 103
1 vote
1 answer
553 views

Changing Airline-Vim z section

Currently my z section looks cramped. Is there any way I could add a bit more separation between the symbols? I would like to separate "≡" from the "%"
Peter Petigru's user avatar
1 vote
1 answer
671 views

Statusline/Tabline - Unable to see which buffer is open when many buffers are open in a tab

I have a tab with the following window structure: _________________________________ 1 | 3 | | | | | ...
Tryer's user avatar
  • 247
3 votes
1 answer
2k views

How to change the color of the tabline of the vim-airline?

I'm trying to make transparent the tabline of the vim-airline, as in the second picture. I'm using the onedark colorscheme. They don't have a color specific for that. They use the same color variable ...
rpmeira's user avatar
  • 43
1 vote
0 answers
189 views

How can I change the airline font color from white to black?

I've seen someone who has these things (that I marked) colored as black, but as you can see mine are white. How can I have these things black ?
Alexandru Vasile's user avatar
0 votes
1 answer
467 views

pathshorten: all but containing directory

I display the current file name and path using: let g:airline_section_c = '%{pathshorten(expand(''%:f''))}' Which results in, for example: /h/b/.c/n/init.vim This keeps things tidy. However, it ...
Rich Churcher's user avatar
4 votes
1 answer
2k views

Is it possible to get vim-airline to make the statusline 2 or more lines high?

My statusline has too much information to fit on one line. It was already marginal, but now that I've rotated my monitor into portrait mode, it's a huge issue. I really like all the information ...
daotoad's user avatar
  • 143
0 votes
2 answers
194 views

Vim+Tmux unfocus airline when switching away

I'm using Vim with tmux and I wanted to know if there was a signal or something to 'deactivate' the vim window (like when you switch between vim windows) but also when you switch between Vim and Tmux. ...
vcbbcvbcv's user avatar
1 vote
1 answer
983 views

How do I get the Commands line in the absolute bottom of the screen

I'm setting up neovim and I can't seem to use the screen fully. This is how the terminal looks when I open neovim in either Terminal App, iTerm 2 or Alacrity. There is a whole empty like below where ...
thebenman's user avatar
  • 113
1 vote
0 answers
382 views

Gruvbox theme for Airline resets every time Vim closes

I have installed gruvbox using vim-plug, then I installed Airline and set the theme following the recommendations. But every time I close Vim and open it, the theme for Airline is reset to default and ...
Luis Victoria's user avatar
1 vote
1 answer
491 views

airline-tabline: the action of the first tab is different from others

I'm using the plugins Nerdtree and Airline in my vim. Here is my config: autocmd VimEnter * NERDTree autocmd BufWinEnter * NERDTreeMirror " make Nerdtree available on each tab let g:...
Yves's user avatar
  • 1,023
1 vote
0 answers
73 views

gVim status bar icon on Win10 flicker when vim-airline enabled [closed]

When vim-airline plugin is enabled, gVim's icon on the windows status bar starts flickering as on the seen on this screencast. gVim becomes slow, cursor starts flickering too. This happens when vim-...
user3156459's user avatar
2 votes
1 answer
1k views

vim-airline tabs don't work. resetting airline theme when switching tabs

I faced an issue As you can see on the screenshot, vim does not show tabs with specified airline theme and it shows me this annoying X button at the end of the tabline. Here's my .vimrc: execute ...
Me.'s user avatar
  • 43
2 votes
1 answer
762 views

How to turn on airline theme's background in vim?

I just started using vim and I installed tpope/vim-pathogen and then vim-airline/vim-airline-themes plugin to use these themes. Then I changed my .vimrc to set up the papercolor theme, powerline fonts ...
Me.'s user avatar
  • 43
4 votes
1 answer
3k views

How to remove line column from Airline section z?

I am okay with rest of the section z but I want to remove ㏑ : 1 from the default section z configuration because I think it's not useful for me and takes up the space unnecessarily. Is there a way of ...
Hashir Sarwar's user avatar
1 vote
1 answer
182 views

How to show the name of a help buffer in the tabline of the airline?

I use :h command to open a help buffer. When I switch to other buffers, I can't go back to the opened help buffer. How can I show the name of a help buffer in the tabline of the airline?
Fangquan Shi's user avatar
4 votes
2 answers
3k views

Show terminal buffer in airline's tabline

I use airline's tabline to show a list of my current buffers: Plug 'vim-airline/vim-airline' let g:airline#extensions#tabline#enabled = 1 " Use the airline tabline (replacement for buftabline) let g:...
LondonRob's user avatar
0 votes
1 answer
195 views

How do I redraw airline after setting window-local variable

:help airline states that variables related to sections can be window-local. The example from help shows how to do it for a plugin: function! MyPlugin(...) if &filetype == 'MyPluginFileType'...
Thunderbeef's user avatar
1 vote
2 answers
1k views

How to move airline status bar to the bottom of the editor?

There is VIM's default bar below my Airline's status bar, which causes file information to be viewed twice (as shown in the image). How can I move my airline's bar to the bottom? I have tried adding ...
Hashir Sarwar's user avatar
2 votes
1 answer
1k views

Powerline font not working with airline in (g)vim on Windows 10

I'm trying to set up patched fonts from powerline/fonts with airline in gvim under Windows 10 64 bit. As you can see from the screenshot here: the characters from the font do show up, but the airline ...
Vilinkameni's user avatar
1 vote
1 answer
670 views

How can I add a count of all columns on every line to the statusline in Vim?

I'm using vim-airline and would like to add a count of all characters on the current line to it. It should be displayed like 1:75 where 1 is the column the cursor is currently on and 75 the total ...
Philipp L.'s user avatar
2 votes
1 answer
302 views

How can I remove the word "tabs" at the beginning of the tabbar in airline-vim?

I would like the tabbar to start with the first tab not with "tabs". "tabs>1 main.tex>2 section_01.tex> <tab 2/2"
baxbear's user avatar
  • 314
5 votes
1 answer
3k views

How do I properly set up airline and powerline fonts with gvim?

I've recently started moving over to gvim from vim on Windows. I managed to get the terminal version set up properly, and the fonts render there. In Vim, it works fine: But in gvim, the powerline ...
Zoe - Save the data dump's user avatar
2 votes
1 answer
3k views

Change/Set color to a string in statusline

I'll preface by saying that I am using Airline, plytophogy/vim-virtualenv plugin and gruvbox as the Airline theme. I am trying to change the color of some string in the status line to, say, orange. ...
Andrey Mikus's user avatar
0 votes
1 answer
377 views

how to make buffer bar longer, show the names of more buffers

Currently my buffer bar (I don't know if this is the right word) looks like this: Even though my terminal is super wide, it displays the names of only 4 buffers I have open and then an ellipsis (...) ...
minseong's user avatar
  • 2,393
0 votes
1 answer
3k views

Vim Airline no GitBranch name [doing echo fugitive#head() shows correct branch]

I have Fugitive vim and Airline vim installed via Vundle. I installed them as follow: Plugin 'https://github.com/tpope/vim-fugitive.git' Plugin 'vim-airline/vim-airline' Airline status works fine. ...
mle0312's user avatar
  • 351
0 votes
0 answers
60 views

Displaying specific text only in the airline of a given window

Suppose that using bufwinnr() I find the windows number where a given buffer is being displayed to be 2. With that information, is there a way to display a specific string only in the airline status ...
Jorget Millani's user avatar
1 vote
0 answers
623 views

How to access "additional sections" in vim-airline?

The vim-airline documentation addresses statusline sections as "airline_section_[a-z]" and mentions "additional sections" ([...]). I have searched in vain to figure out what letter/number could be ...
Péter Szigetvári's user avatar
1 vote
0 answers
112 views

Airline section_x for particular filetype

For .js files, I set a particular filetype in order to enable snippets, like this: augroup project autocmd! autocmd BufRead,BufNewFile *.js set filetype=javascript.javascript-es6-react.jsx ...
Keyframe's user avatar
  • 111
2 votes
0 answers
118 views

Monkey-patch plugin function

Is it possible to override an autoloaded plugin-function? I want to customize an airline-internal function just like this: diff --git a/autoload/airline/extensions/default.vim b/autoload/airline/...
der_flo's user avatar
  • 21
2 votes
0 answers
517 views

Vim vim-airline on split view, change colors

I tried vim-airline and it looks nice, while editing on single window. When in split view, with multiple files open, I noticed it focus on current window. By focus I mean the other windows keep ...
KcFnMi's user avatar
  • 133
1 vote
1 answer
1k views

How can I check the "additional sections" of vim-airline in greater details?

I use vim-airline but the content of the "additional sections" on the status bar of the vim-airline are cut off due to the limited space of the window. The space is too tiny to include the last ...
Blaszard's user avatar
  • 565
1 vote
0 answers
144 views

Strange behaviour when switching buffers in vim (syntax highlighting and keymaps cease to work until .vimrc source)

I have set up the following list of commands to switch buffers: (in a .vim file i source from my .vimrc to keep it organised) ...
Ondřej Tkaczyszyn's user avatar
3 votes
1 answer
2k views

Add custom section to airline

I want to add section to mu airline that will display the output of a function called SpinnerText() taken from here. I honestly don't really understand how to do it and yes I did look at the ...
Thermatix's user avatar
  • 249
2 votes
1 answer
2k views

Unknown symbols in vim near filename and filetype

Description I have a problem with weird unknown symbols in the fileformat placement and encoding sections. Environment vim: 7.4.1689 vim-airline: 0.9 OS: Ubuntu 16.04 Reproduced with a minimal ...
det's user avatar
  • 21
0 votes
2 answers
3k views

vim-airline not displayed correctly

My vim-airline plugin looks like this: But on all screenshots it might be like this: Here my Vundle plugins list: Plugin 'VundleVim/Vundle.vim' Plugin 'ctrlpvim/ctrlp.vim' Plugin 'scrooloose/...
TheMY3's user avatar
  • 111
3 votes
3 answers
5k views

Airline fancy symbols missing

I installed the powerline patched fonts by following the wiki at https://powerline.readthedocs.io/en/master/installation/linux.html#patched-font-installation I selected the patched font and added: ...
Codename's user avatar
  • 161
9 votes
1 answer
10k views

Powerline fonts not working on Airline

So, I installed the Airline plugin which is working quite nicely. But, I'd like it a bit sweeter. So I went to Powerline. I installed patched fonts from https://github.com/powerline/fonts/tree/master/...
Axiol's user avatar
  • 191
2 votes
1 answer
1k views

vim-arline-themes can't set theme

I have my .vimrc as set nocompatible filetype off syntax on set nu " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " let ...
user3428154's user avatar
6 votes
2 answers
2k views

Does powerline and Vim work in Windows using Cmder shell terminal?

I am using the cmder under Windows 7. I am using Vim version 7.4; I'm using the airline plugin and I installed the powerline font/patch. I followed the instruction and also added the following to my ...
Stryker's user avatar
  • 173
4 votes
2 answers
2k views

How do I make netrw behave with respects to cycling through buffers with :bprevious/:bnext

I have my vim setup according to "Solution #1: Replicating Tabs with Buffers" on this site buffers-vs-tabs with the vim-airline plugin. If I open numerous files in buffer 'tabs' :bprevious/:bnext ...
jshort's user avatar
  • 241