Tsé-Tsé

Vim et Jinja2

06 mai 2011

Activer la coloration syntaxique html + jinja2 dans vim

Copier les fichiers suivants dans ~/.vim/syntax

  • jinja.vim
  • htmljinja.vim

Category: Informatique Tagged: Vim Jinja2 Python


Configuration de vim pour Python sur Ubuntu

01 mai 2011

En suivant les instructions de Henry Precheur

1. Rendre les indentations Vim compatible PEP8

  • Créer le répertoire ~/.vim/ftpplugin
  • Créer le fichier ~/.vim/ftpplugin/python.vim avec le contenu suivant :
    setlocal tabstop=4
    setlocal softtabstop=4
    setlocal shiftwidth=4
    setlocal textwidth=80
    setlocal smarttab
    setlocal expandtab
    

2. Indentation automatique du …

Category: Informatique Tagged: Vim Python

Read More
Site
  • Archives
  • Tags
  • Atom feed
  • RSS feed
Categories
  • Grec ancien
  • Guitare
  • Informatique
  • Voyages
Links
  • Libroscope
Social
  • Twitter