View Issue Details

IDProjectCategoryView StatusLast Update
00019571003.1(2024)/Issue8Shell and Utilitiespublic2025-11-12 05:03
ReporterLove4Boobies Assigned To 
PrioritynormalSeverityEditorialTypeEnhancement Request
Status NewResolutionOpen 
NameBogdan Barbu
Organization
User Reference
Sectionex, vi
Page NumberN/A
Line NumberN/A
Interp Status
Final Accepted Text
Summary0001957: Standardize the -u option for ex/vi
DescriptionAccording to the current standard, the ex utility (and vi, implicitly) looks for .exrc in the home directory. It would be desirable to allow for other locations in order to allow users to have different initialization files for different tasks.
Desired ActionI propose that the -u option be standardized. This already exists in implementations like Vim and Neovim and does not seem to be used for anything else in other implementations that I've checked. It should specify a file to be used instead of the default .exrc file; if multiple -u options are specified then only the last one should apply. This is consistent with the mentioned implementations and is also very useful. For example, consider a user who wishes to keep their configuration files in accordance to the XDG basedir specification, which many programs today follow. They might do the following:

alias vi='vi -u "${XDG_CONFIG_HOME:-$HOME/.config}/exrc"'

If only the last -u option is used, they have the ability to override the alias.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-11-12 05:03 Love4Boobies New Issue