aboutsummaryrefslogtreecommitdiffhomepage
path: root/.exrc
blob: 1e2a6c5ef320faf8186766e5297f3e626f38c622 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function s:SaveExcursion(cmd)
	let l:win = winsaveview()
	silent execute 'keepjumps %!' .. a:cmd
	call winrestview(l:win)
endfunction

autocmd BufNewFile,BufRead */cmd/extpo/*
	\ setlocal makeprg=go\ build\ ./cmd/extpo

autocmd FileType go autocmd BufWritePre <buffer>
	\ call s:SaveExcursion('gofmt -s')

nnoremap <silent> gM :wall \| make all-i18n<CR>
nnoremap <silent> <LocalLeader>t :vimgrep /\CTODO/ **/*<CR>

runtime plugin/netrwPlugin.vim
let &wildignore = netrw_gitignore#Hide() . ',.git/*,vendor/*'
let g:netrw_list_hide .= ',.*\\.gen\\..*'