Commit Graph

7 Commits

Author SHA1 Message Date
Christian Brabandt 1bb1ce594a Formatter: Use pathshorten() instead of substitute()
The default formatter uses a hand-build regexp for shortening the path
in the tabline. However, since it uses the \w  regex atom, this won't
match e.g. cyrillic letters.

To fix this, use the builtin pathshorten() function which does handle
this case correctly. For a test, use e.g. 'D/Учёба/t.c'

closes #1737
2018-06-04 21:59:16 +02:00
Christian Brabandt 5db4c408bd Update copyright notifications 2018-01-05 10:37:59 +01:00
Christian Brabandt 04be981de9 make ...#fnamemod configurable during runtime
airline#extensions#tabline#fnamemod would be initialized and could not
be changed during runtime, so fix that.

closes #1347
2016-12-02 13:40:34 +01:00
thawk 45d77ca909 Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
Bailey Ling 048b24a916 happy 2016! 2016-01-14 21:38:38 -05:00
Lawrence M 252978e4ac tabline: add fnametruncate option to truncate long tab/buffer names 2015-03-20 16:37:36 -07:00
Bailey Ling ca925efdbf move formatters into their own namespace 2015-02-13 21:50:18 -05:00