diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-09-22 05:05:18 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-09-22 05:05:18 +0200 |
| commit | 5be28b2e7a204cfbc1fcf8623cfef09109a6bb3a (patch) | |
| tree | 92716819483777ec789c9a0336890b411d31c818 | |
| parent | ba3f9851161e27cff4bff89d80a6b12d7ad9605e (diff) | |
| download | dotfiles-5be28b2e7a204cfbc1fcf8623cfef09109a6bb3a.tar.gz | |
Cleanup
| -rw-r--r-- | vimrc | 7 |
1 files changed, 0 insertions, 7 deletions
| @@ -11,9 +11,6 @@ set path+=** gp=grep\ -irn | |||
| 11 | filetype plugin indent on | 11 | filetype plugin indent on |
| 12 | syntax enable | 12 | syntax enable |
| 13 | 13 | ||
| 14 | " Disable auto-formatting for Zig files. | ||
| 15 | let g:zig_fmt_autosave = 0 | ||
| 16 | |||
| 17 | nnoremap <C-Right> :bnext<cr> | 14 | nnoremap <C-Right> :bnext<cr> |
| 18 | nnoremap <C-Left> :bprevious<cr> | 15 | nnoremap <C-Left> :bprevious<cr> |
| 19 | nnoremap <C-b> :buffers<cr>:buffer | 16 | nnoremap <C-b> :buffers<cr>:buffer |
| @@ -24,10 +21,6 @@ autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 | |||
| 24 | autocmd Filetype c,cpp,zig setlocal expandtab tabstop=4 shiftwidth=4 | 21 | autocmd Filetype c,cpp,zig setlocal expandtab tabstop=4 shiftwidth=4 |
| 25 | autocmd Filetype lua,nix,html,xml,javascript,css setlocal expandtab tabstop=2 shiftwidth=2 | 22 | autocmd Filetype lua,nix,html,xml,javascript,css setlocal expandtab tabstop=2 shiftwidth=2 |
| 26 | 23 | ||
| 27 | " External auto-formatters. | ||
| 28 | autocmd FileType c,cpp setlocal formatprg=clang-format | ||
| 29 | autocmd FileType go setlocal formatprg=gofmt | ||
| 30 | |||
| 31 | " Code commenting - https://stackoverflow.com/a/1676672. | 24 | " Code commenting - https://stackoverflow.com/a/1676672. |
| 32 | augroup CodeCommenting | 25 | augroup CodeCommenting |
| 33 | autocmd! | 26 | autocmd! |
