File: modeline.py

package info (click to toggle)
crazy-complete 0.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 2,404 kB
  • sloc: python: 7,949; sh: 4,636; makefile: 74
file content (7 lines) | stat: -rw-r--r-- 156 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
'''Vim modeline string.'''


def get_vim_modeline(filetype):
    '''Return a vim modeline string.'''

    return f'# vim: ft={filetype} ts=2 sts=2 sw=2 et'