Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to use Syntastic plugin for Vim

📅 2014-Nov-06 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ cpp, plugin, syntastic, vim ⬩ 📚 Archive

Syntastic is a plugin for Vim that can check the currently displayed code for syntax errors and mark those lines with the error messages. This is a type of feature that is typically available in an IDE. This is useful since compile or run-time errors in C++ (or any other language) can be discovered while writing the code without going outside Vim.

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_error_symbol = "✗"
let g:syntastic_warning_symbol = "⚠"

Tried with: Syntastic 3.5.0-72, Vim 7.4 and Ubuntu 14.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧