commit 21642e1fd8a03d6dcacf52b246d48ebafbeafe01
parent b1541ee1183a553175e339227c5d315537193adf
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Sun,  9 Jan 2022 20:04:54 +0100

Wrap autocmd in augroups on init.vim

Diffstat:
M.config/nvim/init.vim | 17+++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -7,6 +7,7 @@ " set leader prior to anything else let mapleader="," +augroup vimrc | autocmd! | augroup END " reset all autocmd in this file " plugins {{{ @@ -118,14 +119,18 @@ vnoremap ñ : nnoremap Ñ ; " filetypes -autocmd BufRead,BufNewFile *.zone set filetype=bindzone +augroup vimrc + autocmd BufRead,BufNewFile *.zone set filetype=bindzone +augroup END " filetype specific -autocmd FileType markdown,vimwiki,mail,tex,text set formatoptions+=t " break lines when longer than textwidth -autocmd FileType markdown,vimwiki,lua set tabstop=2 " number of spaces when tab is pressed -autocmd FileType markdown,vimwiki,lua set shiftwidth=2 " number of spaces for indentation -autocmd FileType mail set textwidth=72 -autocmd FileType c set noexpandtab +augroup vimrc + autocmd FileType markdown,vimwiki,mail,tex,text set formatoptions+=t " break lines when longer than textwidth + autocmd FileType markdown,vimwiki set tabstop=2 " number of spaces when tab is pressed + autocmd FileType markdown,vimwiki set shiftwidth=2 " number of spaces for indentation + autocmd FileType mail set textwidth=72 + autocmd FileType c set noexpandtab +augroup END " /change default behaviours }}}