Paglipat ng mga buffer sa VI habang nilaktawan ang anumang terminal sa VI 8.1

ArunMKumar 07/10/2018. 2 answers, 213 views
buffers terminal terminal-buffer

Gumagamit ako ng maramihang mga file sa loob ng parehong tab at kapag lumipat ako buffers gamit ang: bn ko maabot ang terminal, at kung saan point ko na isyu ang command na muli upang ilipat. Narito ang catch, gumagamit ako ng mga keymap na gawin ang buffer switch sa halip na i-type ang buong command.

Mayroon bang paraan upang laktawan ang terminal buffer at magpatuloy sa keymap na ito.

Ang posibleng solusyon na maaari kong isipin sa ngayon ay gumagamit ng isang hiwalay na tab para sa terminal habang pinapanatili ang kasalukuyan para sa code. ito ay hindi isang malaking deal, lamang iingat ang aking katamaran buhay.

Anuman at lahat ng mga ideya ay pinahahalagahan.

2 Answers


Charles Gueunet 07/10/2018.

Dapat din itong gumana:

augroup termIgnore
    autocmd!
    autocmd TerminalOpen * set nobuflisted
augroup END 

Rich 07/10/2018.

Dapat itong gawin ang trabaho:

function! BnSkipTerm()
  let start_buffer = bufnr('%')
  bn
  while &buftype ==# 'terminal' && bufnr('%') != start_buffer
    bn
  endwhile
endfunction

nnoremap bn :call BnSkipTerm() 

Ito ay nagpapanatili lamang invoking :bn hanggang sa hindi ito sa isang terminal window, sa pamamagitan ng pagtingin sa setting na 'buftype' .


HighResolutionMusic.com - Download Hi-Res Songs

1 Katy Perry

365 flac

Katy Perry. 2019. Writer: Zedd;Katy Perry;Caroline Ailin;Corey Sanders;Daniel Davidsen;Cutfather;Peter Wallevik.
2 5 Seconds Of Summer

Who Do You Love flac

5 Seconds Of Summer. 2019. Writer: Andrew Taggart;Talay Riley;Oak;Sean Douglas;Luke Hemmings;Calum Hood;Ashton Irwin;Michael Clifford;Trevorious;Zaire Koalo.
3 Brooks

Better When You're Gone flac

Brooks. 2019. Writer: David Guetta;Emma Lov Block;Ido Zmishlany;Jackson Foote;Jeremy Dussolliet;Brooks.
4 DEAMN

Happy flac

DEAMN. 2019.
5 Bruno Mars

Please Me flac

Bruno Mars. 2019. Writer: J. White Did It;DJ White Shadow;Philip Lawrence;Bruno Mars;Cardi B.
6 Ariana Grande

7 Rings flac

Ariana Grande. 2019. Writer: Ariana Grande;Richard Rodgers;TBHits;Njomza;Michael "Mikey" Foster;Kaydence;Tayla Parx;Scootie;Oscar Hammerstein II;Victoria Monét.
7 Alec Benjamin

Let Me Down Slowly flac

Alec Benjamin. 2019. Writer: Alec Benjamin;Sir Nolan;Michael Pollack.
8 Avril Lavigne

Dumb Blonde flac

Avril Lavigne. 2019. Writer: Mitch Allan;Bonnie McKee;Nicki Minaj;Avril Lavigne.
9 Ariana Grande

Needy flac

Ariana Grande. 2019. Writer: Tayla Parx;TBHits;Victoria Monét;Ariana Grande.
10 Halsey

11 Minutes flac

Halsey. 2019. Writer: Matt Schwartz;Halsey;Dominic Harrison;Brynley Plumb.
11 Dimitri Vegas & Like Mike

Selfish flac

Dimitri Vegas & Like Mike. 2019. Writer: Victor Thell;Michael Thivaios;Maria Smith;Jeff Porcaro;Dimitri Thivaios;David Paich;Dan Book;Will Grands;ANGEMI.
12 Lauv

I'm So Tired flac

Lauv. 2019. Writer: Lauv;Michael Pollack;Troye Sivan;Leland;OZGO.
13 Afrojack

Ferrari flac

Afrojack. 2019.
14 Armin Van Buuren

Lonely For You flac

Armin Van Buuren. 2019. Writer: Armin Van Buuren;Bonnie McKee;Eden XO;Benno De Goeij.
15 Ariana Grande

Break Up With Your Girlfriend, I'm Bored flac

Ariana Grande. 2019. Writer: Kandi;Kevin "She'kspere" Briggs;Max Martin;ILYA;Savan Kotecha;Ariana Grande.
16 Bebe Rexha

Last Hurrah flac

Bebe Rexha. 2019. Writer: Andrew Wells;Nick Long;Lauren Christy;Bebe Rexha.
17 Icona Pop

This Is How We Party flac

Icona Pop. 2019. Writer: R3hab;Icona Pop.
18 Normani

Dancing With A Stranger flac

Normani. 2019. Writer: Mikkel S. Eriksen;Tor Hermansen;Jimmy Napes;Normani;Sam Smith.
19 Fall Out Boy

I've Been Waiting flac

Fall Out Boy. 2019. Writer: Andy Hurley;Patrick Stump;Pete Wentz;Joe Trohman;Lil Peep;​iLoveMakonnen.
20 Julian Jordan

Need You flac

Julian Jordan. 2019.

Related questions

Hot questions

Language

Popular Tags