2016-08-23 03:35



I've just begun learning Go, and upon running go fmt, I am finding tab ^I characters appear in my code:

package main
import "fmt"

func main() {
  ^Ifmt.Println("Hello world!")

Is there a way I can configure Vim to not display these characters, while still preserving the tabs in the file itself?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答


  • doupingyun73833 doupingyun73833 5年前

    Following Amadan's suggestion, I edited the file that :verbose set list? returned, which for me is ~/.vim/init/options.vim. Removing set list solved the problem for me

    点赞 评论 复制链接分享
  • douyu0845 douyu0845 5年前

    Just remove this line in your configuration file: :set listchars=tab:\(whatever chracter)\

    set list may be useful later for character editing. I wouldn't recommend just deleting it without knowing what you are doing.

    点赞 评论 复制链接分享