lk/system/editors.md

25 lines
373 B
Markdown
Raw Normal View History

2022-01-16 18:20:39 +00:00
---
title: "editors"
2022-01-26 22:35:07 +00:00
tags: [ "Documentation", "System" ]
2022-01-16 18:20:39 +00:00
---
2022-01-26 22:35:07 +00:00
The System's default text editor can be defined within /etc/profile. It's given the variable `EDITOR`.
2020-01-02 17:44:54 +00:00
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)