N
N
nazen2017-01-09 22:45:21
vim
nazen, 2017-01-09 22:45:21

How to collapse a long string in vim?

Hello,
I just started using vim as an IDE for pyhton and other languages. I took the settings from https://github.com/Relrin/dotfiles/blob/master/vim... And I've been trying for a long time to figure out how to make settings in .vimrc so that long lines are folded when the file is displayed. Honestly, I'm just for..sya already. Help! It seems :set wrapto help in vim itself, but when added to .vimrc, nothing comes out.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2017-01-09
@BuriK666

autocmd FileType ruby,python,javascript,c,cpp set nowrap

remove this line

N
nazen, 2017-01-10
@nazen

Thank you very much, kind person!
Strange, but deleting didn't help, and
changing to

wrap

helped. With what it, interestingly, can be connected???

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question