"""""""""""""""""""""""""""""" " => Python section """""""""""""""""""""""""""""" let python_highlight_all = 1 au FileType python syn keyword pythonDecorator True None False self au BufNewFile,BufRead *.jinja set syntax=htmljinja au BufNewFile,BufRead *.mako set ft=mako au FileType python map F :set foldmethod=indent au FileType python inoremap $r return au FileType python inoremap $i import au FileType python inoremap $p print au FileType python inoremap $f #--- a au FileType python map 1 /class au FileType python map 2 /def au FileType python map C ?class au FileType python map D ?def au FileType python set cindent au FileType python set cinkeys-=0# au FileType python set indentkeys-=0# """""""""""""""""""""""""""""" " => JavaScript section """"""""""""""""""""""""""""""" au FileType javascript call JavaScriptFold() au FileType javascript setl fen au FileType javascript setl nocindent au FileType javascript imap $log();hi au FileType javascript imap alert();hi au FileType javascript inoremap $r return au FileType javascript inoremap $f //--- PHFP2xi function! JavaScriptFold() setl foldmethod=syntax setl foldlevelstart=1 syn region foldBraces start=/{/ end=/}/ transparent fold keepend extend function! FoldText() return substitute(getline(v:foldstart), '{.*', '{...}', '') endfunction setl foldtext=FoldText() endfunction """""""""""""""""""""""""""""" " => CoffeeScript section """"""""""""""""""""""""""""""" function! CoffeeScriptFold() setl foldmethod=indent setl foldlevelstart=1 endfunction au FileType coffee call CoffeeScriptFold() au FileType gitcommit call setpos('.', [0, 1, 1, 0]) """""""""""""""""""""""""""""" " => Shell section """""""""""""""""""""""""""""" if exists('$TMUX') if has('nvim') set termguicolors else set term=screen-256color endif endif """""""""""""""""""""""""""""" " => Twig section """""""""""""""""""""""""""""" autocmd BufRead *.twig set syntax=html filetype=html