Vim-R-plugin icon indicating copy to clipboard operation
Vim-R-plugin copied to clipboard

syntax enable problems

Open mdlerch opened this issue 11 years ago • 1 comments

The function r-plugin/functions.vim/FillRLibList() calls syntax enable and it is causing me some problems. At the least, my statusbar loses my specified coloring and my italicized comments (hi Comment cterm=italic) go back to regular font after :syntax enable. I have set both of these in my .vimrc. I'm not sure why this is happening because :help syn-enable says that my color settings should not be lost.

Any tips to fix this? By the way, this is happening both in neovim and regular vim.

mdlerch avatar Dec 19 '14 01:12 mdlerch

This means that I cannot use syntax enable. The solution that I have found was to set filetype after CursorMove event, but I now I think that BufEnter could have been better because it is called less frequently. I will change to BufEnter if we don't find a better solution. Perhaps we have to wait for https://github.com/neovim/neovim/issues/901

jalvesaq avatar Dec 19 '14 02:12 jalvesaq