how to change the tab size in vi?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to change the tab size in vi?
# 8  
Old 04-15-2002
Depends..... what login shell are you running?
# 9  
Old 04-16-2002
I'm running in a bash environment.
# 10  
Old 04-17-2002
vi looks for the rc files in the following order:

/etc/vi.exrc
$HOME/.nexrc
$HOME/.exrc
.nexrc
.exrc

If it doesn't use your $HOME/.exrc per default, maybe it loads up /etc/vi.exrc or $HOME/.nexrc first? Check if those exist, and maybe alter those or delete them, if you may.

HTH,
Lexx
Lexx
# 11  
Old 04-17-2002
Thanks for the info, the only one that exists is the one that I created:
$HOME/.exrc

vi isn't reading it when it starts up.


btw, is exrc an acronym?
# 12  
Old 04-17-2002
Hm, now that is strange. Which system and shell are you using? Any strange environment variables set which could affect this (I can't think of any in particular, just look through them)

'rc' files are usually setup files, and ex is an editor which has something in common with vi, I'm not sure what though, as I have never used it. Apparently, vi seems to be based on this one as it's using the same setup file. Someone correct me if this suggestion is wrong.

Greetings,
Lexx

--
:wq!
Lexx
# 13  
Old 04-17-2002
Very close.
ex is a line-editor much like ed, but with some better features.
vi was built "on top" of ex - some versions of vi allow you toggle between ex-mode and vi-mode.
An *rc file typically means "run commands", and is sourced (to relate it to a shell function) rather than executed.
So .exrc is the "run commands" config file for ex, that vi reads as well, since vi is dependant on ex. Many of the new incarnations actually incorporate ex and vi in the same executable with hardlinks to each other.
See the full and more acurate history here:
http://www.cs.pdx.edu/~kirkenda/joy84.html

Linked to from the "vi Lovers Homepage":
http://www.thomer.com/vi/vi.html
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Change size of watermark

I'm using this code to watermark images (add a logo). How do I change the size of the watermark to cover a certain percentage of the image ffmpeg -i folder/s886_01.jpg -i watermark.png -filter_complex overlay=15:15 output.png (2 Replies)
Discussion started by: locoroco
2 Replies

2. Ubuntu

How to change ffmpeg default font size?

Hello, I have a problem with Greek subtitle font size when I map a subtitle file into a video in ffmpeg. I ran below code: ffmpeg -i video.mp4 -sub_charenc CP1253 -i video_sub.srt -c:v copy -c:a copy \ -c:s mov_text -metadata:s:s:0 language=gr mapped_video.mp4 When I play it in VLC,... (2 Replies)
Discussion started by: baris35
2 Replies

3. Programming

Java JOptionPanel change text field with TAB

So I don't really know anything about Frames, Windows, or Panels.. I just got interested in Java because a coworker is doing classes in it. I know some other languages but never did GUI things...I literally just got NetBeans, and drew up a dialog using it's Design view. All I want is for the TAB... (0 Replies)
Discussion started by: neutronscott
0 Replies

4. Windows & DOS: Issues & Discussions

Change tab size to 4

forum members, gvim version 6.0.150.0 Vi has been my favorite editor for over 30 years. Mostly with Unix but now with windows XP. It works fine but I want to change the tab to 4 spaces instead of 8. I read on the internet that I can edit the .vimrc file but I only have an _vimrc... (12 Replies)
Discussion started by: jerryd
12 Replies

5. Linux

kde 4.3 and tab size

Hi Guys I have just upgraded to kde4 and i noticed that the default tab size in konsole are massive, i cannot see the setting to change this any hlep thanks Adam (0 Replies)
Discussion started by: ab52
0 Replies

6. UNIX for Dummies Questions & Answers

How to get directories colored when doing change directory and tab

I am trying to navigate between directories using cd. However, the only way to distinguish directories now is by seeing the "/' after the directory names, which is quite inefficient. How can I make the directories look in color when typing cd and then using the tab key to list the files and... (1 Reply)
Discussion started by: genehunter
1 Replies

7. Shell Programming and Scripting

formatting tab with even size

I have a number of columns separated by tabs but the spacing between them are of different sizes. Is there any way of separating them with tab of even size? Thank you. (4 Replies)
Discussion started by: ivpz
4 Replies

8. AIX

Change the Block size of AIX 6.1

Friends , I know the most cases the unix operation system holds the default block size 4MB . In AIX 5.3 and AIX 6.1 , also use upto 4 MB as its default block size .Now I want to change this value from 4MB to 8MB as AIX block size . Is it possible to change the block size value in AIX 6.1/5.3... (2 Replies)
Discussion started by: shipon_97
2 Replies

9. Shell Programming and Scripting

change the font size in bash

Hi, I would like to change the font size in bash. I know how do it in ksh: F_VDOBLE="\033#6" print "${F_VDOBLE}Esto es..." But in bash I don't know Could you help me please? Many thanks! (5 Replies)
Discussion started by: mierdatuti
5 Replies

10. UNIX for Advanced & Expert Users

File system size change

Good morning folks! I'm new here.. trying to find an answer on how to resize filesystem. Need to add some space to c0t0d0s5, /var... Is it possible at all? JV (9 Replies)
Discussion started by: jvinn
9 Replies
Login or Register to Ask a Question