Vim details:
$ vim --version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Jun 5 2020 21:30:37)
macOS version
Here you can see that package v1
word in the starting of the file is not visible properly.
This happens only with .go
file, vimrc file as below,
syntax on
colo gruvbox
" Flash screen instead of beep sound
set visualbell
" Change how vim represents characters on the screen
set encoding=utf-8
" Set the encoding of files written
set fileencoding=utf-8
" Show tabs set 0 if donot want tabs
set showtabline=2
autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4
autocmd Filetype go setlocal tabstop=4 shiftwidth=4 softtabstop=4
" ts - show existing tab with 4 spaces width
" sw - when indenting with '>', use 4 spaces width
" sts - control <tab> and <bs> keys to match tabstop
" Control all other files
set shiftwidth=4
set undofile " Maintain undo history between sessions
set undodir=~/.vim/undodir
" Hardcore mode, disable arrow keys.
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
filetype plugin indent on
set backspace=indent,eol,start
" go-vim plugin specific commands
" Also run `goimports` on your current file on every save
" Might be be slow on large codebases, if so, just comment it out
let g:go_fmt_command = "goimports"
" Status line types/signatures.
let g:go_auto_type_info = 1
au filetype go inoremap <buffer> . .<C-x><C-o>
" If you want to disable gofmt on save
" let g:go_fmt_autosave = 0
"
" NERDTree plugin specific commands
":nnoremap <C-g> :NERDTreeToggle<CR>
"autocmd vimenter * NERDTree
"let NERDTreeMapOpenInTab='<ENTER>'
" air-line plugin specific commands
let g:airline_powerline_fonts = 1
let g:airline_theme='angr'
let g:airline#extensions#tabline#enabled = 1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
" unicode symbols
let g:airline_symbols.whitespace = 'Ξ'
let g:airline_symbols.branch = ''
let g:airline_symbols.readonly = ''
When I use visual mode on the package v1