Skip to content

Instantly share code, notes, and snippets.

@syneart
Created March 18, 2021 17:00
Show Gist options
  • Save syneart/7f0506b90f296145f4b93d5cdf84caea to your computer and use it in GitHub Desktop.
Save syneart/7f0506b90f296145f4b93d5cdf84caea to your computer and use it in GitHub Desktop.
讓 vim 支援顯示中文和顯示顏色
#!/bin/bash
cat > ~/.vimrc <<EOF
syntax on
set fileencodings=utf-8
set termencoding=utf-8
set encoding=utf-8
EOF
@syneart
Copy link
Author

syneart commented Mar 18, 2021

使用以下指令讓你的 vim 編輯器可以顯示中文與顏色
wget -O - https://gist.githubusercontent.com/syneart/7f0506b90f296145f4b93d5cdf84caea/raw/vim_zh_tw_and_color.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment