How to set a custom color to folded highlighting in .vimrc (for use with putty)

The cterm in ctermbg is short for “color terminal”. It is used to define the background color when Vim runs in a terminal emulator and can only accept named colors like grey or cyan or color numbers like 7. Hexadecimal values only work in GVim/MacVim and must be used with guibg/guifg like that: hi Folded … Read more

Vim syntax highlighting with $ and lstlisting’s lstinline

Let’s finally solve this issue once and for all! I mailed Charles E. Campbell, the maintainer of tex.vim, suggesting he’d add highlighting rules for the listings package. However it turns out lacking support for the listings package in tex.vim is actually intentional. The reasoning can be found :h tex-package. In short, you’re supposed to create … Read more

Add GoLang syntax highlighting for VIM

UPDATE: Go 1.4 Release Notes Miscellany The standard repository’s top-level misc directory used to contain Go support for editors and IDEs: plugins, initialization scripts and so on. Maintaining these was becoming time-consuming and needed external help because many of the editors listed were not used by members of the core team. It also required us … Read more

How to highlight Bash scripts in Vim?

Are you correctly giving the shell script a .sh extension? Vim’s automatic syntax selection is almost completely based on file name (extension) detection. If a file doesn’t have a syntax set (or is the wrong syntax), Vim won’t automatically change to the correct syntax just because you started typing a script in a given language. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)