Closed ArtisticZhao closed 4 years ago
@ArtisticZhao It feels like this is probably textwidth
in action and vim's wrapping the text because it's exceeding that limit.
@dhruvasagar I don't set textwidth
in my vimrc.
@ArtisticZhao Can you check the output of set textwidth?
, it can get set via filetype plugins or from some other plugins.
@dhruvasagar Oh! yes, I find my vim's textwidth=78
. But, when I typing something over 78 characters. It dose not wrap.
How can I find which plug change my tw settings? Or can I set tw=0 when I press <leader>tm
?
Thank you.
@ArtisticZhao Check the output of verb set textwidth
OK, I find the textwidth
are changed by Vim filetype plugin
!
But I have no idea to change it. I should edit the vimscrpt located /usr/share/nvim/runtime/ftplugin/vim.vim
.
Do you have some suggestions?
Thanks a lot!
@ArtisticZhao You can either override it within your own ~/.vim/ftplugin/vim/custom.vim, you could also use vim modeline
to override it, there are a bunch of ways.
Hi, I'm using this plug to draw a table. And I find when I typing the secend character. It will wrap!