Commit ec8378a

mo khan <mo.khan@gmail.com>
2020-11-09 05:22:09
make go files look less annoying
1 parent a74a551
Changed files (1)
vimrc
@@ -40,9 +40,12 @@ set expandtab                     " use spaces, not tabs
 set list                          " Show invisible characters
 set backspace=indent,eol,start    " backspace through everything in insert mode
 set autoindent                    " copy indent from current line when starting a new one
+"set listchars=tab:\ \ ,trail:·,eol:¬,nbsp:_
 set listchars=""                  " Reset the listchars
 set listchars=tab:\ \             " a tab should display as "  ", trailing whitespace as "."
-set listchars+=trail:.            " show trailing spaces as copyright
+set listchars+=trail:·            " show trailing spaces as copyright
+set listchars+=eol:¬
+set listchars+=nbsp:_
 set listchars+=extends:>          " The character to show in the last column when wrap is
                                   " off and the line continues beyond the right of the screen
 set listchars+=precedes:<         " The character to show in the last column when wrap is
@@ -107,6 +110,7 @@ filetype plugin indent on " Turn on filetype plugins (:help filetype-plugin)
 if has("autocmd")
   au BufNewFile,BufRead *.html set nowrap
   au BufNewFile,BufRead *.json set ft=javascript
+  au BufNewFile,BufRead *.go set nolist
   au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn,txt} set ft=markdown
   au BufRead,BufNewFile {Gemfile,Rakefile,RakeFile,Vagrantfile,config.ru,*.rake} set ft=ruby
   au FocusLost * :w