Ukusethwa kokugcina kweVim

Impela wonke umuntu kumele azi Vim, ngombono wami umhleli wombhalo omuhle kakhulu we I-GNU / Linux. Izikhathi ezimbalwa zokuqala engizisebenzisile Vim Ngikuthole kunzima kakhulu, kepha njengoba ngiphatha i-server ezinikele yebhulogi lami, sekube ngumhleli wami ozenzakalelayo, ngisho nakuhlelo, kule ndatshana sizobona ukuthi singakusebenzisa kanjani ukumiswa kokugcina kwe- Vim sibonga indawo yokugcina engithole kuyo GitHub.

Njengokujwayelekile emhlabeni wesoftware yamahhala, Vim Inamandla amakhulu wokumisa nokwenza ngokwezifiso. Ngakho-ke nginqume ukusesha inetha ngokulungiselelwa okuzokwenza umsebenzi wokuhlela ube lula futhi ngithole indawo yokugcina ngaphakathi GitHub kudalwe ngu Amix, ngesikhathi iminyaka 8 ibilokhu isebenzisa futhi iguqula Vim ukuthola i- vimrc okucacile. Ungathola okugciniwe okukhulunywa ngakho lapha, ake sibone ukuthi ungayifaka kanjani.

Ngenqubo yokufaka kuzodingeka ukuthi kusetshenziswe I-Git, uma ungajwayele lolu hlelo ungabheka lokhu umyalo wokukopela ishidi le-git

Inguqulo eyisisekelo noma inguqulo ye- "Awesome"

Kungenzeka ukhethe phakathi kwezinguqulo ezimbili, okuyisisekelo lokho ngeke kufake noma iyiphi i-plugin, noma enye ephelele kakhulu leyo Vim umhleli onamandla kakhulu.

Ukufaka okuyisisekelo, vele usebenzise umyalo olandelayo:

$ git clone git: //github.com/amix/vimrc.git ~ / .vim_runtime $ sh ~ / .vim_runtime / install_basic_vimrc.sh

Futhi kwabaphambili noma “Awesome":

git clone git: //github.com/amix/vimrc.git ~ / .vim_runtime sh ~ / .vim_runtime / install_awesome_vimrc.sh

El vimrc yenguqulo "Awesome"Kanje:

setha i-runtimepath + = ~ / .vim_runtime source ~ / .vim_runtime / vimrcs / basic.vim source ~ / .vim_runtime / vimrcs / filetypes.vim source ~ / .vim_runtime / vimrcs / plugins_config.vim source ~ / .vim_runtrime / vim vim zama umthombo ~ / .vim_runtime / my_configs.vim bamba ukuphela

Ukwengeza ukulungiselelwa kwethu kufanele sihlele ifayela ~ / .vim_runtime / my_configs.vim.

Hlela izilungiselelo ezizenzakalelayo

Lapho ufaka isikimu sombala esizenzakalelayo sisethelwe ku i-peaksea, kungenzeka ukuguqula imibala esetshenzisiwe ukugqamisa i-syntax ngo Vim ukuhlela ifayili ~ / .vim_runtime / my_configs.vim nokungeza umugqa olandelayo:

i-colorcheme peaksea

Kumele kushintshwe i-peaksea nganoma yisiphi esinye sezikimu zombala ezi-3:

  • kufakwe ilanga
  • phithi
  • umnyama

Izingqinamba ezingenzeka ngemvelaphi ebonakalayo

Kungenzeka ukuthi lapho ufaka lokhu kumiswa kwe-Vim silahlekelwa isizinda esibonakalayo sesiginali futhi sibona i-vim ngale ndlela elandelayo:

Ukusethwa kokugcina kweVim

Ukuxazulula inkinga kuyadingeka ukwengeza imigqa elandelayo kufayela ~ / .vim_runtime / my_configs.vim:

hi NonText ctermfg = 18 ctermbg = NONE cterm = NONE hi Normal ctermfg = 16 ctermbg = NONE cterm = NONE hi Special ctermfg = Yellow ctermbg = NONE hi ctermfg = DarkYellow ctermbg = AKEKHO hi Constant ctermfg = Blue ctermbg = Nter I-ctermbg ephuzi = AKUKHO hi LineNr ctermfg = DarkGrey ctermbg = AKEKHO hi PreProc ctermfg = Green ctermbg = NONE hi Statement ctermfg = Cyan ctermbg = NONE hi Type ctermfg = Cyan ctermbg = NONE hi Iphutha ctermfg = Red Ntermba Isihlungi = AKEKHO hi SpecialKey ctermfg = Cyan ctermbg = AKEKHO hi NonText ctermfg = Blue ctermbg = AKEKHO hi Directory ctermfg = Blue ctermbg = AKEKHO hi MoreMsg ctermfg = Green ctermbg = AKEKHO hi Isihloko Esibomvu ctermfg = Magenta ctermbg = NONE ctermstertertergg = NONE sawubona DiffDelete ctermfg = Blue ctermbg = NONE

Okususa isizinda esimnyama (ctermbg = AKUKHO) kuwo wonke amagama angukhiye olimini lohlelo nakuzo izingosi lapho kungekho mbhalo (Umbhalo ongekho).

Lezi zimingcele zisuselwa kuhlelo lombala i-peaksea, Ngivele ngashintsha imfanelo ctermbg ukusetha umbala ongemuva ube munye. Uma ukhetha olunye uhlelo lombala kuzofanele uthole ukumiswa kwalo okuzenzakalelayo, ulikopishe bese ulinamathisela ekucushweni kwakho ngokusetha ctermbg a LUTHO

Okunye ukulungiswa

Ngokwami ​​ngithanda ukugqamisa umugqa wamanje ngokubukeka okulandelayo:

hi CursorLine guifg = NONE guibg = # 121212 gui = NONE ctermfg = NONE ctermbg = NONE cterm = BOLD hi CursorColumn guifg = NONE guibg = # 121212 gui = NONE ctermfg = NONE ctermbg = NONE cterm = IBHODLA

Ngemuva kokusebenzisa lonke lolu shintsho, iVim ibukeka kanjena:

Isethaphu sokugcina seVim21

Isiphetho

Lokhu kube yindatshana yami yokuqala njengomnikeli ku KusukaLinux, Ngithemba ukuthi ukuthole kuwusizo. Ubuwazi ukuthi lokhu kulungiselelwa kweVim?. Yikuphi okwenziwe ngokwezifiso okwenzile? Shiya amazwana!.


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-47, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   izinga kusho

    Ngangingomunye walabo ababezonda i-VIM, ngathi kwakungumhleli wombhalo wePulpos .. kodwa isikhathi esithile manje ngiyisebenzisa kakhulu kunoNano (omunye umhleli, hhayi i-eNano evela emphakathini wethu) xDD

    1.    Alexander Mayor kusho

      Kwenzeke kimi njengani, ngibona ukuthi iVim ibiyinkimbinkimbi ngandlela thile, ngisebenzise uNano, ngaze ngenza umzamo wokujwayela iVim futhi yaba ngumhleli wami ozenzakalelayo. Halala!

      1.    izinga kusho

        Kunjalo .. ngasendleleni, kuyintokozo ukuba nawe lapha .. Siyakwamukela!

        1.    Alexander Mayor kusho

          Ngiyabonga, ngiyethemba ukuthi nginganikela ngezihloko ezisezingeni eliphakeme. Halala!

    2.    elhui2 kusho

      Ngangihlala ngisebenzisa i-Vi, lapho ngaguqula imibhalo yami ye-COBOL (umsebenzi wami wokuqala ngo-17) xD angikaze ngisebenzise omunye ngobuvila kepha yangifaka kahle, futhi inezinqamuleli ezinhle kakhulu!
      Ukubingelela

    3.    UManuel de la Fuente kusho

      Yebo, ngokwazi kwami ​​bobabili bangamaNanos futhi bangabahleli, ngakho-ke angazi ukuthi usebenzisa muphi ... noma mhlawumbe ubasebenzisa bobabili. i-xD

      1.    eliotime3000 kusho

        I-GNU Nano isoftware, kanti i-nano ekulo mphakathi iyi-alias yomuntu.

  2.   nano kusho

    Yeka ukusebenzisa igama lami le-pussy, lisetshenziswa xD

    1.    izinga kusho

      I-eNano ene-Windows XP .. WTF?

      1.    nano kusho

        Ngangiku-uni uu

        1.    Ingelosi u-Isaac Pizano kusho

          Izaba! Uye ohlangothini olumnyama! XD
          Futhi maqondana nokuthunyelwe ... ngicabanga ukuthi kufanele ngifunde ukusebenzisa iVim o_o

          1.    eliotime3000 kusho

            Ngikuwo womabili amaWindows Vista noDebian Wheezy, ngakho-ke ungakhonondi uma ngiphawula ngeGoogle Chrome 30 (empeleni, yiChromium 30) ngeVista.

        2.    eliotime3000 kusho

          Ngiyawazi loyo muzwa mfowethu.

    2.    eliotime3000 kusho

      Ngesizathu, lapho ngikhuluma nge-GNU Nano, ngibhala i-GNU Nano (hhayi nje i-nano ngenxa yokungaqondakali okwenziwe ngama-alias akho).

  3.   Leo kusho

    Yilabo kuphela abakufanele ngokwanele abangasebenzisa i-Vim (engingazifaki nami).
    Uyinkimbinkimbi kabusha, kepha kusobala ukuthi ungumhleli ongcono, wonke umuntu ukhuluma kakhulu ngaye.

  4.   umabhebhana kusho

    Bengisebenzisa i-VIM isikhashana, nansi i-config yami engiyisebenzisa ku-Ubuntu naku-OSX
    https://github.com/abimaelmartell/dotfiles

  5.   Rots87 kusho

    Angiqondi i-vim ... ngizamile kepha ngihlala ngibuyela ku-nano ukuswela umkhuba engicabanga ukuthi kuyangibiza

    1.    izinga kusho

      Ngikholwe, uma uzivumelanisa nezimo kuba yinto ebaluleke kakhulu. Lokho ukukwazi ukukopisha / ukuhambisa / ukushintsha umbhalo, ususe noma uhlele umbhalo kukholamu ... noma kunjalo, uma ungenayo i-VIM graphical interface kuhle ... futhi noma ngabe unesikhombimsebenzisi sokuqhafaza kuhle 😀

      1.    petercheco kusho

        Lapho ingekho imvelo okuhamba phambili yi-MC (Midnight Commander)

      2.    I-Giskard kusho

        Ngikwenza konke lokho eGeany. Angiboni ukuthi kungani ngifunda izinto eziyinkimbinkimbi. Bengihlala ngicabanga ukuthi yi-software okufanele ivumelane nabantu hhayi enye indlela ezungezile. Kepha hhe, umhlaba ukhululekile ... okwamanje.

        1.    RAW-Okuyisisekelo kusho

          Kanjani? .. .. Kumele ngiphikisane nokuphawula kwakho .. ..kubukeka kungalungile kimi ukuthi ucabanga ngendlela ejwayelekile ukuthi isoftware ethile ayivumelanisiwe nezidalwa ezingabantu .. .. ngoba nje izidingo nombono ngayinye ... iyahlukahluka, futhi kwezinye izimo iba ningi ...

          Kwabanye okungcono kakhulu umhleli we-nano, angiwusekeli noma ngabe kukhona ushintsho oluncane .. .. abanye bathanda i-geany, i-ninjaIDE, i-Eclipse .. futhi ngincamela eyodwa noma enye kuye ngecala .. ..amanye ama-emac, mina Saw ..

          Izinto ezibonakala zilukhuni ukuzifunda, yize kungenjalo ngaso sonke isikhathi, zivame ukuba nezinzuzo zazo .. .. ngemininingwane ephezulu yedatha esefayelini, futhi ngiqonde ukuthi iphakeme impela (i-TBs) .. abanye abahleli ngeke baze bakuvumele uyivule .. .. futhi nge-Vi angikwazanga ukuyivula kuphela ... kepha ngingenza ukuphatha okuyinkimbinkimbi ngezinkulumo ezijwayelekile ...

          Umbono wami nje .. .. Ngithemba uyakuqonda ..

          1.    I-Giskard kusho

            Ake sibone, cishe kubo bonke abahleli engikusebenzise ubalondoloza nge-Ctrl + S (Gcina) bese uphuma nge-Ctrl + Q (Quit). Futhi uhamba nezikhiye zomcibisholo ezikahle ezinemicibisholo emincane. Ngitshele ukuthi kwenziwa kanjani e-vim? 😉
            Ngiyawuqonda umbono wakho, yehlisa umoya.

          2.    RAW-Okuyisisekelo kusho

            Em .. .. elula .. ..ukuhamba ungakwenza kokubili ngemicibisholo .. njengokhiye be-'HJKL '.. ejwayelekile ku-vi-like ..

            Ukugcina nokuphuma ': wq' .. 😉

            Inike ithuba lokufunda ukuthi ungasebenzisa kanjani i-vim .. ..nge kodwa izame isonto lonke .. usebenzisa nje i-vim .. ..lapho ufunda amathuluzi, ijubane elikunikezayo likhulu ..

  6.   I-Yukiteru kusho

    Kuzofanele ngiyizame ngomqondo ovulekile, ngoba iqiniso ukuthi izikhathi engimcele ukuthi azozihlela nje kungenza ngiphelelwe yithemba, ngigcine ngisebenzisa i-nano.

  7.   umabhebhana kusho

    Ngijabule ngama-emacs

    1.    eliotime3000 kusho

      Ngalokho ngiyakweseka, ngoba i-GNU Emacs empeleni ingummese wamasosha waseSwitzerland uma kukhulunywa ngokuhlela imibhalo nemibhalo. Uma ufuna uku-google noma ukuphatha i-imeyili yakho. Ama-Emac anama-plugins ambalwa angakwenza kahle.

    2.    pvv92 kusho

      Ngijabule nge-monodevelop

      UKUGIJIMA

  8.   RAW-Okuyisisekelo kusho

    AmaWena .. .. okokuqala, kuhle ukuthi unqume ukufaka isandla .. futhi ikakhulukazi ngokuthunyelwe okunjalo .. ..ngiyabonga kakhulu !! ..

    Kade ngifuna into efanayo isikhathi eside .. ukuqala ukusebenzisa i-Vim kaninginingi .. ..njengoba bengihlala ngisebenzisa i-Vi .. ..maphrojekthi amakhulu, inhloso ukuthi kube nokuhlelwa okuhle futhi ngihlale kuVim .. .. futhi, ngiyabonga .. ..futhi siqhubeke nokufunda .. 😉

  9.   eliotime3000 kusho

    Kuzofanele ufake iVim ngaphambi kokwenza isinqumo esiyimpumputhe. Okwamanje ngisebenzisa i-GNU Nano ne-GNU Emacs.

  10.   UDavid gomez kusho

    Ukusetha kuhle kakhulu ku-Alejandro… Noma kunjalo, izikimu zombala ziyesabeka. Angazi ukuthi ngokungazelelwe uyazi lapho ungathola khona izikimu zombala ezikhangayo. Mina uqobo ngiyasithanda isikimu seTextmate sikaTwilight.

    1.    Alexander Mayor kusho

      Uma ungathandi noma yiziphi izikimu zombala eziza endaweni yokugcina, ungazama ukufaka noma iyiphi enye, noma uguqule imibala ngendlela oyithandayo ngokuhlela amanani we-ctermfg.

      sawubona NonText ctermfg = 18 ctermbg = NONE cterm = NONE
      sawubona ctermfg Ojwayelekile = 16 ctermbg = NONE cterm = NONE
      sawubona ctermfg okhethekile ctermbg = AKUKHO
      sawubona Comment ctermfg = DarkYellow ctermbg = NONE
      sawubona ctermfg = Blue ctermbg = NONE
      sawubona Inombolo ctermfg = I-ctermbg Ephuzi = AKUKHO
      sawubona LineNr ctermfg = I-DarkGrey ctermbg = AKUKHO
      sawubona PreProc ctermfg = Green ctermbg = NONE
      sawubona Statement ctermfg = Cyan ctermbg = NONE
      sawubona Type ctermfg = Cyan ctermbg = NONE
      hi Iphutha ctermfg = Red ctermbg = NONE
      hi Isikhombi ctermfg = Magenta ctermbg = NONE
      sawubona SpecialKey ctermfg = Cyan ctermbg = NONE
      sawubona NonText ctermfg = Blue ctermbg = NONE
      sawubona Directory ctermfg = Blue ctermbg = NONE
      sawubona MoreMsg ctermfg = Green ctermbg = NONE
      sawubona Isihloko ctermfg = Magenta ctermbg = NONE
      sawubona WarningMsg ctermfg = Red ctermbg = NONE
      sawubona DiffDelete ctermfg = Blue ctermbg = NONE

      Ukubingelela

  11.   U-Ender fletcher kusho

    Unjani. i-athikili enhle. Kungakuhle ukuthumela okuthile kokuthi ungakusebenzisa kanjani lokhu kulungiselelwa. Kulabo basebenzisi hhayi njengochwepheshe we-vim njengami 🙂

  12.   ujusi kusho

    Kuyathakazelisa kakhulu futhi kuyabonga, kuthuthukisa ukusetshenziswa kwe-vim kakhulu, kepha uzibeka kanjani izinombolo zolayini? Ukuphela kwento engingakwazi ukukufeza.

    Siyabonga ngokufaka

    1.    David kusho

      : inombolo esethiwe

      1.    RAW-Okuyisisekelo kusho

        Kufushanisiwe ': set nu' .. ..nokuthi uyisuse ': set nonu' 😉

    2.    Alexander Mayor kusho

      Ngisebenzisa lokhu:

      : set not elihambisanayo umbusi laststatus = 2 showcmd showmode number

      Futhi ukugqamisa umugqa wamanje owudingayo: setha i-cursorline.

      Ngikhohliwe, imikhonzo.

  13.   kik1n kusho

    I-Vim, isikhali esihle somsebenzisi we-Linux ne-Unix. Okuhle kunakho konke ukuthi ungenza ngezifiso i-vim, eyami iyi-C / C ++ IDE, NERDTree.

  14.   seachello kusho

    Umnikelo omuhle!

    Ngaphandle kokuba ngumsebenzisi oyingcweti ngaphandle kokuthola lonke ijusi i-vim enayo, sengiyijwayele futhi ngiyisebenzisa njengomhleli oyinhloko. Ngicabanga ukuthi indlela engcono yokujwayela, ngoba ingaqala ukuthola ithemba, ukwenza okokufundisa okuza nohlelo (sebenzisa umyalo we- "vimtutor"). Ngakho ngenzile futhi kwangisiza. Ngenkathi ufunda okokufundisa usebenzisa i-vim ngasikhathi sinye.

  15.   Ezequiel kusho

    Sawubona mphakathi, ngisebenzisa i-vim futhi njengabaningi benu ngikuthola kuyithuluzi elibalulekile emsebenzini wami. Bengifuna ukunikeza ithiphu ewusizo kakhulu ukuphatha ukufakwa kwama-plugins. Ithuluzi libizwa nge- "pathogen". Le plugin ilawula izindlela zama-plugins ahlukahlukene, okwenza ukufakwa nokukhishwa kwazo kube lula kakhulu. Uma usebenzisa i-vim, kufanele usebenzise leli thuluzi. Elinye icebo: ekhasini le-vimbits.com kunamamephu amaningi namasethingi athakazelisayo kakhulu. Futhi kulabo abasebenzisa iPython, ngincoma i-plugin ye-python-mode. Ngiyethemba ukuthi iyabasebenzela njengoba injalo nakimi.
    Masisebenzise iLinux.
    🙂

  16.   UDante Mdz. kusho

    Angikayisebenzisi iVim okwamanje, ingenza ngibe nelukuluku kakhulu. Kufanele ngiyizame, kepha manje!

  17.   Mauricio kusho

    Ngivumelana nokuningi lapha.

    Ngiyakhumbula ukuthi izinsuku ezimbalwa zokuqala ngangizama ukusebenzisa i-vim futhi ngangihlala ngiyishiya, ngoba kwakubonakala kunzima ukuyisebenzisa, kuze kube ngolunye usuku ngaqala ukuyizwa futhi ngangiqonda kancane ukuthi isebenza kanjani.

    Ukusuka lapho, kwaba ngumhleli wami wombhalo engiwuthandayo, lapho kufanele ngihlele ifayela ngokushesha kwikhonsoli.

    Ngendlela, i-athikili enhle.

    1.    Alexander Mayor kusho

      Ngiyabonga, ngiyajabula ukuthi bekuyindatshana ethokozisayo.

      Ukubingelela

  18.   I-Dry0Gut kusho

    ... okuthunyelwe kuhle kakhulu, ngiyakuthanda kakhulu i-vim ngikusebenzisa ukwenza uhlelo ngoba ukumisa i-arch bengihlala ngiba nobunzima kepha kuyindaba yokwenza. Lokhu okuthunyelwe kusukela namhlanje akuphelelwe yisikhathi.

    Ukubingelela!

  19.   I-Dry0Gut kusho

    Kuthiwani, nginenkinga yokuthi lesi sixhumanisi siphukile, othile angangitshela ukuthi iyiphi esebenzayo manje. Okwamanje ngivivinya ezinye ozincomayo kepha ngithanda ukwazi umbono wakho… Ngiyabonga !!

    Ukubingelela!

  20.   I-Dry0Gut kusho

    umthombo ~ / .vim_runtime / vimrcs / plugins_config.vim

  21.   I-Dry0Gut kusho

    … Ngibe nezinkinga nge-yankring plugin log file lapho ngizama ukudala i- yankring_history_v2.txt log log. Noma yimuphi umbono onganginikeza wona ukuthi ungawuxazulula kanjani ...

    Saludos !!

  22.   Anonymous kusho

    Ngiyayithanda ibhulogi yakho.
    Ngifuna ukukutshela ukuthi unezixhumanisi ezithombeni eziphukile.