Skip to main content
+ apostrophes, - hello
Source Link

Hello everyone I have a very strange issue. I am running vim on my Centos 7 box and having issues getting it to load my .vimrc when I run sudoedit or ssh -e vim.

When I run sudoedit I end up with a few of my settings carrying over but none of my custom colors or any of my key mappings transfer over.

I do see line numbers and I think my indentation settings are working, but not much else.


Here you can see what it looks like normally:

Called as vim

Here is what it looks like when using sudoedit:

Called with sudoedit

I included my :version output just to show itsit's not calling vi or some other version of the editor, and it clearly shows that both are calling the same .vimrc file. ItsIt's just that one is actually reading it and the other isntisn't...

Hello everyone I have a very strange issue. I am running vim on my Centos 7 box and having issues getting it to load my .vimrc when I run sudoedit or ssh -e vim.

When I run sudoedit I end up with a few of my settings carrying over but none of my custom colors or any of my key mappings transfer over.

I do see line numbers and I think my indentation settings are working, but not much else.


Here you can see what it looks like normally:

Called as vim

Here is what it looks like when using sudoedit:

Called with sudoedit

I included my :version output just to show its not calling vi or some other version of the editor, and it clearly shows that both are calling the same .vimrc file. Its just that one is actually reading it and the other isnt...

I have a very strange issue. I am running vim on my Centos 7 box and having issues getting it to load my .vimrc when I run sudoedit or ssh -e vim.

When I run sudoedit I end up with a few of my settings carrying over but none of my custom colors or any of my key mappings transfer over.

I do see line numbers and I think my indentation settings are working, but not much else.


Here you can see what it looks like normally:

Called as vim

Here is what it looks like when using sudoedit:

Called with sudoedit

I included my :version output just to show it's not calling vi or some other version of the editor, and it clearly shows that both are calling the same .vimrc file. It's just that one is actually reading it and the other isn't...

Source Link

.vimrc is not properly loaded when running sudoedit or sudo -e vim

Hello everyone I have a very strange issue. I am running vim on my Centos 7 box and having issues getting it to load my .vimrc when I run sudoedit or ssh -e vim.

When I run sudoedit I end up with a few of my settings carrying over but none of my custom colors or any of my key mappings transfer over.

I do see line numbers and I think my indentation settings are working, but not much else.


Here you can see what it looks like normally:

Called as vim

Here is what it looks like when using sudoedit:

Called with sudoedit

I included my :version output just to show its not calling vi or some other version of the editor, and it clearly shows that both are calling the same .vimrc file. Its just that one is actually reading it and the other isnt...