move vim to primary folder

This commit is contained in:
Malin Freeborn
2020-01-14 03:29:26 +01:00
parent b6ae7a2fed
commit 20dba22e6f
6 changed files with 0 additions and 0 deletions

20
system/editors.md Normal file
View File

@@ -0,0 +1,20 @@
The system's default text editor can be defined within /etc/profile. It's given the variable `EDITOR`.
Add these lines to /etc/profile:
```
export EDITOR=vim
export VISUAL=$EDITOR
```
Then reload that profile with:
> source /etc/profile
If nano still pops up:
> sudo ln -sf $(which vim) $(which nano)