DEV Community

Discussion on: Which editor do you use when opening files like .bash_profile, etc?

Collapse
 
ben profile image
Ben Halpern

I don't find this to be overly odd. I was actually specifically curious as to whether this was a thing.

Collapse
 
faraazahmad profile image
Syed Faraaz Ahmad

I think since some people (myself included) think of vim as an editor just for quick edits, we use it for just that

Thread Thread
 
ben profile image
Ben Halpern

What about the thought that stuff like vi is often the default way to do these things, it becomes your standard procedure, even if for code editing you've always used other types of editors?

I feel like this scenario could play out because folks may not switch off of the approximate default behavior.

Thread Thread
 
ennor profile image
Enno Rehling (恩諾)

What if the situation in which we edit these files is one where we're on an ssh connection in a console window where vim is the most powerful choice that isn't a desktop application? And then that becomes default behavior for config files, like you suggest.

Collapse
 
philnash profile image
Phil Nash

I used to do this in vim, I think because I thought it was quicker. Since I have VS Code open almost all of the time, especially if I'm doing something to .bash_profile, it's just as quick to open in Code and easier (well, more comfortable) to edit.

Also, I have tended to use the terminal from within VS Code more these days, so the whole open and edit process can happen in the same program and I like that.