Skip to content

Commit

Permalink
Allow configurable mapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcapriotti committed Nov 6, 2012
1 parent 359ce7b commit e730eff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugin/hsModule.vim
@@ -1,7 +1,13 @@
command! InsertHaskellModuleName exe "normal! i".hsModule#MkModuleHeader()

if !exists('g:hs_module_no_mappings')
autocmd FileType haskell nnoremap <buffer> M :InsertHaskellModuleName<CR>
if !exists('g:hs_module_mapping')
let g:hs_module_mapping = 'M'
endif

exec 'autocmd FileType haskell nnoremap <buffer> ' .
\ g:hs_module_mapping .
\ ' :InsertHaskellModuleName<CR>'
endif

if !exists('g:hs_module_no_auto')
Expand Down

0 comments on commit e730eff

Please sign in to comment.