top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is a .vimrc file and what should be its location? How to replace tab with 4 spaces using .vimrc?

+1 vote
290 views
What is a .vimrc file and what should be its location? How to replace tab with 4 spaces using .vimrc?
posted Apr 24, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

.vimrc is vim configuration file.
Here you can:
1. set whether to show numbers in file or not
2. set whether searching should be highlighted etc

It's location by default is
/home/user_name/.vimrc
set shiftwidth=4
set tabstop=4
set expandtab

answer Apr 24, 2017 by Mic Sco
Similar Questions
–1 vote

I have a large file which has "some string"so many times, i want it to be replaced with "other string" at all places, using vi or vim editor?
Is there any way to do that?

...