Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let g:types = { 'sh' : '', 'zsh' : '', 'vim' : '', 'diff' : '',
- \ 'python' : '', 'c' : '', 'cpp' : '', 'h' : '',
- \ 'markdown' : '', 'html' : '', 'xml' : '', 'css' : '',
- \ 'javascript' : '', 'clojure' : '', 'go' : '', 'ruby' : '',
- \ 'scala' : '', 'lisp' : '', 'lua' : '', 'php' : '',
- \ 'haskell' : '',
- \ }
- function! CurFiletype(active) abort " {{{2
- let l:ft = has_key(g:types, &filetype) ? g:types[&filetype] : ''
- return l:ft
- endfunction
Add Comment
Please, Sign In to add comment