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