dhruvasagar / vim-table-mode

VIM Table Mode for instant table creation.
2.11k stars 96 forks source link

Wrap in a cell of last column #188

Closed ArtisticZhao closed 4 years ago

ArtisticZhao commented 4 years ago

Hi, I'm using this plug to draw a table. And I find when I typing the secend character. It will wrap! err

dhruvasagar commented 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.

ArtisticZhao commented 4 years ago

@dhruvasagar I don't set textwidth in my vimrc.

dhruvasagar commented 4 years ago

@ArtisticZhao Can you check the output of set textwidth?, it can get set via filetype plugins or from some other plugins.

ArtisticZhao commented 4 years ago

@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.

dhruvasagar commented 4 years ago

@ArtisticZhao Check the output of verb set textwidth

ArtisticZhao commented 4 years ago

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!

dhruvasagar commented 4 years ago

@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.