Skip to content

Commit

Permalink
Ensure we have a leading space in key comments
Browse files Browse the repository at this point in the history
It's related to bindings  in JavaScript and Python.
  • Loading branch information
amix committed Feb 7, 2018
1 parent 8eeefe8 commit 3753456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vimrcs/filetypes.vim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ au FileType python map <buffer> F :set foldmethod=indent<cr>
au FileType python inoremap <buffer> $r return
au FileType python inoremap <buffer> $i import
au FileType python inoremap <buffer> $p print
au FileType python inoremap <buffer> $f #--- <esc>a
au FileType python inoremap <buffer> $f # --- <esc>a
au FileType python map <buffer> <leader>1 /class
au FileType python map <buffer> <leader>2 /def
au FileType python map <buffer> <leader>C ?class
Expand All @@ -33,7 +33,7 @@ au FileType javascript imap <c-t> $log();<esc>hi
au FileType javascript imap <c-a> alert();<esc>hi
au FileType javascript inoremap <buffer> $r return
au FileType javascript inoremap <buffer> $f //--- PH<esc>FP2xi
au FileType javascript inoremap <buffer> $f // --- PH<esc>FP2xi
function! JavaScriptFold()
setl foldmethod=syntax
Expand Down

0 comments on commit 3753456

Please sign in to comment.