Cleanup

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)
-rw-r--r-- vimrc 7
1 files changed, 0 insertions, 7 deletions
diff --git a/vimrc b/vimrc
...
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
...
23
autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4
20
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
  
  
27
" External auto-formatters.
  
28
autocmd FileType c,cpp setlocal formatprg=clang-format
  
29
autocmd FileType go setlocal formatprg=gofmt
  
30
  
23
  
31
" Code commenting - https://stackoverflow.com/a/1676672.
24
" Code commenting - https://stackoverflow.com/a/1676672.
32
augroup CodeCommenting
25
augroup CodeCommenting
...