접이식 뷰 정력 만들기

코드 예제

0
0

접이식 뷰 정력 만들기

  augroup myView 
    autocmd!
    autocmd BufWinLeave *.* mkview
    autocmd BufWinEnter *.* silent! loadview
  augroup END
  " the '!' mark helped me get rid of the error on startup
  
" and if you want to be more explicit make custom function
" assuming your error code is E484 eg:
" Error detected while processing BufWinEnter Autocommands for "*":
" E484: Can't open file /home/jan/.local/share/nvim/view/~=+index=
  
 function! LoadView() abort
    try
        loadview
    catch /E484/
        return
    endtry
 endfunction

autocmd BufWinEnter * call LoadView()

다른 언어로

이 페이지는 다른 언어로되어 있습니다

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................