Is there virc or exrc for saving vi configuration settings in AIX?


 
Thread Tools Search this Thread
Operating Systems AIX Is there virc or exrc for saving vi configuration settings in AIX?
# 1  
Old 05-19-2017
Linux Is there virc or exrc for saving vi configuration settings in AIX?

There's no Vim in AIX (6 and 7), but Vi is natively available.

I want to save my configuration for Vi like `set nu` to number lines in files.

I couldn't find configuration related to Vi in /etc/ or /usr/etc/ folders.

Please help me with that.
# 2  
Old 05-19-2017
I think it is ~/.exrc but it's in the man pages for vi. Sadly I don't have an AIX server available to check it though.



I hope that this helps,
Robin
# 3  
Old 05-22-2017
BSD system-wide exrc

Quote:
Originally Posted by rbatte1
I think it is ~/.exrc but it's in the man pages for vi. Sadly I don't have an AIX server available to check it though.



I hope that this helps,
Robin
Thank you, Robin, it helped, but it's user-specific, I'd like to find system-wide solution that would apply to all users.

I already tried creating, editing, and adding into `/etc/exrc` and `/etc/vi.exrc` as suggested in other forums but with no success.
# 4  
Old 05-22-2017
Quote:
Originally Posted by Chinggis6
Thank you, Robin, it helped, but it's user-specific, I'd like to find system-wide solution that would apply to all users.

I already tried creating, editing, and adding into `/etc/exrc` and `/etc/vi.exrc` as suggested in other forums but with no success.
No, you don't. You have no right to decide how other people on your system want to use vi. You should just use $HOME/.exrc to set the defaults you want when you use vi and ex (and view, rview, etc.) and not assume that you know how I want those utilities to behave when I log in to your system.
This User Gave Thanks to Don Cragun For This Post:
# 5  
Old 05-23-2017
I suppose if you want to have a standard, you could soft link $HOME/.exrc to a central file (e.g. /etc/exrc), making the central file read-only. To alter the settings, a user would need to:-
Code:
rm ~/.exrc
cat /etc/exrc > ~/.exrc

That would then copy, but cut them adrift from your standard settings and they could then change them as to their need.

Personally I think it's a terrible idea, but that is a way you could make it work.



Robin
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

What are the ideal ulimit settings for root user in AIX?

Hi, what are the ideal/best/recommended ulimit settings for a root user in AIX? I understand that it depends on our environment. But I would like to know...what are settings you guys use in your environment for best performance. default: fsize = 2097151 core = 2097151 ... (8 Replies)
Discussion started by: System Admin 77
8 Replies

2. Red Hat

Saving TTY settings

I have 4 digi etherlite boards that allow Wyse and VT100 terminals to connect to our network (stop laughing) :) We are switching from an older version of redhat where we have these running to: Red Hat Enterprise Linux Server release 6.5 (Santiago) I finally got them working and copied the tty... (5 Replies)
Discussion started by: mp99
5 Replies

3. UNIX for Dummies Questions & Answers

Terminal emulation settings help rlogin AIX to SCO

I use a program called TinyTerm to access our AIX machine. It works fine except for when I rlogin into our SCO unix server. Backspace doesn't delete, ctrl-c doesn't work (delete key does same thing), and the most annoying thing is vi acts very wierd. I have to press the down arrow like 3 times to... (11 Replies)
Discussion started by: herot
11 Replies

4. AIX

Settings change in aix

Hi Can any one tell the procedure to change the maxpout and minpout settings on AIX (1 Reply)
Discussion started by: newtoaixos
1 Replies

5. AIX

default settings of security password in AIX

Hi Guy's Just I want to know the default settings of security password in AIX there is some changes happened in my machine when I try to change my password I'm getting this message Changing password for "root" root's New password: a minimum of 1 elapsed week between changes.... (1 Reply)
Discussion started by: Mr.AIX
1 Replies

6. Solaris

Saving Font Settings

I've written some tools that don't like the default font setting that come up with the Common Desktop Environment. (The text on the buttons looks like the dingbat character set.) The work around is to go into the style manager and set the font to anything other than 'medium' which is the default.... (2 Replies)
Discussion started by: scottwevans
2 Replies

7. AIX

P520 AIX com port (tty0) settings

I have software running under AIX 5.3 that should communicate with a special device using standard communication protocol (Modbus) using serial RS-232 line The settings are correct in both sides, But I can't establish a connection. I suspect that there's something that I should do regarding the... (3 Replies)
Discussion started by: ayman metwally
3 Replies

8. Solaris

Saving Desktop configuration

How can I save my desktop configurations?? (background, wallpaper, etc) (2 Replies)
Discussion started by: ulisses0205
2 Replies
Login or Register to Ask a Question