Tags:
Topics: 
Node Thumbnail

โปรแกรมที่ชวนให้คนเลิกใช้ลินุกซ์มากที่สุด โปรแกรมแก้ไขไฟล์มาตรฐานลินุกซ์อย่าง VIM แม้จะมีความสามารถพื้นฐานครบถ้วนมาเป็นเวลานานแต่ก็มีการพัฒนาเรื่อยมา วันนี้ VIM 8.0 ก็ออกมาให้ดาวน์โหลดแล้ว มีฟีเจอร์สำคัญๆ เพิ่มเติมจำนวนมาก ได้แก่

  • Asynchronous I/O เปิดช่องทางสื่อสารกับโปรเซสภายนอก สื่อการผ่าน JSON เพื่อการส่งผลการรันกลับเข้ามายัง VIM ทำให้สามารถเขียนปลั๊กอินที่ซับซ้อนสูง
  • Jobs มีระบบรันซอฟต์แวร์ภายนอก เช่น ตัวเช็ด syntax ของโค้ดที่จะตรวจสอบความถูกต้องของโค้ดไปเรื่อยๆ
  • Timer สั่งรันคำสั่งเป็นห้วงๆ ได้

สำหรับคนที่คิดว่า VIM ไม่ต่างจาก VI ในรุ่น 8.0 นี้ค่าเริ่มต้นของการรัน VIM จะเป็นโหมด "nocompatible" แล้ว ถ้าใครยังชอบการใช้ปุ่มแบบ VI อยู่ต้องสั่ง "set compatible" ด้วยตัวเอง (ออกจากโปรแกรมยาก แต่อย่างน้อยก็เลื่อนบรรทัดง่ายขึ้นแล้ว)

ที่มา - vim_dev

Get latest news from Blognone

Comments

By: mrmamon
ContributorAndroidWindows
on 13 September 2016 - 23:00 #939928

ออกยากจริงครับ แก้ง่ายๆ นิดหน่อยนี่ผมไป nano ทุกที

By: Bigta
ContributoriPhoneAndroidUbuntu
on 13 September 2016 - 23:01 #939929
Bigta's picture

alias vim='nano'

By: mr_tawan
ContributoriPhoneAndroidWindows
on 13 September 2016 - 23:05 #939930
mr_tawan's picture

:q!


  • 9tawan.net บล็อกส่วนตัวฮับ
By: ipats
ContributorNOOBIn Love
on 14 September 2016 - 00:21 #939951 Reply to:939930

:wq!


iPAtS

By: Polwath
ContributoriPhoneWindows PhoneAndroid
on 14 September 2016 - 10:21 #940016 Reply to:939951
Polwath's picture

ใช้ vi เหรอครับ ผมว่าก็ใช้งานง่ายอยู่นะ แต่ nano ใช้ง่ายกว่าจริงๆ


Get ready to work from now on.

By: mr_tawan
ContributoriPhoneAndroidWindows
on 14 September 2016 - 17:29 #940218 Reply to:940016
mr_tawan's picture

ของผมนี่คนในทีมส่วนใหญ่ใช้ ก็เลยโดนบังคับไปด้วยครับ (แต่ก็ใช้ nano และอื่น ๆ ด้วยนะ)


  • 9tawan.net บล็อกส่วนตัวฮับ
By: choestelus
Contributor
on 14 September 2016 - 11:00 #940037 Reply to:939951
choestelus's picture

ZZ

By: Perl
ContributoriPhoneUbuntu
on 13 September 2016 - 23:21 #939936
Perl's picture

ขอบคุณที่โลกมี nano
แต่ถ้าจะเขียน automate script สำหรับ edit text นอกเหนือจาก sed แล้วก็มี vim เนี่ยหล่ะ

By: Priesdelly
ContributorAndroidWindows
on 14 September 2016 - 00:27 #939952 Reply to:939936
Priesdelly's picture

ผมก็ Nano ฮ่าๆๆๆ

By: tanersirakorn
ContributorAndroidUbuntuIn Love
on 13 September 2016 - 23:54 #939943
tanersirakorn's picture

ตัวเช็ด syntax ของโค้ด

ตัวเช็ด > ตัวเช็ค

โปรแกรมที่ชวนให้คนเลิกใช้ลินุกซ์มากที่สุด โปรแกรมแก้ไขไฟล์มาตรฐานลินุกซ์อย่าง VIM

โปรแกรมบนลินุกซ์ที่ทำให้คนรู้จัก ICCF อูกันดา โปรแกรมแก้ไขไฟล์มาตรฐานลินุกซ์อย่าง VIM

:P


Blog | Twitter

By: itpcc
ContributoriPhoneRed HatUbuntu
on 14 September 2016 - 01:09 #939955 Reply to:939943
itpcc's picture
By: tanersirakorn
ContributorAndroidUbuntuIn Love
on 14 September 2016 - 09:38 #940001 Reply to:939955
tanersirakorn's picture

ลอง :help iccf ดูครับ


Blog | Twitter

By: Sephanov
iPhoneUbuntu
on 14 September 2016 - 02:51 #939961
Sephanov's picture

ใช้ nano จนชิน แต่เอาเข้าจริงๆ อยากได้แบบ edit บน dos มากกว่า นั่นเฟรนลี่ที่สุแล้ว

By: WattZ
AndroidRed HatSymbianWindows
on 14 September 2016 - 08:10 #939973
WattZ's picture

ออกยากยังไงเหรอครับ ก็แค่ esc -> :q!

By: Hadakung
iPhoneWindows PhoneAndroidWindows
on 14 September 2016 - 08:23 #939977 Reply to:939973

รู้ไหมครับว่ามือใหม่ทำไง ปิดคอมเปิดใหม่:P ก็มันไม่บอกเลยจะออกทำไง

By: YF-01
AndroidUbuntu
on 14 September 2016 - 09:28 #939997 Reply to:939977

เออ จริงครับ ผมก็เคยทำ

By: langisser
In Love
on 14 September 2016 - 10:12 #940012 Reply to:939977

ขอบคุณครับ

ผมกำลังนึกอยู่ว่าออกยากยังไง

By: BlackMiracle
WriterAndroidUbuntuWindows
on 14 September 2016 - 08:11 #939974
By: thanyadol
iPhone
on 14 September 2016 - 09:19 #939992

wq!

By: NewweN
iPhoneWindows PhoneAndroidUbuntu
on 14 September 2016 - 09:28 #939996
NewweN's picture

รันคำสั่งเป็นห้วงๆ
เป็นห้วงๆ ความหมายเป็นยังไงหรอครับ (อันนี้ไม่รู้จริงๆฮะ)

By: whitebigbird
Contributor
on 14 September 2016 - 09:30 #939999
whitebigbird's picture

พูดถึง VI, VIM ครั้งใด ต้องนึกถึงภาพนี้

Exiting VIM

เครดิต

By: hisoft
ContributorWindows PhoneWindows
on 14 September 2016 - 10:21 #940018 Reply to:939999
hisoft's picture

ภาพไม่ขึ้นครับ

แต่ทำไมเหมือนผมรู้ว่ามันคือภาพไหน ฮาาาา

By: whitebigbird
Contributor
on 14 September 2016 - 21:29 #940273 Reply to:939999
whitebigbird's picture

alt="แก้ไข"

By: illuminator
ContributorAndroidUbuntuWindows
on 20 September 2016 - 09:14 #941552 Reply to:940273
illuminator's picture

ลั่น 55555

By: Axus
AndroidRed HatUbuntuIn Love
on 14 September 2016 - 09:57 #940006

ใช้ pico มาก่อน ตอนเรียนก็มาใช้ vi จนชิน ตอนนี้ใช้ nano ไม่เป็นแล้ว