save file storage


생각의 스크린샷 저장소
  • kubernetes3

    post subtitle

    By widehyo
    ~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step08 $ cat deployment1.yml apiVersion: apps/v1 kind: Deployment metadata: name: web-deploy spec: replicas: 3 selector: matchLabels: app: web template: metadata: labels: app: web spec: containers: - name: nginx image: nginx:1.16 [Read More]
    Tags:
  • terminal buffer를 통한 pwd sync

    terminal buffer를 통한 pwd sync

    By widehyo
    vim의 :terminal 커맨드를 사용하면서 알게 된 내용 vim의 :terminal excommand는 buftype이 ‘terminal’인 buffer를 연다 확인하는 방법은 getbufvar(<bufnr(of terminal buffer)>, ‘&buftype’) == ‘terminal’ vim의 terminal-buffer는 커맨드라인을 이용할 수 있는 Terminal-Job 모드와 vim-keybinding을 사용할 수 있는 Terminal-Normal 모드를 지원한다. Terminal-Job모드에서 Terminal-Normal모드로 전환은 키를 이용한다. (:h terminal-typing) <C-\><C-N> <C-W>N(CTRL-W 입력 후 그냥 대문자... [Read More]
    Tags:
  • vim popup으로 floating window를 사용해보자

    my vim popup configuration

    By widehyo
    vim 8.x 이상부터 popup이라는 기능을 제공한다(:h popup) vim의 popup은 floating window를 제공하는 기능으로, 주로 popup_menu()를 사용한다 popup_menu()의 디폴트 동작은 주어진 리스트를 j,k로 navigating하며 엔터로 팝업을 닫는다 팝업이 닫히는 기본 동작을 변경하려면 callback 함수를 만들어 config의 callback키에 연결한다. callback으로 연결된 함수는 첫번째 인자로 popup buffer의 window id, 두번째 인자로 item index가... [Read More]
  • 필요한 스크립트를 직접 만들어보자

    make your own script

    By widehyo
    기능과 접근성 터미널 환경에서 자주 느끼는 점은 좋은 기능이 있어도 해당 기능에 접근하기 위한 절차가 복잡하면 해당 기능의 존재를 모르거나 사용성이 매우 떨어진다는 점이다. 대표적으로 vim에서 윈도우를 다루는 기능, 소위 를 prefix로 하는 여러 기능들을 `nnoremap h` 등으로 매핑하기 전까지는 거의 사용하지 않았고, 이외 윈도우를 split하는 명령이나(``, ``) 새로운 버퍼를... [Read More]
    Tags:
  • 네오빔 환경설정 구성기록(2)

    surround.vim

    By widehyo
    08/02 dot_files 연동 neovim과 관련된 dot_files를 dot_files repository를 이용해서 관리하고 있다. tar의 옵션 중 –from-files를 이용한다. tar –from-files는 압축할 파일/디렉터리를 커맨드라인으로 넘기는 대신, 해당 목록이 적힌 파일 디스크립터를 전달하는 옵션이다. 사용예: tar -czf a.tgz 1.txt 2.txt == tar -cvf a.tgz --from-files list.txt where echo 1.txt > list.txt echo 2.txt >>... [Read More]
    Tags: