View difference between Paste ID: LybEnxu6 and RBQANmFi
SHOW: | | - or go back to the newest paste.
1
let g:types = { 'sh'         : '', 'zsh'     : '', 'vim' : '', 'diff' : '',
2
            \   'python'     : '', 'c'       : '', 'cpp' : '', 'h'    : '',
3
            \   'markdown'   : '', 'html'    : '', 'xml' : '', 'css'  : '',
4
            \   'javascript' : '', 'clojure' : '', 'go'  : '', 'ruby' : '',
5
            \   'scala'      : '', 'lisp'    : '', 'lua' : '', 'php'  : '',
6
            \   'haskell'    : '',
7
            \ }
8
9
function! CurFiletype(active) abort " {{{2
10
    let l:ft = has_key(g:types, &filetype) ? g:types[&filetype] : ''
11
    return l:ft
12
endfunction