vim highlight for python formatted strings. Good lord vim has god awful syntax highlight for Python =/
This commit is contained in:
parent
6fc4556eed
commit
accfd5778a
1 changed files with 3 additions and 0 deletions
3
vimrc
3
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
|
||||
|
|
Loading…
Reference in a new issue