「已注销」 2021-11-28 23:31 采纳率: 50%
浏览 10
已结题

gVim里能否设置类似UE(UltraEdit)里的列标记

如题,gVim里能否设置类似UE(UltraEdit)里的列标记,就是在某些列上设置一条竖线

  • 写回答

1条回答 默认 最新

  • hmsy39 2021-11-29 11:44
    关注

    竖线没有,改颜色倒是可以

    New in Vim 7.3:

    'colorcolumn' is a comma separated list of screen columns that are highlighted with ColorColumn. Useful to align text. Will make screen redrawing slower. The screen column can be an absolute number, or a number preceded with '+' or '-', which is added to or subtracted from 'textwidth'.
    

    Example from the docs:

    :set colorcolumn=+1        " highlight column after 'textwidth'
    
    :set colorcolumn=+1,+2,+3  " highlight three columns after 'textwidth'
    :highlight ColorColumn ctermbg=lightgrey guibg=lightgrey
    

    You can use absolute numbers as well:

    :set colorcolumn=80
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 12月13日
  • 已采纳回答 12月5日
  • 创建了问题 11月28日

悬赏问题

  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 linux驱动,linux应用,多线程