106.08.18 vs code使用cygwin終端機

用原本M$的 power shell 實在不習慣
雖然 vscode 的 vim mode還不是很完整我不會使用但還是記錄一下
成品:


106.08.17 解決git無法add

錯誤訊息:
fatal: Unable to create '/home/user/pro/selfpro/learn_rust/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.

106.08.06 change cygwin username

修改 Cygwin 的提示字串
這個我也是找很久
原本的醜醜的一大串幾乎沒功用
而且
就是要炫炮 ~ OuO

106.08.05 completor.vim supported rust in cygwin

因為我目前只會用到C、C++、Rust....
然後裝YCM不知道失敗幾次了QuQ
赫然發現 maralla/completor.vim
優點是不用另外編譯
而且也是非同步補全,不會讓vim卡死
C、C++我不知道為何可以正常使用沒出錯(?
但是Rust就一直不行
之前使用vim-racer也不行
推測是racer不支援cygwin的問題
主要原因可能是cygwin呼叫racer時若使用相對路徑則會發生找不到指定路徑
fork專案過來之後改個地方就解決了,就來記錄個OuO

^ Top