nvim: after: ftplugin: Fix various auto commands usage

Fix missing clearing of auto commands in various file type plugins.
This commit is contained in:
Sanchayan Maity 2021-05-02 19:10:23 +05:30
parent d7c2ca6e43
commit 5398b83200
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
" Disable whitespace highlighting in git buffer
autocmd BufEnter <buffer> DisableWhitespace
autocmd! BufEnter <buffer> DisableWhitespace
nmap <buffer> <Leader>gb :call git#git_branch_checkout()<CR>
nmap <buffer> <Leader>gB :call git#git_branch_delete()<CR>

View file

@ -16,4 +16,4 @@ let g:pandoc#syntax#codeblocks#embeds#langs = ["c", "rust", "haskell", "literate
" Rainbow Parentheses affects syntax highlighting for URL links. Turn it off
" for markdown files.
autocmd BufEnter <buffer> RainbowToggleOff
autocmd! BufEnter <buffer> RainbowToggleOff

View file

@ -1,7 +1,7 @@
" Always open QF window at the bottom
wincmd J
" Quit vim if the last window is qf
autocmd BufEnter <buffer> if winnr('$') < 2| q | endif
autocmd! BufEnter <buffer> if winnr('$') < 2| q | endif
setlocal scrolloff=0
setlocal nowrap