From 7afbdedd7da75fd2643ceb6b808a19cad3c9f32d Mon Sep 17 00:00:00 2001 From: Pavel Lutskov Date: Wed, 5 Feb 2020 20:11:46 +0100 Subject: [PATCH] a bit of haskell --- ftplugin/haskell.vim | 1 + ftplugin/rust.vim | 1 + plugin/comment.vim | 1 + 3 files changed, 3 insertions(+) create mode 100644 ftplugin/haskell.vim diff --git a/ftplugin/haskell.vim b/ftplugin/haskell.vim new file mode 100644 index 0000000..8b057f4 --- /dev/null +++ b/ftplugin/haskell.vim @@ -0,0 +1 @@ +nnoremap x :term runhaskell % diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim index 45a703e..4a3e937 100644 --- a/ftplugin/rust.vim +++ b/ftplugin/rust.vim @@ -1,2 +1,3 @@ nnoremap x :term cargo run iabbrev print println!("{}", +iabbrev debug println!("{:?}", diff --git a/plugin/comment.vim b/plugin/comment.vim index e96f3c7..3f2246e 100644 --- a/plugin/comment.vim +++ b/plugin/comment.vim @@ -18,6 +18,7 @@ let s:comment_map = { \ 'cmake': '#', \ 'scheme': ';;', \ 'yaml': '#' + \ 'haskell': '--' \ } let s:block_map = {