nvim: after: ftplugin: Fix various auto commands usage
Fix missing clearing of auto commands in various file type plugins.
This commit is contained in:
parent
d7c2ca6e43
commit
5398b83200
3 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue