vim Lesson 3.1 , 3.2 , 3.3 , 3.4 , Summary
Thohi
Contributor
2 min read
Lesson 3.1: THE PUT COMMAND
** ဖကျ်ထားပြီးသား text ကို cursor နောက်တွင် p command ဖြင့်ပြန်ထားခြင်း**
၁။ ဒီစာကြောင်းလေးအရင်ရိုက်ကြည့်ပါ။
–> d) Can you learn too?
–> b) Violets are blue,
–> c) Intelligence is learned,
–> a) Roses are red,
၂။ အစီအစဉ်မကတျဲ့ d) b) c) a) ကို a)b)c)d) ပုံစံဖြစ်အောင်ပြုလုပ်ပါမယ်။
၃။ d) လိုင်းကို dd command ဖြင့် ဖြုတ်ပါ။
၄။ cursor ကို delete လုပ်ပြီးသားလိုင်း ပြန်ထည့်ခငျ်တဲ့နရောရဲ့ အပေါ်လိုင်းမှာခပျါ။ ဥပမာ။ ။ c) လိုင်းမှာခပျါ။
၅။ p command ရိုက်လိုက်တာနဲ့ cursor ရှိတဲ့ အောက်လိုင်းမှာ delete လုပ်ထားတဲ့ လိုင်းပြန်ပေါ်လာပါတယ်။
၆။ အထက်ပါအတိုင်း a)b)c)d) အစီအစဉ်ကအျောင် dd နဲ့ p command ကို သုံးသှားပါ။
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lesson 3.2: THE REPLACE COMMAND
**character ကို r character ဖြင့် အစားထိုးခြင်း**
၁။ –> Whan this lime was tuoed in, some presswd some wrojg keys! ဒီစာကြောင်းလေးကို
–> When this line was typed in, some pressed some wrong keys! ဒီပုံစံဖြစ်အောင်ပြောင်းကြည့်မယ်။
၂။ cursor ကို ပထမစာကြောင်းရဲ့ မွားနေတဲ့ စာလုံးတွေရှေ့မှာခပျြီး r နဲ့ပြင်မယ့်စာလုံးထပ်ပေါင်း။ ဥပမာ။ ။ Whan မှာ a ကို e ပြောင်းမယ်ဆိုရင် a ရဲ့အရှေ့မှာ cursor ခပျြီး re ရိုက်လိုက်လျှင် a နရောမှာ e ဖြစ်သွားမယ်။
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lesson 3.3: THE CHANGE OPERATOR
**စာလုံးရဲ့အဆုံးထိ ပြောင်းလည်းမှု ce command ဖြင့်သုံးခြင်း**
၁။ –> This lubw has a few wptfd that mrrf changing usf the change operator.
ဒီစာကြောင်းမှာ မွားနေတဲ့ စာလုံးတွေကို
–> This line has a feew words that need changing using the change operator.
ဒီလိုဖြစ်အောင်ပြောင်းကြည့်မယ်။
၂။ စပြင်မယ့်စာလုံး lubw မှာ cursor ကို u ရှေ့ကိုရှေ့မယ်။
၃။ ပြီးရင် ce command ရိုက်ပြီး ပြင်မယ့် စာလုံးထည့်ပါမယ်။ဒီနရောမှာ (line)ဖြစ်အောင် ine ထည့်ပါမယ်။
၄။ နှိပ်ပြီး နောက်ထပ်ပြင်မယ့် စာလုံးကိုရှေ့ပါမယ်။
၅။ ce command က စာလုံးကိုဖကျ်ပြီး insert mode ဖြင့်ဆက်လုပ်ပါသည်။ ဒါကြောင့် စာလုံးတလုံးပြင်ပြီးလျှင် ESC နှိပ်ပြီး နောက်တလုံးရှေ့ပြင်ရပါမည်။
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lesson 3.4: MORE CHANGES USING c
**ပြောင်းလည်းမှု change operator ကို delete ကဲ့သို့ motion များသုံးခြင်း**
၁။ delete မှာလိုပဲ change operator ကအလုပ်လုပ်ပါတယ်။
c [number] motion
၂။ motion command တှကေအတူတူပါပဲ။ w (word) , $ (end of line).
၃။ –> The end of this line needs some help to make it like the second. ဒီစာကို
–> The end of this line needs to be corrected using the c$ command. ဒီလိုဖြစ်အောင်ပြောင်းကြည့်ရအောင်။
၄။ cursor ကိုစပြင်မယ့် စာလုံးရှေ့ရှေ့ထားပြီး c$ command ရိုက်လိုက်လျှင် cursor နောက်ပိုင်းစာတွေပကျ်သွားပြီး ထည့်ခငျ်တဲ့စာ ထပ်ထည့်နိုင်ပါသည်။
၅။ c$ command ဖြင့်သုံးပြီးလျှင် နှိပ်ပေးရပါမည်။
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lesson 3 SUMMARY
၁။ delete လုပ်ပြီးသားစာတွေကို p command ဖြင့်ပြန်ထည့်သွင်းခြင်း။
၂။ character တှကေို replace ပြန်လုပ်ခငျ်လျှင် r command ဖြင့် အသုံးပြုခြင်း။
၃။ change command ကို delete ကဲ့ motion များနှင့်တွဲသုံးခြင်း။ဥပမာ။ ။ce , c$
၄။ format for change command
~ c [number] motion
Related posts
3.Working with Ubuntu,All the applications you need
13.04 version အတှကျရေးထားပွီး ဘယျမှာမှ မတငျထားမိတာ အခုဒီနရောမှာ တငျလိုကျပါတယျ။ manual ဘာသာပွနျမယျဆိုပွီး ယူထားတဲ့ အပိုငျးထဲကပါ။ ဖတျရတာ အဆငျမပွလြှေငျတော့ ဘာသာပွနျတာ အားနညျးလို့ပါ။…
4 min read
vim Lesson 5.1 ,5.2 , 5.3 , 5.4 , summary
Lesson 5.1: HOW TO EXECUTE AN EXTERNAL COMMAND \ \ :! နောက်မှာ command ရိုက်ပြီးအသုံးပြုခြင်း။ \ \ ၁။ : (column) ဆိုတဲ့ သုံးနေကြ command ရိုက်လိုက်လျှင် screen ရဲ့အောက်မှာ cursor…
2 min read
vim Lesson 4.1 , 4.2 , 4.3 , 4.4 , Summary
Lesson 4.1: CURSOR LOCATION AND FILE STATUS \ \ Ctrl+g နှိပ်လျှင် သင့်ဖိုင်ရဲ့ နေရာနဲ့ဖိုင်အခြေအနေကိုပြသပါမည်။ လိုင်းနံပါတ်နှိပ်ပြီးရင် G (shift+g) နှိပ်ပါက…
3 min read
