kiss-community / repo

KISS Linux - Unofficial Repositories, mirror of https://codeberg.org/kiss-community/repo
https://kisslinux.org
MIT License
41 stars 17 forks source link

proposal: replace vim with kakoune #102

Closed ghost closed 2 years ago

ghost commented 2 years ago

https://github.com/mawww/kakoune

Vim:

    3801 text files.
    2654 unique files.                                          
    1264 files ignored.

github.com/AlDanial/cloc v 1.94  T=2.90 s (915.4 files/s, 554922.7 lines/s)
---------------------------------------------------------------------------------------
Language                             files          blank        comment           code
---------------------------------------------------------------------------------------
C                                      186          45395          76480         358789
vim script                            1819          51965          53462         346622
PO File                                 40          84845           7822         213287
Text                                   213          44842              0         212511
C/C++ Header                            73           3762           5313          30578
diff                                    42            111           1248          15750
Bourne Shell                            21           2017           1566          14192
C++                                     10           1414           1418           7248
IDL                                    145             18              0           5145
m4                                       1            372            187           4113
make                                    13            799           1573           4093
Python                                  26            162            181            944
Perl                                     8            193            209            770
awk                                      3             35            101            716
YAML                                    10             97             95            711
XML                                      3            389             13            679
Markdown                                 5            205              0            644
Forth                                    1            407              1            630
Prolog                                   1            386              0            609
Verilog-SystemVerilog                    1            354              0            476
Smalltalk                                1            354              0            458
Windows Resource File                    4             67             90            335
DAL                                      1            400            263            309
Objective-C                              1             66             78            247
DOS Batch                               15             31             50            146
TNSDL                                    1              5              0             17
Windows Module Definition                3              6              8             15
Lua                                      2              2              0             10
sed                                      4              0              1              8
C Shell                                  1              0              6              7
---------------------------------------------------------------------------------------
SUM:                                  2654         238699         150165        1220059
---------------------------------------------------------------------------------------

Kakoune:

    2140 text files.
     180 unique files.                                          
    1966 files ignored.

github.com/AlDanial/cloc v 1.94  T=0.25 s (713.1 files/s, 175078.8 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
C++                             56           3310            214          22767
C/C++ Header                    78           2063            184           8281
AsciiDoc                        29           1688              0           4538
Bourne Shell                     4             41              9            240
YAML                             7             28              0            218
make                             2             33              3            162
Python                           1             69             15            144
SVG                              1              3              3             92
Ruby                             1             12              7             61
Markdown                         1              1              0              6
-------------------------------------------------------------------------------
SUM:                           180           7248            435          36509
-------------------------------------------------------------------------------

Also, kakoune doesn't depend on ncurses and follows more the Unix philosophy.

git-bruh commented 2 years ago

Why is vim even present in core repo

ioraff commented 2 years ago

presumably to provide a generic editor that's more functional than busybox vi

illiliti commented 2 years ago

Unfortunately, kakoune sucks because it's written in C++. C++ is notoriously complex language with a lot of nonsense. It makes anything written in it less understandable, hackable and portable. Because of that, I don't think it's acceptable to make it a standard text editor in kiss. Hope you understand