我注意到,當我保存一個文件並且在代碼中出現語法錯誤時,錯誤quickfix窗口不會自動出現。我最近重建了我的系統,並簡單地複製了我的.vim/
目錄以及相同的.vimrc
文件。我以前做過這個,從來沒有任何問題。但是,如果我手動輸入:GoErrCheck
或GoBuild
,則會顯示窗口。是什麼賦予了?vim-go/synstastic在保存時不會自動顯示的錯誤
這裏是我的.vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
set nu
set completeopt-=preview
set encoding=utf-8 " Set default encoding to UTF-8
set autoread
set laststatus=2
set noswapfile " Don't use swapfile
set nobackup " Don't create annoying backup files
"
nmap <Leader>t :TagbarToggle<CR>
autocmd FileType qf wincmd J
"CtrlP Settings
let g:ctrlp_show_hidden = 1
let g:neocomplete#enable_at_startup = 1
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_fields = 1
let g:go_highlight_structs = 1
let g:go_highlight_interfaces = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
let g:molokai_original = 1
let mapleader=","
colorscheme molokai
你可能會在vim-go回購問題上碰到更好的問題,因爲SO不適用於「工具」問題。 – elithrar