Vim Techniques 10 - listchars + wrap + list
(my apology for sleepy face, yeah I did sleep less hours these days, but all good :)
This video covers a main topic of "listchars" option which will dictate how things will show when you enable "list" mode via ":set list" while editing your file in vim. Additionally, "wrap" mode via ":set wrap" will complete the whole story.
Thing is "listchars" is the configurable set of characters to be used to show when you enable "list" mode. It has 6 categories of
1. eol - End-of-line
2. space
3. trail - character(s) to show at the end of the line
4. tab
5. extends - in "nowrap" mode, it shows that the line is not shown fully yet, there's more on the right
6. precedes - in "nowrap" mode, it shows the the line is not shown fully yet, there's more on the left
So now you know "wrap" is to complete the whole story by making "extends" and "precedes" category effective.
It has benefit especially when you will submit code to upstream, or either for reviewing. You will be able to detect additional space, or unwanted additional changes locally. So it saves time for reviewers.
---
My listchars setup in .vimrc file can be found at https://gist.github.com/haxpor/dfafea58dc7f56cb503889b097e06a58
---
If you could guess, this time I'm on native Linux, Ubuntu 20.04. Yes, I switch back and forth between Windows 10 (with WSL 1, I'm not fancy WSL 2), and Ubuntu 20.04 kernel 5.8.0-45-generic.
--- Chapters ---
0:00 Introduction
1:21 listchars in .vimrc file
2:19 list mode
3:13 Unicode character support in vim
5:09 wrap mode
5:15 Further interpretation of effect of listchars
9:00 Work with diff from source control e.g. git diff
11:34 Summary
---
#vim #vi #techniques #listchars #wrap #list
-- Follows Wasin on socials --
Website: https://wasin.io
Twitter: @haxpor
LinkedIn: https://www.linkedin.com/in/wasinthonkaew/
Github: https://github.com/haxpor
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Vim Techniques 10 - listchars + wrap + list», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.