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