0%
設定 Vim 為預設的編輯器
發表於
更新於
所需閱讀時間 ≈
1 分鐘
前言:
每次在安裝 Linux 設定 sudo 時都會預設使用nano編輯器 ,
進入編輯器又不熟悉怎離開的情況下金魚腦忘記指令都必須要查資料才能離開
如果不小心進入 nano 編輯器怎離開
Ctrl + X 之後會問是否存檔 按下 Y / N
設定 Vim為預設編輯器
1 | $ sudo update-alternatives --config editor |
1 | Selection Path Priority Status |
尋找 vim.basic 或 vim.tiny 並將 Selection 輸入並按下Enter,
下次打開的時候就會使用預設的 Vim
參考網站:
https://askubuntu.com/questions/539243/how-to-change-visudo-editor-from-nano-to-vim
如果這一篇文章有幫助到你的話,
請您幫忙點選廣告,都是以不擾人與不強迫的方式呈現
安裝VPS Nginx PHP MySQL
發表於
更新於
所需閱讀時間 ≈
4 分鐘
MySQL 欄位 日期欄位延展到 N 個月底
發表於
更新於
所需閱讀時間 ≈
1 分鐘
第一次使用 Hexo
發表於
更新於
所需閱讀時間 ≈
1 分鐘
Hello World
發表於
更新於
所需閱讀時間 ≈
1 分鐘
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
1 | $ hexo new "My New Post" |
More info: Writing
Run server
1 | $ hexo server |
More info: Server
Generate static files
1 | $ hexo generate |
More info: Generating
Deploy to remote sites
1 | $ hexo deploy |
More info: Deployment