dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit d8af34ab6fdbde92107e4d44f7391e4460fb3c25
parent d22646dc7226644fd733277bbeac2c4f17eb9edb
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed,  7 Aug 2019 17:59:34 +0200

vim: move autocmds to a ftplugin

Former-commit-id: d4ce58d17b1d6259c9a704c1afbe88e850338848
Diffstat:
Avim/after/ftplugin/tex.vim | 1+
Mvim/vimrc | 11++---------
2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/vim/after/ftplugin/tex.vim b/vim/after/ftplugin/tex.vim @@ -0,0 +1 @@ +nnoremap <buffer> <leader>tt :VimtexTocToggle diff --git a/vim/vimrc b/vim/vimrc @@ -414,8 +414,8 @@ syntax on " Folding on indentation set foldmethod=indent -set foldlevelstart=5 " start with up to 5 levels open -set foldnestmax=10 " unless callback-hell JS +set foldlevelstart=5 " start with up to 5 levels open +set foldnestmax=10 " unless callback-hell JS " Show matching brackets set showmatch @@ -656,15 +656,8 @@ nnoremap <leader>mm :silent make<CR>\|:redraw!<CR>\|:cwindow<CR> if has('autocmd') augroup sets autocmd! - autocmd BufRead,BufNewFile *.md setlocal conceallevel=2 autocmd InsertEnter * setlocal nocursorline autocmd InsertLeave * setlocal cursorline augroup END -" this is a comment - augroup mappings - autocmd! - autocmd BufEnter *.tex nnoremap <leader>tt :VimtexTocToggle<CR> - autocmd BufLeave *.tex nnoremap <leader>tt :TagbarToggle<CR> - augroup END endif " }}}