Devs.tw 是讓工程師寫筆記、網誌的平台。歡迎您隨手紀錄、寫作,方便日後搜尋!
電腦送修 拿 mac 來擋著用,順便學習 vim
cd
to the repo and just type vim
:find THE_FILE_PATH
and the tab button is working here!
Ctrl + N
Ctrl + P
but this only works for the opened tabs.
how to make it work for the entire project?
and how to make it work in real-time?
:tabnew THE_FILE_PATH
switch between the tabs
gt (next)
gT (previous)
{n}gt (to nth tab)
syntax on
https://www.quora.com/Is-there-a-way-to-enable-syntax-highlighting-for-PHP-in-vi
預設已經支援很多語言,開啟一個設定即可
我現在都用 phpstorm + vim 外掛
又能享受 vim 編輯的方便 又有人幫我管理設定
不然 .vimrc 都已經寫ㄔㄠ了快 200 行 還是覺得不太順手
至於 VSCode + vim 雖然又輕便又好用 但 vim 模式太常被其他熱鍵破壞掉
還要先解除再恢復 游標行為才能回歸正常