1.四空格配置
filetype plugin indent on" show existing tab with 4 spaces widthset tabstop=4" when indenting with '>', use 4 spaces widthset shiftwidth=4" On pressing tab, insert 4 spacesset expandtab" Set number on leftset number
2.插件位置
/root/.config/nvim/plugged
3.综合配置
filetype plugin indent on" show existing tab with 4 spaces widthset tabstop=4" when indenting with '>', use 4 spaces widthset shiftwidth=4" On pressing tab, insert 4 spacesset expandtab" Set number on leftset numbercall plug#begin()Plug 'https://github.com.cnpmjs.org/kassio/neoterm.git'call plug#end()" nnoremap <F4> <Esc>:w<CR>:Tnew<CR>:bn<CR>autocmd VimEnter * :Tnewautocmd VimEnter * :bnnnoremap <F5> <Esc>:w<CR>:T go run %<CR>:bn<CR>nnoremap <F4> <Esc>:bn<CR>
4.一键运行
autocmd FileType go nnoremap <buffer>\ <F5> :w<CR>:sp<CR>:wincmd w<CR>:resize 10<CR>:term go run %<CR>
