2012-05-30 11 views
5

ये हैं मेरी प्रारूप विकल्प .vimrc में:मैं नीचे बताए अनुसार प्रारूप कैसे प्रारूपित करूं?

set formatoptions=tqronw 
set formatlistpat=^\\([\\-\\*]\\\|[0-9]\\+[.)]\\)\\s* 
set textwidth=72 
set autoindent 

1)
मेरे पाठ:

- This is my text this is my text this is my text this is my text this is my text this is my text. 

आउटपुट स्वरूपण के बाद:

- This is my text this is my text this is my text this is my text this is my 
text this is my text. 

अपेक्षित उत्पादन:

- This is my text this is my text this is my text this is my text this is my 
    text this is my text. 

2)
मेरे पाठ:

for Biochemistry, conducted a quality clinical study to determine the effects of microwave cooking on food 

आउटपुट स्वरूपण के बाद:

for Biochemistry, conducted a quality clinical study to determine the 
effects of microwave cooking on food 

अपेक्षित उत्पादन:

for Biochemistry, conducted a quality clinical study to determine the 
effects of microwave cooking on food 

संपादित करें
मेरे पहले प्रश्न के लिए समाधान मिला :)
टेक्स्ट में (कोई दृश्यमान नहीं) (कोई ब्रेकिंग रिक्त स्थान नहीं) था।
जब मैंने सामान्य-स्पेस के साथ एक विकल्प किया था तो स्वरूपण की अपेक्षा की गई थी

+1

बनाने के रिक्त स्थान गैर तोड़ने सामान्य रिक्त स्थान के साथ अलग पहचाना जाना उपयोग 'सेट सूची LCS = टैब: \ \, nbsp: \ \: _' (यह भी समझ में कुछ अन्य तो' टैब का उपयोग करने के लिए बनाता है 'टैब को भी देखने के लिए यहां)। विकल्पों में से कोई भी अन्य यूनिकोड रिक्त स्थानों के किसी भी बड़े समूह को हाइलाइट नहीं करेगा जिसमें अलग-अलग चौड़ाई है, लेकिन सभी को गैर-ब्रेकिंग स्पेस के समान प्रभाव होने की संभावना है। – ZyX

उत्तर

1

मुझे अपने दूसरे प्रश्न के लिए जंगली अनुमान लगाने दें। जोड़ने का प्रयास करें:

set nosmartindent 
+0

खुशी है कि यह काम किया। बहुत पहले, मुझे याद है कि मेरे विशाल .vimrc पर एक बाइनरी खोज करने के स्तर पर उतरना है। – PonyEars

संबंधित मुद्दे