Show HN: CuteVim – Portable Vim with a cute vimrc
1–10 of 74 posts
Re: Show HN: CuteVim – Portable Vim with a cute vimrc
#2./vim.com -u /zip/usr/share/vim/vimrc
Re: Show HN: CuteVim – Portable Vim with a cute vimrc
#3It's not clear what this is. Is it Vim as a single executable? Is so, what is this doing? ./vim.com -u /zip/usr/share/vim/vimrc
But I apparently am distracted by shiny things and couldn't focus on any of the other stuff after seeing rainbow indentation for the first time.
Re: Show HN: CuteVim – Portable Vim with a cute vimrc
#4It's not clear what this is. Is it Vim as a single executable? Is so, what is this doing? ./vim.com -u /zip/usr/share/vim/vimrc
Redbean web server (by the author of Cosmopolitan, Justine.lol) also uses this method to store its web root.
Re: Show HN: CuteVim – Portable Vim with a cute vimrc
#5It's not clear what this is. Is it Vim as a single executable? Is so, what is this doing? ./vim.com -u /zip/usr/share/vim/vimrc
Basically; it's using the "Actually Portable Executable" system to make a single binary that includes everything it needs including enough portability stuff to run on different systems directly.
> Is so, what is this doing?
When I say "everything it needs", that includes files; APE binaries, AIUI, include some code to transparently read files embedded in themselves, so that line says "run this vim binary, but when it starts instead of reading the user's normal .vimrc (if any), read the vimrc that we embedded in this binary under the virtual /zip path"
Re: Show HN: CuteVim – Portable Vim with a cute vimrc
#6It's not clear what this is. Is it Vim as a single executable? Is so, what is this doing? ./vim.com -u /zip/usr/share/vim/vimrc
Looks like Vim compiled with Actually Portable Executable [1] headers to make a cross-platform (and perhaps also bare metal) vim binary. But I apparently am distracted by shiny things and couldn't focus on any of the other stuff after seeing rainbow indentation for the first time. [1]: https://justine.lol/ape.html
Speaking of which I am a bloated rock musician. I don't feel seen.
Re: Show HN: CuteVim – Portable Vim with a cute vimrc
#7Is this a security risk? Not complaining, as it can be changed in the vimrc, just want to pose the question.
Re: Show HN: CuteVim – Portable Vim with a cute vimrc
#8Re: Show HN: CuteVim – Portable Vim with a cute vimrc
#9the whole point of vi is no key chording so no carpel tunnel. hard pass, thanks.
Re: Show HN: CuteVim – Portable Vim with a cute vimrc
#10> saving backups of files in ~/.vim/backup every time you save, and keeping an undo-per file Is this a security risk? Not complaining, as it can be changed in the vimrc, just want to pose the question.
I can maybe see it be a problem for servers but I can't really think of a likely case, you would have to mess up pretty badly.