seulcoding

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

Folding 2

Learn Vimscript The Hard Way - 49. Advanced Folding - part 3

Advanced Folding - part 3 해당 장은 매우 길기 때문에 시리즈로 작성할 예정이다. Advanced folding - part 1 Advanced folding - part 2 Advanced folding - part 3 Finishing the Fold Function 꽤 긴 챕터였으므로, 이제 슬슬 folding 함수를 마무리지어보자. GetPotionFold 함수를 다음과 같이 수정해보라. function! GetPotionFold(lnum) if getline(a:lnum) =~? '\v^\s*$' return '-1' endif let this_indent = IndentLevel(a:lnum) let next_indent = IndentLevel..

tools/vim 2020.05.03

Learn Vimscript The Hard Way - 49. Advanced Folding - part 1

Advanced Folding - 1/3 해당 장은 매우 길기 때문에 파트를 나눠서 작성할 예정이다. 저번 장에서는 vim의 indent 폴딩을 사용하여 potion 파일에 대해 빠르고 지저분한 fold를 추가하였다. factorial.pn을 열어서 zM으로 모든 폴딩이 닫혀있는 것을 확인하라. 해당 파일은 다음과 같아 보일 것이다. factorial = (n): +-- 5 lines: total = 1 10 times (i): +-- 4 lines: i string print 첫 번째 fold를 열면 다음과 같아진다. factorial = (n): total = 1 n to 1 (i): +--- 2 lines: # Multiply the running total. total. 10 times (i): ..

tools/vim 2020.05.01
이전
1
다음
더보기
프로필사진

seulcoding

  • 분류 전체보기 (594)
    • backend (269)
      • computer science (5)
      • django (80)
      • django-rest-framework (2)
      • python (41)
      • ubuntu (29)
      • sql (postgres) (21)
      • R (2)
      • 데이터분석 (6)
      • docker (21)
      • blockchain (7)
      • rust (2)
      • kubernetes (5)
      • kubernetes in action (18)
      • kubernetes docs (10)
    • frontend (38)
      • html & css (13)
      • javascript (6)
      • React (0)
      • react.js (0)
      • vue.js (14)
      • node.js (2)
    • tools (185)
      • aws (9)
      • linux (22)
      • git (8)
      • vim (92)
      • vimscript (0)
      • mac (28)
      • terminal (8)
      • jekyll blog (5)
      • apis (3)
    • etc (48)
      • 안드로이드 (1)
      • 02_1.오늘의인턴 (25)
      • 생활코딩-웹프로그래밍 (9)
      • introducing python: 처음 시작하는.. (6)
    • Life & Idea (24)
      • 도쿄,하코네 (7)
      • 비계 (2)
      • 행복 (8)
    • Toy Project (1)

Tag

kubernetes in action, k8s, Kubernetes, Shell Script, Folding, Mac, configmap, fold, POD, backend, Docker, vim, helm, external command, Shell, section, Service, Linux, vimscript, django,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바