• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

enomsg/vim-haskellConcealPlus: Extended Haskell Conceal feature for Vim

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

enomsg/vim-haskellConcealPlus

开源软件地址(OpenSource Url):

https://github.com/enomsg/vim-haskellConcealPlus

开源编程语言(OpenSource Language):

Vim Script 87.2%

开源软件介绍(OpenSource Introduction):

Vim Haskell Conceal+

This bundle provides extended Haskell Conceal feature for Vim. The feature is used to display unicode operators in Haskell code without changing the underlying file.

This package offers more (and, more importantly, configurable) features than the baseline vim-haskellConcealbundle. The baseline bundle has numerous forks, which is possible to combine, so everyone is welcome to share, improve or contribute new notations to this Conceal Plus package.

GitHub: https://github.com/enomsg/vim-haskellConcealPlus

Why Concealing

  • Using things like '->' instead real arrows '→' was never a deliberate choice, but a choice made due to limitations of teletypewriters and input inconvenience.

  • With concealing you don't have to deal with cumbersome unicode-input methods, yet you can enjoy proper notation.

  • It is not only about aesthetics. Excess of multi-character functions may create visual noise, which negatively affects readability. Using special symbols and true arrows, together with colors and bold/italic face seems to improve the situation. The image shows Vim with and without concealing, both running in a plain terminal emulator:

demo

  • Using concealing instead of -unicode versions of packages also has some advantages. Mainly, concealing does not require any changes to the source code, it is backwards-compatible with idiomatic code. Secondly, with concealing no special input methods are needed. Plus, currently some features are hardly possible without editor's concealing (e.g. power superscripts).

Installation

Using Vim built-in pack support:

$ mkdir -p ~/.vim/pack/vim-haskellConcealPlus/start
$ cd ~/.vim/pack/vim-haskellConcealPlus/start
$ git clone https://github.com/enomsg/vim-haskellConcealPlus
$ echo "syn on" >> ~/.vimrc # If not already in .vimrc
$ echo "setlocal conceallevel=2" >> ~/.vimrc # If not already in .vimrc
$ echo "set concealcursor=nciv" >> ~/.vimrc # Optional

Available Options


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap