Permalink
Browse files

Allow configurable mapping.

  • Loading branch information...
1 parent 359ce7b commit e730eff1e1e9ca6364522d58f9a3414a96108c58 @pcapriotti pcapriotti committed Nov 6, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 plugin/hsModule.vim
View
@@ -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')

0 comments on commit e730eff

Please sign in to comment.