Created
March 18, 2021 17:00
-
-
Save syneart/7f0506b90f296145f4b93d5cdf84caea to your computer and use it in GitHub Desktop.
讓 vim 支援顯示中文和顯示顏色
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat > ~/.vimrc <<EOF | |
syntax on | |
set fileencodings=utf-8 | |
set termencoding=utf-8 | |
set encoding=utf-8 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用以下指令讓你的 vim 編輯器可以顯示中文與顏色
wget -O - https://gist.githubusercontent.com/syneart/7f0506b90f296145f4b93d5cdf84caea/raw/vim_zh_tw_and_color.sh | bash