美文网首页
ubuntu终端下的小技巧

ubuntu终端下的小技巧

作者: zmm0404 | 来源:发表于2018-07-14 19:13 被阅读0次

1. ubuntu终端下补全时忽略大小写

  • 在用户的家目录下创建 .inputrc
  • 编辑 .inputrc 文件
  • 在 .inputrc 中输入以下代码
# do not show hidden files in the list    此行为注释行,不用添加
set match-hidden-files off
 
# auto complete ignoring case 此行为注释行,不用添加
set show-all-if-ambiguous on
set completion-ignore-case on

"\e[A": history-search-backward
"\e[B": history-search-forward

2.vim编辑器设置行号和tab缩进

  • vim默认的情况下没有行号,tab缩进一次是8个空格,在通常情况下我们使用vim写代码时,需要行号和一次4个空格的缩进,进行这些设置更有利于我们的学习和速度的提高.其设置很简单,只需几行代码,具体如下:
Selection_026.png Selection_025.png

相关文章

网友评论

      本文标题:ubuntu终端下的小技巧

      本文链接:https://www.haomeiwen.com/subject/jqgypftx.html