Skip to content

Vim plugin for the Fluid Template Engine, indenting, and syntax plugin. Integrated HTML, JavaScript and CSS indention and highlighting.

Notifications You must be signed in to change notification settings

mipmip/vim-fluid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-fluid

Vim plugin for the Fluid Template Engine offering indention and syntax highlighting for fluid code together with plain HTML and JavaScript and CSS code.

Fluid is the core template engine of TYPO3.

Usage

vim-fluid autodetects .fluid files but in most cases your files will end with .html, so you should set a modeline on top of your file. E.g.:

<!-- vim: set ft=fluid :-->

Example

:ggVG produces this indenting

<!-- fluid indenting test file -->
 <html>
   <script>
     if (x=1){
       var x=e;
     }
   </script>

   <style>
      .class-x {
        color:white;
      }
   </style>

   <div>
     <f:for each="{filters}" as="filter">
       <f:if condition="{filter.type} == 'checkbox'">
         <f:then>
           <f:render partial="checkbox" arguments="{filter : filter}" />
         </f:then>
         <f:else>
           <f:render partial="selectbox" arguments="{filter : filter}" />
         </f:else>
       </f:if>
     </f:for>
   </div>
</html>

Contributing

  1. Fork it ( https://github.com/mipmip/vim-fluid/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Credits

image

About

Vim plugin for the Fluid Template Engine, indenting, and syntax plugin. Integrated HTML, JavaScript and CSS indention and highlighting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published