I downloaded a file that would help me customize my vim editor here in the section on "Customizing Vim". I now have the file in /home/double_toned as vimrc. Now when I type vim in the command line, I do not get any output of customization. Why is this? What else do I need to do?

Also, how can I open a random txt file on vim editor using the above customization in vim?

Output of vim --version

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 06 2019 17:31:41)
Included patches: 1-1453
  • Can you please add the output of vim --version to your question? – Simon Sudler Apr 19 at 7:49
  • @SimonSudler , I have added the output of vim --version. – Raghav Kumar Apr 19 at 8:35
  • okay. Can you also add the lines of our $HOME/.vimrc that are not working? – Simon Sudler Apr 19 at 10:15
  • @SimonSudler I found that vim ~/.vimrc will run the text file that customizes vim. Indeed, this file has the required customization but this does not help me, how do I open the other files that I have on vim with customization? Right now, if I use vim [code file] I do not get any error but the code file is opened in vim without customization. – Raghav Kumar Apr 19 at 10:19
  • Vim will always load the ~/.vimrc file. So I assume, that there is some bug in your configuration file.Usually Vim complaints about syntax errors in the .vimrc. Die you see any error messages (in vim enter :messages) – Simon Sudler Apr 19 at 10:27

open vim editor by typing vim in the terminal Once in vim, type :so <name of file with customization> In my case, the file was named vimrc so, my input was :so vimrc and you get all the customization in the vim file you are in.

Note: Got this info from this video

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.