How do I use a custom vimrc file?
up vote
1
down vote
favorite
I have just started using vim and I find a bunch of vimrc files online. How exactly do I tell vim to use this vimrc as the default vimrc. I know I can copy every time but is there a better way to do this?
ubuntu vim vimrc
New contributor
add a comment |
up vote
1
down vote
favorite
I have just started using vim and I find a bunch of vimrc files online. How exactly do I tell vim to use this vimrc as the default vimrc. I know I can copy every time but is there a better way to do this?
ubuntu vim vimrc
New contributor
You can specify an initialization file to use with-u
.
– dsstorefile1
Nov 17 at 13:28
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have just started using vim and I find a bunch of vimrc files online. How exactly do I tell vim to use this vimrc as the default vimrc. I know I can copy every time but is there a better way to do this?
ubuntu vim vimrc
New contributor
I have just started using vim and I find a bunch of vimrc files online. How exactly do I tell vim to use this vimrc as the default vimrc. I know I can copy every time but is there a better way to do this?
ubuntu vim vimrc
ubuntu vim vimrc
New contributor
New contributor
New contributor
asked Nov 17 at 13:14
user3262922
61
61
New contributor
New contributor
You can specify an initialization file to use with-u
.
– dsstorefile1
Nov 17 at 13:28
add a comment |
You can specify an initialization file to use with-u
.
– dsstorefile1
Nov 17 at 13:28
You can specify an initialization file to use with
-u
.– dsstorefile1
Nov 17 at 13:28
You can specify an initialization file to use with
-u
.– dsstorefile1
Nov 17 at 13:28
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
All you have to do is to save the downloaded file and save it to the home directory with the name .vimrc (the full path of the file would then be ~/.vimrc). VIM will automatically detect the file and use it appropriately.
I am using wsl Ubuntu on Windows so I am kinda restricted to commands. Another thing I was worried about was that the these vimrc files are named "vimrc" and not ".vimrc". How do I change that
– user3262922
Nov 18 at 17:45
@user3262922 run the commandmv vimrc .vimrc
from your home (~
) folder.
– Shadoath
Nov 19 at 17:10
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
All you have to do is to save the downloaded file and save it to the home directory with the name .vimrc (the full path of the file would then be ~/.vimrc). VIM will automatically detect the file and use it appropriately.
I am using wsl Ubuntu on Windows so I am kinda restricted to commands. Another thing I was worried about was that the these vimrc files are named "vimrc" and not ".vimrc". How do I change that
– user3262922
Nov 18 at 17:45
@user3262922 run the commandmv vimrc .vimrc
from your home (~
) folder.
– Shadoath
Nov 19 at 17:10
add a comment |
up vote
0
down vote
All you have to do is to save the downloaded file and save it to the home directory with the name .vimrc (the full path of the file would then be ~/.vimrc). VIM will automatically detect the file and use it appropriately.
I am using wsl Ubuntu on Windows so I am kinda restricted to commands. Another thing I was worried about was that the these vimrc files are named "vimrc" and not ".vimrc". How do I change that
– user3262922
Nov 18 at 17:45
@user3262922 run the commandmv vimrc .vimrc
from your home (~
) folder.
– Shadoath
Nov 19 at 17:10
add a comment |
up vote
0
down vote
up vote
0
down vote
All you have to do is to save the downloaded file and save it to the home directory with the name .vimrc (the full path of the file would then be ~/.vimrc). VIM will automatically detect the file and use it appropriately.
All you have to do is to save the downloaded file and save it to the home directory with the name .vimrc (the full path of the file would then be ~/.vimrc). VIM will automatically detect the file and use it appropriately.
answered Nov 17 at 13:39
ahmed
232215
232215
I am using wsl Ubuntu on Windows so I am kinda restricted to commands. Another thing I was worried about was that the these vimrc files are named "vimrc" and not ".vimrc". How do I change that
– user3262922
Nov 18 at 17:45
@user3262922 run the commandmv vimrc .vimrc
from your home (~
) folder.
– Shadoath
Nov 19 at 17:10
add a comment |
I am using wsl Ubuntu on Windows so I am kinda restricted to commands. Another thing I was worried about was that the these vimrc files are named "vimrc" and not ".vimrc". How do I change that
– user3262922
Nov 18 at 17:45
@user3262922 run the commandmv vimrc .vimrc
from your home (~
) folder.
– Shadoath
Nov 19 at 17:10
I am using wsl Ubuntu on Windows so I am kinda restricted to commands. Another thing I was worried about was that the these vimrc files are named "vimrc" and not ".vimrc". How do I change that
– user3262922
Nov 18 at 17:45
I am using wsl Ubuntu on Windows so I am kinda restricted to commands. Another thing I was worried about was that the these vimrc files are named "vimrc" and not ".vimrc". How do I change that
– user3262922
Nov 18 at 17:45
@user3262922 run the command
mv vimrc .vimrc
from your home (~
) folder.– Shadoath
Nov 19 at 17:10
@user3262922 run the command
mv vimrc .vimrc
from your home (~
) folder.– Shadoath
Nov 19 at 17:10
add a comment |
user3262922 is a new contributor. Be nice, and check out our Code of Conduct.
user3262922 is a new contributor. Be nice, and check out our Code of Conduct.
user3262922 is a new contributor. Be nice, and check out our Code of Conduct.
user3262922 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376232%2fhow-do-i-use-a-custom-vimrc-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You can specify an initialization file to use with
-u
.– dsstorefile1
Nov 17 at 13:28