OpenWrt Forum Archive

Topic: editor :: vim

The content of this topic has been archived on 29 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi there

as i'm currently developing a package for openwrt (some accounting hacks) i use vi very often. the thing which is getting more and more annoying is that i have to do a

:set tabstop=2

each time i start vi.

with vim i have the possibility to create a $HOME/.vimrc or $HOME/.exrc (or by setting the EXINIT env variable) where i can setup such standard-commands and vim loads these settings each time it starts.

is there a chance that vim comes into the new versions of openwrt or does anyone know if the vi installed on openwrt supports such a startup-script-file?

which editors do you use for editing .php/.c/.sh/source files?

regards, armin.

I use vim for everything I edit outside of the WRT but the "vi" command included with OpenWRT is actually part of the "busybox" binary. If you didn't know, busybox is a Swiss army knife of commands designed to give as much functionality in as little space as possible so it will be light on features. So I believe it would be a question for the busybox developers if that functionality could be added in or create a separate vi/vim package (vim requires a lot more space). http://www.busybox.net/

The discussion might have continued from here.