Questions tagged [statusline]
51 questions
1
vote
1 answer
alter vim's mode indicator text to just the first letter in airline
I have vim with airline, that tells me which mode I am in. I would like to change it so that rather than the whole word it just displays the first letter. So N, I or V. Although I can find instructions for changing colours of the mode indicator, I…

leonormes
- 979
- 10
- 29
1
vote
2 answers
Vim status line not working
I'm on OS X and I've installed Vim using Homebrew via
brew install vim
I noticed that whenever I use Vim, there is no status line appearing at the bottom. I thought I could fix it by always displaying the status line by adding the following to…

Thomas Vanhelden
- 879
- 8
- 20
1
vote
1 answer
Vim status line won't immediately appear unless i press a key?
I just moved to Vim about 3 weeks ago. I know this is minor problem but i find it somehow annoy me. Whenever i open vim, statusline (or statusbar?) won't immediately appear (+ cursor always positioned at the last line of the screen) unless i press a…

wlwtvr
- 13
- 3
1
vote
1 answer
How I can show the time in Vim Status Bar?
This is the following code I am using
set statusline=\PATH:\ %r%F\ \ \ \ \LINE:\ %l/%L/%P
In the same statusline how I can show the time information ? Thanks for suggestion.

J4cK
- 30,459
- 8
- 42
- 54
1
vote
1 answer
Function eats my space characters
I wrote a function
function! BrickWrap(data, icon_align, icon_left, icon_right)
if empty(a:data)
return ''
endif
let l:brick = (a:icon_align ==# 'left') ? a:icon_left . a:data :
\ (a:icon_align ==# 'right') ?…

Saucier
- 4,200
- 1
- 25
- 46
1
vote
2 answers
Display the current status of `expandtab` in statusline in macvim
I am currently using vim-airline in my macvim and I want to display the status of expandtab whether it is set or not in the statusline.
I can find out the status of expandtab by running the following command :set expandtab?. From the vim-airline…

Sudar
- 18,954
- 30
- 85
- 131
1
vote
1 answer
How to change color in statusline if current file has no utf8 fileencoding?
I want to realize a different color in my statusline if a file has no utf8 encoding.
This is what I use now:
set statusline+=%3*\ F:%{&fileencoding?&fileencoding:&fileencoding}
hi User3 guifg=#292b00 guibg=#f4f597
This is what I want to…

Reman
- 7,931
- 11
- 55
- 97
1
vote
1 answer
Hide lightline for MiniBufExplorer
Is there any way to do not show status line (I am using lightline) for some windows - MiniBufExplorer or NERDTree ?

melekes
- 1,880
- 2
- 24
- 30
0
votes
0 answers
Tmux statusline with different status-interval for different scripts
My tmux.conf uses three shell scripts to show system usage, CPU/GPU/HDD temperatures, and current weather on the right-side of the tmux statusline (image attached). I'd like to use different status-interval times for each of these scripts, if…

Manojit
- 611
- 1
- 8
- 18
0
votes
0 answers
Colors in neovim statusline only update after keypress
I use neovim and I made my own statusline, which used to work perfectly. It showed the status of the file (saved/modified etc) and the mode, in text as well as in color. The color got updated immediately (so when when a file got modified, and u was…

user5328080
- 49
- 5
0
votes
1 answer
neovim, statusline when vectical split
I have a custom statusline that I build in a function. My function is mainly to perform some string substitutions in the path of the current file.
In init.vim
let g:mystatus = ''
function! UpdateStatusline()
let g:mystatus =expand('%:p:~')
…

Laurent Claessens
- 547
- 1
- 3
- 18
0
votes
1 answer
How can I show the value of a Vim option in the status line
I would like my status line to display wrap/nowrap.
set statusline +=%{execute(':set wrap')}
doesn't work. How do I do this?
Thanks!

Jim Bollinger
- 1,671
- 1
- 13
0
votes
1 answer
vim DIY statusline + git diff --numstat
I'm trying to add the result of the following command to my diy vim status line
git diff --numstat
I've tried a bunch of methods, all of which have failed, almost the same way. Example:
function! GetGitDiffSummary()
let l:adds =…

DanTheMan
- 33
- 5
0
votes
1 answer
Nvim render bugs when resize using tmux
I'm having some really annoying issues with nvim, when I resize my terminal using nvim on tmux the statusline kind of duplicate itself, I am not sure if this is a buffer problem or something to do with my terminal (alacritty) but I was able to…

Alucherdi
- 1
- 1
0
votes
1 answer
How to the display the number of instances of a string in vim statusline
A while ago I got to find a function to use in .vimrc to show if there ocurrances of " TODO " in the current buffer and show TD in the statusline. This is the function:
...
hi If_TODO_COLOR ctermbg=0 ctermfg=175 cterm=bold
set…

nino
- 554
- 2
- 7
- 20