우분투 18.04 에서 본인이 자주 사용하는 에디터를 editor 명령어와 연결해 두고 사용할 수 있습니다.
# update-alternatives --config editor
대체 항목 editor에 대해 (/usr/bin/editor 제공) 4개 선택이 있습니다.
선택 경로 우선순? 상태
------------------------------------------------------------
* 0 /bin/nano 40 자동 모드
1 /bin/ed -100 수동 모드
2 /bin/nano 40 수동 모드
3 /usr/bin/vim.basic 30 수동 모드
4 /usr/bin/vim.tiny 15 수동 모드
Press <enter> to keep the current choice[*], or type selection number: 4
원하는 에디터 번호를 선택 한 후 editor 명령어를 사용하면 해당 에디터가 실행됩니다.
# editor
