diff --git a/vimrc b/vimrc index dbabcba632b07490d17a6af5d909d534b283f8fa..a498b84e6fb133cc2ef03a70651fccc350ad3e3b 100644 --- a/vimrc +++ b/vimrc @@ -11,9 +11,6 @@ filetype plugin indent on syntax enable -" Disable auto-formatting for Zig files. -let g:zig_fmt_autosave = 0 - nnoremap :bnext nnoremap :bprevious nnoremap :buffers:buffer @@ -23,10 +20,6 @@ " Personal tabs/spaces settings. autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 autocmd Filetype c,cpp,zig setlocal expandtab tabstop=4 shiftwidth=4 autocmd Filetype lua,nix,html,xml,javascript,css setlocal expandtab tabstop=2 shiftwidth=2 - -" External auto-formatters. -autocmd FileType c,cpp setlocal formatprg=clang-format -autocmd FileType go setlocal formatprg=gofmt " Code commenting - https://stackoverflow.com/a/1676672. augroup CodeCommenting