From accfd5778aab6d39e3bef1a7a1ce3fcfbc6911ce Mon Sep 17 00:00:00 2001 From: Von Random Date: Sun, 22 Mar 2015 01:37:27 +0300 Subject: [PATCH] vim highlight for python formatted strings. Good lord vim has god awful syntax highlight for Python =/ --- vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vimrc b/vimrc index ad5ca67..c0d3234 100644 --- a/vimrc +++ b/vimrc @@ -188,6 +188,8 @@ if v:version >= 700 syn match pythonComma "," " parenthesis syn match pythonParens /[(){}\[\]]/ + " TODO: do something about the next thing matching all the strings without .format(). + syn match pythonStringFmt "{[^}]*}" display containedin=pythonString " Apply highlights hi link pythonSelf Identifier @@ -196,6 +198,7 @@ if v:version >= 700 hi link pythonColon Structure hi link pythonComma Structure hi link pythonParens Keyword + hi link pythonStringFmt Identifier " Some preferences setlocal softtabstop=4 shiftwidth=4 colorcolumn=80 textwidth=80 smarttab expandtab