Modify the filetype as Unix through setting: set filetype=unix
add .gitignore