- PVSM.RU - https://www.pvsm.ru -

VimPorn

VimPorn - 1

На reddit большое комьюнити, которое посвящено vim: neovim [1], vim [2], vimplugins [3], vimporn [4]. И чтобы не пропускать какие-то интересные вещи, которые случаются в мире vim, я накидал bash-скрипт. Скрипт выводит топ-5 лучших постов за год по каждому сабредиту. В статье будет сам скрипт, а также я своими словами расскажу о каждом посте, который попал в топ.

Bash скрипт

Ниже bash-скрипт, с помощью которого можно опросить все сабредиты (vim, neovim, vimplugins, vimporn) и получить самые лучшие посты за год.

Документация к API: https://www.reddit.com/dev/api [5]

Код
#!/bin/bash -

LIMIT=5

# one of (hour, day, week, month, year, all)
PERIOD="year"

clear
for subreddit in neovim vim vimplugins vimporn;
do
        echo "$subreddit"
        LINK="https://www.reddit.com/r/${subreddit}/top/.json?t=${PERIOD}&limit=${LIMIT}"
        curl -s $LINK|python -mjson.tool|grep permalink|  cut -d" -f4|sed 's!^!https://www.reddit.com!'
        sleep 10
done

LIMIT - количество топовых постов, которые мы хотим получить

PERIOD - можно подставлять: час, день, неделя, месяц, год или за всё время

В строке for subreddit in neovim vim vimplugins vimporn; вы можете указать свои сабредиты, которые вам интересны.

Результат работы bash-скрипта со ссылками на топовые посты
neovim
cellular-automaton.nvim - My first plugin [6]
byu/Alfierra [7] inneovim [1]
Bram Moolenaar, creator of Vim, has died. [8]
byu/TheSchilk [9] inneovim [1]
Be honest. How much time did you spend customizing your editor? [10]
byu/vincentdnl [11] inProgrammerHumor [12]
I feel attacked [13]
byu/TheRealTey [14] inneovim [1]
lazy.nvim: a new plugin manager for Neovim [15]
byu/folke [16] inneovim [1]
vim
Bram Moolenaar, creator of Vim, has died [17]
byu/DriftingThroughSpace [18] invim [2]
.vimrc [19]
byu/Algod2 [20] invim [2]
Why are Scandinavians so good at Vim? [21]
byu/ScreamingPrawnBucket [22] invim [2]
I designed a Vim cheat sheet coaster for all they don't know how to exit Vim, made out a printed circuit board. I hope you like it :) [23]
byu/WestArtFactory [24] invim [2]
This is what we call 1 in a million. I was going for a walk and found this car with a vim sticker on it. Who tf would put this into his car [25]
byu/Alexxen_ [26] invim [2]
vimplugins
UPDATE: no-neck-pain.nvim - Dead simple plugin to center the currently focused buffer to the middle of the screen. [27]
byu/KLMcreator [28] inneovim [1]
UPDATE: no-neck-pain.nvim - Dead simple plugin to center the currently focused buffer to the middle of the screen. [29]
byu/KLMcreator [28] invimplugins [3]
Papyrus: Pandoc integration for automatic Markdown to PDF compilation in Vim! [30]
byu/memes_for_developers [31] invimplugins [3]
VimTeX v2.12 [32]
byu/lervag [33] invimplugins [3]
Disassembly support lands in vimspector [34]
byu/puremourning [35] invimplugins [3]
vimporn
A lazy sunday rice after quite a while... [36]
byu/probe2k [37] invimporn [4]
Clean and neat borders [38]
by invimporn [39]
Had to do a bit of hacking, but I am super satisfied with these tabs [40]
by invimporn [39]
My First Config [41]
byu/InvestmentRadiant [42] invimporn [4]
https://www.reddit.com/r/vimporn/comments/yfixmz/survived_freshman_year_in_cs_with_only_a_phone/

Теперь можно пробежаться по всем топам и понять все текущие тренды. А начну с десерта - с vimporn.


VIMPORN

Редит, на котором люди выкладывают свои скриншоты. Милого котика, красивый закат можно отправить друзьям или знакомым, но с вимом такой номер не пройдет. Вот люди и нашли себе место, где есть такие же ценители.

1-ое место (A lazy sunday rice after quite a while...)

VimPorn - 2

Ссылка на пост: A lazy sunday rice after quite a while... [36]

Dotfiles: dots.... [43]

Обои : IDK original sauce, so here it is... [44]

Terminal : st

WM : bspwm

Шрифт : Cascadia Code c модификациями

2-ое место (Clean and neat borders)

VimPorn - 3

Ссылка на пост: Clean and neat borders [38]

Тема, которая используется на скриншоте: https://github.com/AlexvZyl/nordic.nvim [45]

3-е место (Had to do a bit of hacking, but I am super satisfied with these tabs)

VimPorn - 4

Ссылка на пост: Had to do a bit of hacking, but I am super satisfied with these tabs [40]

Здесь просто речь идет о вкладках, которые видны на скриншоте сверху. Тема та же самая nordic [45].

4-е место (My First Config)

VimPorn - 5

Ссылка на пост: My First Config [41]

5-е место (Survived freshman year in CS with only a phone. Made this config in the process)

VimPorn - 6

Ссылка на пост: Survived freshman year in CS with only a phone. Made this config in the process [46]

Человек запускает neovim на своем телефоне и использует его с подключенной внешней клавиатурой.


NEOVIM

Сабредит посвящен neovim [47]. Топовые посты:

1-е место (cellular-automaton.nvim - My first plugin)

VimPorn - 7

Ссылка на пост: cellular-automaton.nvim - My first plugin [6]

Шуточный плагин, который надо запускать, когда ничего не работает и жизнь прошла зря. Ссыпает весь ваш код на страничке в одну кучку. См. гифку с работой плагина.

2-е место (Bram Moolenaar, creator of Vim, has died)

Ссылка на пост: Bram Moolenaar, creator of Vim, has died [8]

Сообщение о смерти Брама Моленара, создателя vim.

3-е место: (Be honest. How much time did you spend customizing your editor?)

VimPorn - 8

Ссылка на пост: Be honest. How much time did you spend customizing your editor? [10]

Типа, давайте будем честны, сколько времени вы потратили на настройку вашего редактора? И дальше в комментах начинается базар-вокзал.

4-е место ( I feel attacked)

Ссылка на пост: I feel attacked [13]

Продолжение банкета, который начался на 3-ем месте.

5-е место (lazy.nvim: a new plugin manager for Neovim)

lazy.nvim

lazy.nvim

Ссылка на пост: lazy.nvim: a new plugin manager for Neovim [15]

Пост о новом и модном плагин-менеджере для neovim под названием lazy.nvim. Вот ссылка на гитхаб [48].


VIM

Ветка посвящена классическому vim.

1-е место (Bram Moolenaar, creator of Vim, has died)

Ссылка на пост: Bram Moolenaar, creator of Vim, has died [17]

Сообщение о смерти Брама Моленара, создателя vim.

2-е место (.vimrc)

VimPorn - 10

Ссылка на пост: .vimrc [19]

Народ прикалывается. Vim, когда был только установлен, и два часа спустя. Когда начал менять .vimrc.

3-е место (Why are Scandinavians so good at Vim?)

Ссылка на пост: Why are Scandinavians so good at Vim? [21]

Тут игра слов. Почему скандинавы хороши в vim? Да, потому что они  Vi Kings!

И в комментах тут же ему ответили: "Спасибо, пап!"

Юмористы.

4-е место (I designed a Vim cheat sheet coaster for all they don't know how to exit Vim, made out a printed circuit board. I hope you like it :))

VimPorn - 11
VimPorn - 12
VimPorn - 13

Ссылка на пост: I designed a Vim cheat sheet coaster for all they don't know how to exit Vim, made out a printed circuit board. I hope you like it :) [23]

Человек сделал такую вот крутую подставочку под кофе с горячими клавишами vim. Ему тут же народ в комментах пишет: Shut up and take my money!!! [49]

Я бы тоже такую подставочку подкупил.

5-е место (This is what we call 1 in a million. I was going for a walk and found this car with a vim sticker on it. Who tf would put this into his car )

VimPorn - 14

Ссылка на пост: This is what we call 1 in a million. I was going for a walk and found this car with a vim sticker on it. Who tf would put this into his car [25]

Человека настолько сильно поразило, что кто-то налепил на свою машину наклейку с логотипом вима, что запилил пост на редите. Ему в комментах тут же ответили, что, наверняка, эта машина управляется с помощью hjkl.


VIMPLUGINS

Сабредит, который посвящен плагинам для *vim.

1-е место и 2-е место (UPDATE: no-neck-pain.nvim - Dead simple plugin to center the currently focused buffer to the middle of the screen)

Ссылка на пост: UPDATE: no-neck-pain.nvim - Dead simple plugin to center the currently focused buffer to the middle of the screen. [27]

Ссылка на гитхаб: https://github.com/shortcuts/no-neck-pain.nvim [50]

Плагин смещает текст по центру экрана, типа чтобы шея не болела и текст был прямо перед глазами.

3-е место (Papyrus: Pandoc integration for automatic Markdown to PDF compilation in Vim!)

VimPorn - 15

Ссылка на пост: Papyrus: Pandoc integration for automatic Markdown to PDF compilation in Vim! [30]

Если у вас есть текст, который написан в markdown, то вы можете с помощью этого плагина отконвертировать в pdf. См. скриншот. Компиляция идет непосредственно из vim. Вот ссылка на гитхаб. [51]

4-е место (VimTeX v2.12)

Ссылка на пост: VimTeX v2.12 [32]

В посте говорится о обновлении плагина VimTeX для Vim [52] и Neovim [53] для поддержки LaTeX файлов.

5-е место (Disassembly support lands in vimspector)

VimPorn - 16

Ссылка на пост: Disassembly support lands in vimspector [34]

Автор сообщает об обновлении плагина. Сам плагин представляет собой графический отладчик Vim с поддержкой нескольких языков. В основном он протестирован для C++, Python и TCL, но теоретически поддерживает любой язык.


P.S.

На вкус и цвет фломастеры порны разные. Странно, но лично мне понравились совсем другие, которые в топ не вышли. Решил ими тоже поделиться ниже:

Pink, Productive, Powerful

VimPorn - 17
VimPorn - 18

Пост: Pink, Productive, Powerful [54]

Пост посвящен цветовой схеме для vim под названием https://github.com/Matsuuu/pinkmare [55]

Кого заинтересовал художник обоев, здесь ещё его работы: https://www.artstation.com/aenamiart [56] и сами обои: https://www.artstation.com/artwork/9eYa8L [57]

Bluloco.nvim

Dark

Dark
Light

Light

Ссылка на пост: bluloco.nvim — A fancy but yet sophisticated neovim theme [58]

Пост посвящен neovim теме на гитхабе: https://github.com/uloco/bluloco.nvim [59]

Blazingly fast neovim setup [ pwnvim ]

VimPorn - 21

Пост: Blazingly fast neovim setup [ pwnvim ] [60]

OS на скриншоте [61]

Сборка neovim под названием pwnvim [62]

Автор:
Rilkener

Источник [63]


Сайт-источник PVSM.RU: https://www.pvsm.ru

Путь до страницы источника: https://www.pvsm.ru/news/387222

Ссылки в тексте:

[1] neovim: https://www.reddit.com/r/neovim/

[2] vim: https://www.reddit.com/r/vim/

[3] vimplugins: https://www.reddit.com/r/vimplugins/

[4] vimporn: https://www.reddit.com/r/vimporn/

[5] https://www.reddit.com/dev/api: https://www.reddit.com/dev/api

[6] cellular-automaton.nvim - My first plugin: https://www.reddit.com/r/neovim/comments/z70mg3/cellularautomatonnvim_my_first_plugin/

[7] u/Alfierra: https://www.reddit.com/user/Alfierra/

[8] Bram Moolenaar, creator of Vim, has died.: https://www.reddit.com/r/neovim/comments/15iuujn/bram_moolenaar_creator_of_vim_has_died/

[9] u/TheSchilk: https://www.reddit.com/user/TheSchilk/

[10] Be honest. How much time did you spend customizing your editor?: https://www.reddit.com/r/ProgrammerHumor/comments/12lwmlp/be_honest_how_much_time_did_you_spend_customizing/

[11] u/vincentdnl: https://www.reddit.com/user/vincentdnl/

[12] ProgrammerHumor: https://www.reddit.com/r/ProgrammerHumor/

[13] I feel attacked: https://www.reddit.com/r/neovim/comments/12mx60w/i_feel_attacked/

[14] u/TheRealTey: https://www.reddit.com/user/TheRealTey/

[15] lazy.nvim: a new plugin manager for Neovim: https://www.reddit.com/r/neovim/comments/zqk5ds/lazynvim_a_new_plugin_manager_for_neovim/

[16] u/folke: https://www.reddit.com/user/folke/

[17] Bram Moolenaar, creator of Vim, has died: https://www.reddit.com/r/vim/comments/15iunt4/bram_moolenaar_creator_of_vim_has_died/

[18] u/DriftingThroughSpace: https://www.reddit.com/user/DriftingThroughSpace/

[19] .vimrc: https://www.reddit.com/r/vim/comments/z4b9lo/vimrc/

[20] u/Algod2: https://www.reddit.com/user/Algod2/

[21] Why are Scandinavians so good at Vim?: https://www.reddit.com/r/vim/comments/11lkikt/why_are_scandinavians_so_good_at_vim/

[22] u/ScreamingPrawnBucket: https://www.reddit.com/user/ScreamingPrawnBucket/

[23] I designed a Vim cheat sheet coaster for all they don't know how to exit Vim, made out a printed circuit board. I hope you like it :): https://www.reddit.com/r/vim/comments/10cepn9/i_designed_a_vim_cheat_sheet_coaster_for_all_they/

[24] u/WestArtFactory: https://www.reddit.com/user/WestArtFactory/

[25] This is what we call 1 in a million. I was going for a walk and found this car with a vim sticker on it. Who tf would put this into his car: https://www.reddit.com/r/vim/comments/zc7b6l/this_is_what_we_call_1_in_a_million_i_was_going/

[26] u/Alexxen_: https://www.reddit.com/user/Alexxen_/

[27] UPDATE: no-neck-pain.nvim - Dead simple plugin to center the currently focused buffer to the middle of the screen.: https://www.reddit.com/r/neovim/comments/zoxhup/update_noneckpainnvim_dead_simple_plugin_to/

[28] u/KLMcreator: https://www.reddit.com/user/KLMcreator/

[29] UPDATE: no-neck-pain.nvim - Dead simple plugin to center the currently focused buffer to the middle of the screen.: https://www.reddit.com/r/vimplugins/comments/zxndcz/update_noneckpainnvim_dead_simple_plugin_to/

[30] Papyrus: Pandoc integration for automatic Markdown to PDF compilation in Vim!: https://www.reddit.com/r/vimplugins/comments/117dfe0/papyrus_pandoc_integration_for_automatic_markdown/

[31] u/memes_for_developers: https://www.reddit.com/user/memes_for_developers/

[32] VimTeX v2.12: https://www.reddit.com/r/vimplugins/comments/zv9wdo/vimtex_v212/

[33] u/lervag: https://www.reddit.com/user/lervag/

[34] Disassembly support lands in vimspector: https://www.reddit.com/r/vimplugins/comments/xzwzkf/disassembly_support_lands_in_vimspector/

[35] u/puremourning: https://www.reddit.com/user/puremourning/

[36] A lazy sunday rice after quite a while...: https://www.reddit.com/r/vimporn/comments/xng8eb/a_lazy_sunday_rice_after_quite_a_while/

[37] u/probe2k: https://www.reddit.com/user/probe2k/

[38] Clean and neat borders: https://www.reddit.com/r/vimporn/comments/12xexdh/clean_and_neat_borders/

[39] vimporn: https://www.pvsm.ru"> in

[40] Had to do a bit of hacking, but I am super satisfied with these tabs: https://www.reddit.com/r/vimporn/comments/13enzpk/had_to_do_a_bit_of_hacking_but_i_am_super/

[41] My First Config: https://www.reddit.com/r/vimporn/comments/xm68ud/my_first_config/

[42] u/InvestmentRadiant: https://www.reddit.com/user/InvestmentRadiant/

[43] dots....: https://github.com/probe2k/bspwm_rice

[44] IDK original sauce, so here it is...: https://github.com/probe2k/bspwm_rice/blob/master/bspwm/wal.jpg

[45] https://github.com/AlexvZyl/nordic.nvim: https://github.com/AlexvZyl/nordic.nvim

[46] Survived freshman year in CS with only a phone. Made this config in the process: https://www.reddit.com/r/vimporn/comments/yfixmz/survived_freshman_year_in_cs_with_only_a_phone/

[47] neovim: https://neovim.io

[48] Вот ссылка на гитхаб: https://github.com/folke/lazy.nvim

[49] Shut up and take my money!!!: https://media.giphy.com/media/3oKIPa2TdahY8LAAxy/giphy.gif

[50] https://github.com/shortcuts/no-neck-pain.nvim: https://github.com/shortcuts/no-neck-pain.nvim

[51] ссылка на гитхаб.: https://github.com/abeleinin/papyrus

[52] Vim: http://www.vim.org/

[53] Neovim: https://neovim.io/

[54] Pink, Productive, Powerful: https://www.reddit.com/r/vimporn/comments/z1swk5/pink_productive_powerful/

[55] https://github.com/Matsuuu/pinkmare: https://github.com/Matsuuu/pinkmare

[56] https://www.artstation.com/aenamiart: https://www.artstation.com/aenamiart

[57] https://www.artstation.com/artwork/9eYa8L: https://www.artstation.com/artwork/9eYa8L

[58] bluloco.nvim — A fancy but yet sophisticated neovim theme: https://www.reddit.com/r/neovim/comments/10f77rh/bluloconvim_a_fancy_but_yet_sophisticated_neovim/

[59] https://github.com/uloco/bluloco.nvim: https://github.com/uloco/bluloco.nvim

[60] Blazingly fast neovim setup [ pwnvim ]: https://www.reddit.com/r/vimporn/comments/149owm6/blazingly_fast_neovim_setup_pwnvim/

[61] OS на скриншоте: https://github.com/metis-os

[62] Сборка neovim под названием pwnvim: https://github.com/metis-os/pwnvim

[63] Источник: https://habr.com/ru/articles/761534/?utm_source=habrahabr&utm_medium=rss&utm_campaign=761534