I am using the vim-better-whitespace plugin to highlight trailing whitespaces. For some buffers, I don't want this behavior and vim-better-whitespace usually provides an option to list the filetypes where it shouldn't apply.
However, I am also using nvim-ipy to integrate with ipython and this plugin opens a new buffer for console output, where filetype
is empty and buftype
is set to nofile
.
Is there any way to construct an autocmd
to call DisableWhitespace
once the respective ipython buffer is created?
nnoremap <key> <Plug>(IPy-Run) <bar>:DisableWhitespace<CR>
. This would create a mapping which would open the buffer and then call the command you're looking for. Once again this is just a guess I'm not sure it would work.