galeb

Једноставна статичка дистрибуција заснована на musl-у
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување f709da1fe6e7dd8204b03cad1343117730a76158
родитељ d59d4b026f2699272936f2aff6ef514df05e682e
Аутор: Страхиња Радић <contact@strahinja.org>
Датум:   Thu, 28 Jul 2022 20:49:30 +0200

Add /etc/vimrc

Signed-off-by: Страхиња Радић <contact@strahinja.org>

Diffstat:
M03-packages.sh | 33+++++++++++++++++++++++++++++++++
MFAQ | 9+++++++++
Mfil/README.1st | 2+-
измењених датотека: 3, додавања: 43(+), брисања: 1(-)

diff --git a/03-packages.sh b/03-packages.sh @@ -4093,8 +4093,41 @@ mkpk_install() --disable-netbeans \\ --without-x || exit 1 + /${TLD}/bin/sed -i -e '/#define SYS_VIMRC/s,/\*.*\(#define.*"\) '\ +'\*/,\1,' src/feature.h + make ${JN} || exit 1 make install || exit 1 + + rm ../build/share/applications/gvim.desktop + mkdir -p ../build/etc + cat <<@ >../build/etc/vimrc +" Galeb /etc/vimrc + +syntax on +set hidden +set fileformat=unix +set fileformats=unix,dos +set showcmd +set encoding=utf-8 +set termencoding=utf-8 +set fileencoding=utf-8 +set tabstop=8 +set softtabstop=0 +set shiftwidth=0 +set noexpandtab +set textwidth=80 +set cinoptions=:0,l1,g0,t0,U1,Ws,ks +set switchbuf+=usetab + +nmap <C-I> :bnext<CR> +nmap <Tab> :bnext<CR> +nmap <S-Tab> :bprevious<CR> + +cabbrev h only <bar> vertical botright help + +" End /etc/vimrc +@ } ! mkpk ${pkg} diff --git a/FAQ b/FAQ @@ -118,6 +118,15 @@ A: Python doesn't support it yet (apparently?): Q: Why not use scron (simple cron) instead of dcron? A: Because it doesn't support per-user crontabs. +Q: Why not use heirloom vi/ex? +A: Unfortunately, heirloom vi gives "Out of memory - too many lines in file": + https://github.com/n-t-roff/heirloom-ex-vi/issues/3 + +Q: Why not use vis instead of vim? +A: It didn't work well in tty under tmux (only works with tmux-256color and tty + is in 16 color mode, crashes with other TERM settings). I might bring vis + back instead of vim if I figure out how to fix it. + Q: Can you add FOO as a package? A: When I created Galeb, I made my own choice of initial packages. You are free to add whatever you like. Some of my choices regarding packages not being diff --git a/fil/README.1st b/fil/README.1st @@ -42,7 +42,7 @@ and so on. Service management rc.conf(5), service(8), svc(8) Shell lksh(1), mksh(1), rc(1) Terminal multiplexer tmux(1) - Text editor sled(1), vis(1) + Text editor sled(1), vim(1) Web browser elinks(1) Galeb uses programs from suckless sbase, ubase and 9base, which differ from