Commit Graph

40 Commits

Author SHA1 Message Date
Christian Brabandt c8a36e14e9
Updated Copyright Statements 2019-03-25 12:29:47 +01:00
Christian Brabandt fd5bde1a3a
allow to show the statusline on top
This is an experimental feature that allows to display the statusline in
the tabline. It might still be a bit rough, but seems to work so far.

Remaining problem:
- Mode changes are not immediately detected, only after moving the
  cursor

fixes #1388
closes #1867
2019-02-03 17:30:55 +01:00
fish 4d825bdb64 Remove trailing space 2018-10-15 20:35:28 +08:00
Christian Brabandt b84e13f1d7
Blacklist startify for [noperm]
Startify unfortunately does not set the buftype option, so the
`[noperm]` would be shown, since the buffer is not really a file.
(see mhinz/vim-startify#324)

So allow to blacklist startify from this setting. To do so, the logic
from the tabline extension was refactored out into a separate function
that returns true, if the buffer matches
`g:airline#extensions#tabline#ignore_bufadd_pat` and that function is
then reused for the readonly() function as well.
2018-05-11 22:32:20 +02:00
Christian Brabandt c7e05efb76
Only consider regular files for the '[noperm]'
Recently, NERDTree added the &readonly setting to its buffer.
Unfortunately, this caused airline to render the '[noperm]' string in
it.

Fix this by only making the readonly check for buffers that actually
represent files (e.g. the buftype option is empty).
2018-05-11 09:53:55 +02:00
Christian Brabandt 5db4c408bd
Update copyright notifications 2018-01-05 10:37:59 +01:00
Christian Brabandt e7a5c97df1
readonly: remove modifiable check 2017-09-01 09:19:39 +02:00
Christian Brabandt a2e20bc3ca
spell: Display spelling language
fixes: #1521
2017-08-01 19:25:20 +02:00
Christian Brabandt d593359500
shorten filetype only when winwidth is < 90 2017-05-02 22:06:36 +02:00
Christian Brabandt a69834f7dc Make fileformat output truncatable
closes #1309
2016-12-13 21:47:09 +01:00
Christian Brabandt 69020706b2 Shorten mode message for small windows 2016-10-20 22:57:26 +02:00
thawk 45d77ca909 Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
Christian Brabandt c058922358 do not use utf-8 chars, if encoding is different
fixes #1234 #1248
2016-09-08 21:33:39 +02:00
Christian Brabandt fdd29caef4 shorten filetype for smaller screens 2016-07-03 21:32:33 +02:00
David Terei ae4a978509 Add spell detection 2016-03-21 23:52:04 -07:00
Daniel Hahler 595d270398 parts#readonly: fix filereadable check with #1054 2016-02-25 02:57:49 +01:00
Daniel Hahler 0485b48dbb Display [noperm] with modifiable, but not readable buffers
Based on: https://github.com/vim-airline/vim-airline/issues/633#issuecomment-174504456
Fixes: https://github.com/vim-airline/vim-airline/issues/633.
2016-02-24 22:03:15 +01:00
Christian Brabandt fdb74f549d Make the BOM indicator '[BOM]'
also, not-exists symbol has nothing to do with powerline fonts, so fix
that.
2016-02-05 18:19:53 +01:00
Christian Brabandt 42b59a05bf Add bomb indicator to the encoding section. 2016-02-05 11:36:47 +01:00
Bailey Ling 048b24a916 happy 2016! 2016-01-14 21:38:38 -05:00
Hendrik Purmann a0110e13bd Add checks for existing key to make #786 work in neovim 2015-06-09 18:19:16 +02:00
Christian Brabandt 9d90e2cbfe Add crypt indicator
If editing an encrypted file, add an indicator, that the file is
encrypted
2015-06-02 20:40:19 +02:00
Bailey Ling 1ca6ffb6d0 happy 2015
resolves #692.
2015-02-13 21:47:43 -05:00
Bailey Ling baed8ac063 happy 2014 2014-01-19 23:44:44 -05:00
Bailey Ling d123e3583a fix parts being undefined when referenced by sections in vimrc (#207). 2013-09-25 22:13:57 -04:00
Bailey Ling e507f481a2 allow parts to be defined in the vimrc as overrides. resolves #284. 2013-09-25 18:48:18 +00:00
Bailey Ling 0a6b833e7c tests for configuring accents directly. 2013-09-15 22:52:42 -04:00
Bailey Ling 55f524de77 support for conditional parts. resolves #238. 2013-09-08 19:06:57 -04:00
Bailey Ling 697e08a83c redefine ffenc as a function (#235). 2013-09-07 18:14:41 +00:00
Bailey Ling 92de8ad160 much smarter handling of separators (#204). 2013-09-01 12:20:54 -04:00
Bailey Ling 69f40d62ee move part declarations back into init. 2013-08-31 22:48:27 -04:00
Bailey Ling fd68997398 lazy load variables until needed (#204).
this allows users to define section variables in their vimrc.
2013-08-31 12:57:02 -04:00
Bailey Ling 7e1206469c basic support for hiding based on win size per part (#200). 2013-08-31 12:33:58 -04:00
Bailey Ling f11f871e39 redefine mode as a raw part. 2013-08-31 12:07:56 -04:00
Bailey Ling a13c692529 define default statusline items with empty contents. 2013-08-31 03:35:23 +00:00
Bailey Ling cb774fcfd0 use correct direction of separators. 2013-08-30 22:10:47 +00:00
Bailey Ling fa517238c7 introduce parts metadata. 2013-08-30 21:51:10 +00:00
Bailey Ling a927bf9475 automatic separators. 2013-08-29 00:57:58 +00:00
Bailey Ling e10b690cdf convert mode/paste/iminsert parts to function names. 2013-08-29 00:09:22 +00:00
Bailey Ling 85c1f5ad03 rename fragments to parts. 2013-08-27 18:08:50 +00:00