Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ftdetect/ and ftplugin/ directories
- Loading branch information
Showing
3 changed files
with
17 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
autocmd BufRead,BufNewFile *.tidal setfiletype haskell.tidal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
autocmd BufRead,BufNewFile *.tidal setfiletype haskell.tidal | ||
|
||
" vim-slime global options | ||
let g:slime_target="tmux" | ||
let g:slime_paste_file=tempname() | ||
let g:slime_default_config={"socket_name": "default", "target_pane": "tidal:0.1"} | ||
|
||
let g:slime_no_mappings=1 | ||
|
||
autocmd FileType haskell.tidal xmap <buffer> <localleader>s <Plug>SlimeRegionSend | ||
autocmd FileType haskell.tidal nmap <buffer> <localleader>s <Plug>SlimeLineSend | ||
autocmd FileType haskell.tidal nmap <buffer> <localleader>ss <Plug>SlimeParagraphSend | ||
" *hush* zzz... | ||
autocmd FileType haskell.tidal nmap <buffer> <localleader>zz :<c-u>SlimeSend1 hush<cr> | ||
" silence binding for each channel | ||
let c = 1 | ||
while c <= 9 | ||
execute 'autocmd FileType haskell.tidal nmap <buffer> <localleader>'.c.' :<c-u>SlimeSend1 d'.c.' silence<cr>' | ||
let c += 1 | ||
endwhile |