From 126dd0acd17f687fba82b493713e9e793fc1a981 Mon Sep 17 00:00:00 2001 From: Ellen Date: Thu, 15 Dec 2022 00:10:09 +0100 Subject: [PATCH] stuff --- .vimrc | 11 ++++++++--- after/ftplugin/c.vim | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.vimrc b/.vimrc index 200945a..09de3c6 100644 --- a/.vimrc +++ b/.vimrc @@ -84,7 +84,7 @@ set undolevels=1000 set hlsearch set list -set listchars=tab:··>,trail:· +set listchars=tab:>··,trail:· hi SpecialKey ctermfg=darkgrey @@ -169,10 +169,15 @@ augroup json_macros " { autocmd FileType json :nnoremap fm :%!python -m json.tool augroup END " } -augroup haskell_stuff +augroup haskell_stuff " { autocmd! autocmd BufNewFile,BufRead *.hsc set ft=haskell -augroup END +augroup END " } + +augroup c_stuff " { + autocmd! + autocmd BufNewFile,BufRead *.h set ft=c +augroup END " } " Function for toggling the relative line numbers function ToggleRelative() diff --git a/after/ftplugin/c.vim b/after/ftplugin/c.vim index 2eff84b..8edfdc8 100644 --- a/after/ftplugin/c.vim +++ b/after/ftplugin/c.vim @@ -1 +1 @@ -"set softtabstop=4 shiftwidth=4 expandtab +set softtabstop=8 shiftwidth=8 noexpandtab