Vim where is vimrc




















Asked 4 years, 7 months ago. Active 4 years, 4 months ago. Viewed 7k times. The GVim program does not allow me to write to it. In fact, when I search for my vimrc file in my computer, I see only one file and it looks like the one that opens up in GVim only.

I'd like to understand: Why it appears I have to vimrc files though both programs echo back the same location How I can make changes to the vimrc file from the vantage point of GVim.

I have searched the site but couldn't resolve it myself. Improve this question. Jmaff Jmaff 1 1 silver badge 5 5 bronze badges. You should be able to use the same file for both, but you can specify one to use for just gVim by naming it. Hi Tumbler Yes when I echoed they both return the same place. What's the location that's being reported for both? As a side note, gVim and I think vim as well will need to be run as administrator to make changes to that location.

Don't bother copying all the vim files over. You only need to copy the vimrc. Show 3 more comments. Active Oldest Votes. Improve this answer.

To show line numbers, open Vim configuration file global or user specific depending on your choice and type in the following Vim command:. Now, type in :wq! Vim may not have syntax highlighting enabled by default. But you can easily enable syntax highlighting though the vimrc file by adding the following line of Vim command to the file.

Vim has many syntax highlighting color schemes by default. The syntax highlighting color scheme should be changed. I set it to industry as you can see in the screenshot below. You can also configure the tab size in Vim though the vimrc file. If you think the default tab size is too big for you or is not enough, then this is a good news for you.

Active 9 months ago. Viewed k times. Is there a command in the vim editor to find the. Improve this question. Jonas Stein 6, 6 6 gold badges 38 38 silver badges 67 67 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Skippy le Grand Gourou 5, 3 3 gold badges 41 41 silver badges 66 66 bronze badges. To clarify: :version tells what locations are searched, but doesn't give any info regarding what files were found.

I'm running vim 7. I know this is like two years old but regarding the last two comments. Show 4 more comments. ScaryGhast ScaryGhast 2, 3 3 gold badges 12 12 silver badges 21 21 bronze badges.



0コメント

  • 1000 / 1000