NerdTree

2022.09.09 - tips ์ถ”๊ฐ€ ์†Œ๊ฐœ The NERDTree is a file system explorer for the Vim editor. vim ํ™˜๊ฒฝ์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ํŒŒ์ผ ์‹œ์Šคํ…œ ํƒ์ƒ‰๊ธฐ์ด๋‹ค. ์„ค์น˜ ~/.vimrc ๋˜๋Š” ~/.config/nvim/init.vim ์„ค์ • Plug 'scrooloose/nerdtree' vim vim +PlugInstall +qall nvim nvim +PlugInstall +qall ์„ค์ • ๋ฐ ๊ธฐ๋Šฅ F8ํ‚ค๋กœ ์—ด๊ธฐ/๋‹ซ๊ธฐ " nerdtree nnoremap <F8> :NERDTreeToggle<CR> "ํ™”๋ฉด์— ๋„์šฐ๊ธฐ: F8ํ‚ค let g:NERDTreeWinPos = "right" "ํ™”๋ฉด ์˜ค๋ฅธ์ชฝ์— ๋„์šฐ๊ธฐ autocmd BufEnter * lcd %:p:h autocmd VimEnter * if !argc() | NERDTree | endif "vim ๋‹จ๋… ์‹คํ–‰์‹œ ์‹คํ–‰์‹œํ‚ค๊ธฐ h``j``k``l - ์ด๋™ enter - ํด๋”์—ด๊ธฐ, ํŒŒ์ผ์—ด๊ธฐ q - ๋‚˜๊ฐ€๊ธฐ h - ๋„์›€๋ง c - ์„ ํƒ๋œ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ root๋กœ ๋งŒ๋“ค๊ธฐ m - ๋ฉ”๋‰ด I - ์ˆจ์€ํŒŒ์ผ(hidden file/dir) ๋ณด์ด๊ธฐ Tips shift + i - show hidden dir and files / - Search directories and files form cusor s - open file to split vertically ...

2022-08-26 ยท (updated 2022-09-09) ยท 131 words

Nvim neovim

Start nvim install - nvim ์ตœ์‹ ๋ฒ„์ „ ์„ค์น˜ nvim features - nvim ๊ธฐ๋ณธ ์ œ๊ณต ๊ธฐ๋Šฅ๋“ค nvim lua - nvim์— ๊ธฐ๋ณธ ๋‚ด์žฅ๋œ luaJIT ํ™œ์šฉ๊ณผ ์„ค์ •ํ•˜๊ธฐ astronvim - ๋น ๋ฅธ ์‹œ์ž‘, nvim์— ํ”Œ๋Ÿฌ๊ทธ์ธ๊ณผ ์„ค์ •์„ ์ถ”๊ฐ€ํ•˜์—ฌ IDEํ™˜๊ฒฝ ์ œ๊ณต Plugins - Common packer.nvim โ€“ ํ”Œ๋Ÿฌ๊ทธ์ธ ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ gruvbox.nvim โ€“ colorscheme alpha-nvimโ€™ โ€“ ์‹œ์ž‘ํ™”๋ฉด (startify ๋Œ€์ฒด) nvim-web-devicons โ€“ ํŒŒ์ผ์ด๋‚˜ ํด๋”๋ฅผ ์ด์˜๊ฒŒ ํ‘œ์‹œํ•ด์ฃผ๋Š” ํ”Œ๋Ÿฌ๊ทธ์ธ nvim-tree - lua๋กœ ๋งŒ๋“  ํŒŒ์ผ ํƒ์ƒ‰๊ธฐ: NerdTree ๋Œ€์ฒด luatab.nvim - tab ํ‘œ์‹œ ๋ฐ ๊ด€๋ฆฌ (tabline ๋Œ€์ฒด) lualine.nvim - ํ•˜๋‹จ๋ถ€ ๋ผ์ธ ํ‘œ์‹œ(airline, powerline ๋Œ€์ฒด) Comment nvim - ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด๋ณ„ ์ฃผ์„ ์ฒ˜๋ฆฌ Plugins - Development ๊ฐœ๋ฐœํ™˜๊ฒฝ ๊ตฌ์„ฑ ...

2022-08-25 ยท (updated 2022-09-12) ยท 117 words

PaperMod - Hugo Theme

TODO ์•„์ด์ฝ˜ ํ‘œ์‹œ ๋ฐ ๊ตฌ์กฐ ํŒŒ์•…ํ•ด์„œ ์ด๋ฅผ ์ ์šฉํ•˜๊ธฐ 2022-09-08 - ๋‚ด์šฉ ์ˆ˜์ •, ๊ทธ๋ฆผํŒŒ์ผ ๋งํฌ ๊ด€๋ จ ์ถ”๊ฐ€ PaperMod screen shot Intro hugo์˜ ํ…Œ๋งˆ ์ค‘์— ๊ฐ€์žฅ ๊ฐ„๊ฒฐํ•˜๊ณ  ์•ˆ์ •์ ์ด๋ฉฐ ๋งŽ์€ ์‚ฌ๋žŒ๋“ค์ด ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค. hugo ํ”„๋กœ์ ํŠธ๋Š” ~/www๋กœ ๊ฐ€์ •ํ•œ๋‹ค. ์ฃผ์˜ํ•  ๊ฒƒ์€ hugo์˜ ๊ตฌ์กฐ๊ฐ€ ~/www/contents/์ดํ•˜์— markdown ํŒŒ์ผ์„ ๋„ฃ์–ด์ฃผ์–ด์•ผ ํ•˜๊ณ , ์ดํ•˜ ํด๋”๋Š” ์ ์ ˆํžˆ ๋งŒ๋“ค๋˜ index.mdํŒŒ์ผ์€ ๋งŒ๋“ค๋ฉด ์›นํŽ˜์ด์ง€ ๋ฉ”์ธ ํ™”๋ฉด์— ๋‚ด์šฉ์ด ๋œจ์งˆ ์•Š๋Š”๋‹ค๋Š” ์ ์ด๋‹ค. ์„ค์ •์€ ~/www/config.yml์ด๋‹ค. ์„ค์ •์„ ๋ณ€๊ฒฝํ•˜๋ฉด hugo -D server ๋™์ž‘์‹œ ์ž๋™์œผ๋กœ ๋ฐ˜์˜๋œ๋‹ค. ๋งŒ์•ฝ ์„ค์ • ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ๋ธŒ๋ผ์šฐ์ €์—์„œ ๋ณด์ด์ง€ ์•Š์œผ๋ฉด ์„œ๋ฒ„๋ฅผ ์žฌ์‹คํ–‰ ํ•œ๋‹ค. Install and Update Install $ cd ~/www $ git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod --depth=1 Update $ cd themes/PaperMod $ git pull Setup ๊ด€๋ จ ๋งํฌ ์•„๋ž˜ ์‚ฌ์ดํŠธ์— config.yml ๋ฐ post.md ์ƒ˜ํ”Œ์ด ์žˆ์œผ๋‹ˆ ์ฐธ๊ณ ํ•œ๋‹ค. https://adityatelange.github.io/hugo-PaperMod/posts/papermod/papermod-installation/ ํ…Œ๋งˆ ์„ค์ • papermod ์˜ ํ…Œ๋งˆ๋Š” light/dark/auto ๊ฐ€ ์žˆ๋‹ค. ํ™ˆํ™”๋ฉด ์ขŒ์ธก ์ƒ๋‹จ์— ํ•ด/๋‹ฌ ์•„์ด์ฝ˜ ํด๋ฆญ baseURL: "https://your_idname.github.io/" # ์ž์‹ ์˜ ๊นƒํŽ˜์ด์ง€ URL title: My Blog and wiki # ๋ธ”๋กœ๊ทธํ™ˆ ์ œ๋ชฉ paginate: 5 # ํ™ˆ์—์„œ ๋ณด์—ฌ์ค„ ๋ธ”๋กœ๊ทธ ํ‘œ์‹œ ๊ฐฏ์ˆ˜ theme: "PaperMod" # ํ…Œ๋งˆ PaperMod๋กœ ์ง€์ • params: # defaultTheme: light # defaultTheme: light defaultTheme: auto # auto๋กœ ์„ค์ •ํ•˜๋ฉด ์‚ฌ์šฉ์ž๊ฐ€ ๋ฐ”๊ฟ€ ์ˆ˜ ์žˆ๋‹ค. # disableThemeToggle: true # ํ•ด/๋‹ฌ ์•„์ด์ฝ˜์„ ๋ณด์ด์ง€ ์•Š๊ฒŒ ํ•˜๊ธฐ ๋ฉ”๋‰ด์„ค์ • ํ™ˆ ์šฐ์ธก ์ƒ๋‹จ ๋ฉ”๋‰ด๋ฅผ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ถ”๊ฐ€ํ•œ๋‹ค. menu: main: - identifier: categories # ๋ธ”๋กœ๊ทธ ์นดํ…Œ๊ณ ๋ฆฌ ๋ฉ”๋‰ด name: categories url: /categories/ weight: 10 - identifier: search # ๋ธ”๋กœ๊ทธ ๊ฒ€์ƒ‰ ๋ฉ”๋‰ด name: Search url: /search weight: 30 - identifier: tags # ๋ธ”๋กœ๊ทธ ํƒœ๊ทธ ๋ฉ”๋‰ด name: tags url: /tags/ weight: 20 - identifier: archives # ๋ธ”๋กœ๊ทธ ํƒœ๊ทธ ๋ฉ”๋‰ด name: tags url: /tags/ weight: 20 Archive Page - ์•„์นด์ด๋ธŒ ํŽ˜์ด์ง€, ๋‚ ์งœ๋ณ„๋กœ ์˜ฌ๋ฆฐ ํฌ์ŠคํŠธ๋ฌธ์„œ๊ฐ€ ์ •๋ฆฌ๋จ $ cat << EOF > ~/www/content/archives.md --- title: "Archive" layout: "archives" # url: "/archives" summary: "archives" --- EOF Search Page - ๊ฒ€์ƒ‰ํŽ˜์ด์ง€, ํผ์ง€ ์Šคํƒ€์ผ์˜ ๋น ๋ฅธ ๊ฒ€์ƒ‰ $ cat << EOF > ~/www/content/search.md --- title: "Search" # in any language you want layout: "search" # is necessary # url: "/archive" # description: "Description for Search" summary: "search" placeholder: "๊ฒ€์ƒ‰์–ด๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”" --- EOF tags์™€ categories๋Š” ์˜ฌ๋ฆด ํฌ์ŠคํŠธ๋ฌธ์„œ post.md ๋“ฑ์˜ frontmatter์— ๊ธฐ๋กํ•˜๋ฉด ์ž๋™์œผ๋กœ ๋ถ„๋ฅ˜๋˜๊ณ  ํ™ˆ ์ƒ๋‹จ ๋ฉ”๋‰ด์—์„œ ๋ณผ ์ˆ˜ ์žˆ๋‹ค. Post Cover Image ~/www/config.yml์— ์„ค์ •ํ•ด์ฃผ๊ณ  ์•„๋ž˜ ์„ค๋ช…๋Œ€๋กœ ํฌ์ŠคํŠธ๋ฌธ์„œ์— ๋งํฌ๋ฅผ ๊ฑธ์–ด์ฃผ๋ฉด ๋œ๋‹ค. cover: image: "<image path/url>" # can also paste direct link from external site # ex. https://i.ibb.co/K0HVPBd/paper-mod-profilemode.png alt: "<alt text>" caption: "<text>" relative: false # To use relative path for cover image, used in hugo Page-bundles ์ด๋ฏธ์ง€ ์‚ฌ์ด์ฆˆ๋ฅผ ์ค„์ด๊ณ  ์ฒ˜๋ฆฌ์†๋„๋ฅผ ๋†’์ด๋ ค๋ฉด ์•„๋ž˜ ์„ค์ • ์ถ”๊ฐ€ params: cover: responsiveImages: false ๊ทธ๋Ÿฌ๋‚˜ ์‹ค์ œ๋กœ ์ ์šฉํ•ด๋„ ํŽ˜์ด์ง€๋Š” ๋ณ€ํ™”ํ•˜์ง€ ์•Š๋Š”๋‹ค. ...

2022-08-24 ยท (updated 2025-06-15) ยท 701 words

PaperMod - Hugo Theme

History 2025-06-27 - tip ์ถ”๊ฐ€: tags, categories list์— cover image ํ‘œ์‹œํ•˜๊ธฐ 2022-09-08 - ๋‚ด์šฉ ์ˆ˜์ •, ๊ทธ๋ฆผํŒŒ์ผ ๋งํฌ ๊ด€๋ จ ์ถ”๊ฐ€ PaperMod screen shot Intro hugo์˜ ํ…Œ๋งˆ ์ค‘์— ๊ฐ€์žฅ ๊ฐ„๊ฒฐํ•˜๊ณ  ์•ˆ์ •์ ์ด๋ฉฐ ๋งŽ์€ ์‚ฌ๋žŒ๋“ค์ด ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค. hugo ํ”„๋กœ์ ํŠธ๋Š” ~/www๋กœ ๊ฐ€์ •ํ•œ๋‹ค. ์ฃผ์˜ํ•  ๊ฒƒ์€ hugo์˜ ๊ตฌ์กฐ๊ฐ€ ~/www/contents/์ดํ•˜์— markdown ํŒŒ์ผ์„ ๋„ฃ์–ด์ฃผ์–ด์•ผ ํ•˜๊ณ , ์ดํ•˜ ํด๋”๋Š” ์ ์ ˆํžˆ ๋งŒ๋“ค๋˜ index.mdํŒŒ์ผ์€ ๋งŒ๋“ค๋ฉด ์›นํŽ˜์ด์ง€ ๋ฉ”์ธ ํ™”๋ฉด์— ๋‚ด์šฉ์ด ๋œจ์งˆ ์•Š๋Š”๋‹ค๋Š” ์ ์ด๋‹ค. ์„ค์ •์€ ~/www/config.yml์ด๋‹ค. ์„ค์ •์„ ๋ณ€๊ฒฝํ•˜๋ฉด hugo -D server ๋™์ž‘์‹œ ์ž๋™์œผ๋กœ ๋ฐ˜์˜๋œ๋‹ค. ๋งŒ์•ฝ ์„ค์ • ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ๋ธŒ๋ผ์šฐ์ €์—์„œ ๋ณด์ด์ง€ ์•Š์œผ๋ฉด ์„œ๋ฒ„๋ฅผ ์žฌ์‹คํ–‰ ํ•œ๋‹ค. Install and Update Install $ cd ~/www $ git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod --depth=1 Update $ cd themes/PaperMod $ git pull Setup ๊ด€๋ จ ๋งํฌ ์•„๋ž˜ ์‚ฌ์ดํŠธ์— config.yml ๋ฐ post.md ์ƒ˜ํ”Œ์ด ์žˆ์œผ๋‹ˆ ์ฐธ๊ณ ํ•œ๋‹ค. https://adityatelange.github.io/hugo-PaperMod/posts/papermod/papermod-installation/ ํ…Œ๋งˆ ์„ค์ • papermod ์˜ ํ…Œ๋งˆ๋Š” light/dark/auto ๊ฐ€ ์žˆ๋‹ค. ํ™ˆํ™”๋ฉด ์ขŒ์ธก ์ƒ๋‹จ์— ํ•ด/๋‹ฌ ์•„์ด์ฝ˜ ํด๋ฆญ baseURL: "https://your_idname.github.io/" # ์ž์‹ ์˜ ๊นƒํŽ˜์ด์ง€ URL title: My Blog and wiki # ๋ธ”๋กœ๊ทธํ™ˆ ์ œ๋ชฉ paginate: 5 # ํ™ˆ์—์„œ ๋ณด์—ฌ์ค„ ๋ธ”๋กœ๊ทธ ํ‘œ์‹œ ๊ฐฏ์ˆ˜ theme: "PaperMod" # ํ…Œ๋งˆ PaperMod๋กœ ์ง€์ • params: # defaultTheme: light # defaultTheme: light defaultTheme: auto # auto๋กœ ์„ค์ •ํ•˜๋ฉด ์‚ฌ์šฉ์ž๊ฐ€ ๋ฐ”๊ฟ€ ์ˆ˜ ์žˆ๋‹ค. # disableThemeToggle: true # ํ•ด/๋‹ฌ ์•„์ด์ฝ˜์„ ๋ณด์ด์ง€ ์•Š๊ฒŒ ํ•˜๊ธฐ ๋ฉ”๋‰ด์„ค์ • ํ™ˆ ์šฐ์ธก ์ƒ๋‹จ ๋ฉ”๋‰ด๋ฅผ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ถ”๊ฐ€ํ•œ๋‹ค. menu: main: - identifier: categories # ๋ธ”๋กœ๊ทธ ์นดํ…Œ๊ณ ๋ฆฌ ๋ฉ”๋‰ด name: categories url: /categories/ weight: 10 - identifier: search # ๋ธ”๋กœ๊ทธ ๊ฒ€์ƒ‰ ๋ฉ”๋‰ด name: Search url: /search weight: 30 - identifier: tags # ๋ธ”๋กœ๊ทธ ํƒœ๊ทธ ๋ฉ”๋‰ด name: tags url: /tags/ weight: 20 - identifier: archives # ๋ธ”๋กœ๊ทธ ํƒœ๊ทธ ๋ฉ”๋‰ด name: tags url: /tags/ weight: 20 Archive Page - ์•„์นด์ด๋ธŒ ํŽ˜์ด์ง€, ๋‚ ์งœ๋ณ„๋กœ ์˜ฌ๋ฆฐ ํฌ์ŠคํŠธ๋ฌธ์„œ๊ฐ€ ์ •๋ฆฌ๋จ $ cat << EOF > ~/www/content/archives.md --- title: "Archive" layout: "archives" # url: "/archives" summary: "archives" --- EOF Search Page - ๊ฒ€์ƒ‰ํŽ˜์ด์ง€, ํผ์ง€ ์Šคํƒ€์ผ์˜ ๋น ๋ฅธ ๊ฒ€์ƒ‰ $ cat << EOF > ~/www/content/search.md --- title: "Search" # in any language you want layout: "search" # is necessary # url: "/archive" # description: "Description for Search" summary: "search" placeholder: "๊ฒ€์ƒ‰์–ด๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”" --- EOF tags์™€ categories๋Š” ์˜ฌ๋ฆด ํฌ์ŠคํŠธ๋ฌธ์„œ post.md ๋“ฑ์˜ frontmatter์— ๊ธฐ๋กํ•˜๋ฉด ์ž๋™์œผ๋กœ ๋ถ„๋ฅ˜๋˜๊ณ  ํ™ˆ ์ƒ๋‹จ ๋ฉ”๋‰ด์—์„œ ๋ณผ ์ˆ˜ ์žˆ๋‹ค. Post Cover Image ~/www/config.yml์— ์„ค์ •ํ•ด์ฃผ๊ณ  ์•„๋ž˜ ์„ค๋ช…๋Œ€๋กœ ํฌ์ŠคํŠธ๋ฌธ์„œ์— ๋งํฌ๋ฅผ ๊ฑธ์–ด์ฃผ๋ฉด ๋œ๋‹ค. cover: image: "<image path/url>" # can also paste direct link from external site # ex. https://i.ibb.co/K0HVPBd/paper-mod-profilemode.png alt: "<alt text>" caption: "<text>" relative: false # To use relative path for cover image, used in hugo Page-bundles ์ด๋ฏธ์ง€ ์‚ฌ์ด์ฆˆ๋ฅผ ์ค„์ด๊ณ  ์ฒ˜๋ฆฌ์†๋„๋ฅผ ๋†’์ด๋ ค๋ฉด ์•„๋ž˜ ์„ค์ • ์ถ”๊ฐ€ params: cover: responsiveImages: false ๊ทธ๋Ÿฌ๋‚˜ ์‹ค์ œ๋กœ ์ ์šฉํ•ด๋„ ํŽ˜์ด์ง€๋Š” ๋ณ€ํ™”ํ•˜์ง€ ์•Š๋Š”๋‹ค. ...

2022-08-24 ยท (updated 2025-06-27) ยท 864 words

TODO

2023-08 2023-08-07: openrc, doas ๋ฌธ์„œ ์ •๋ฆฌ, ์—…๋กœ๋“œ 2023-08-06: vimwiki hugo github: ํ”„๋กœ์ ํŠธ๋ฅผ ์ž๋™ ์—…๋ฐ์ดํŠธํ•˜๋„๋ก nvim ์ถ”๊ฐ€ 2023-08-06: blogen.lua: ์ˆ˜์ •: vimwiki-hugo์™€ githubio ๋ชจ๋‘ git push ํ•˜๋„๋ก ์ˆ˜์ • nvim์— ๋“ฑ๋ก, ๋Š” ~/git/* git pull 2023-08-05: blogen.lua ์Šคํฌ๋ฆฝํŠธ nvim๋‚ด ์‹คํ–‰์‹œ ์ถœ๋ ฅ ๊นจ์ง€๋Š” ๋ฌธ์ œ ํ•ด๊ฒฐ 2023-08-03: windows wsl + alpine + docker + git ์„ค์น˜ ์™„๋ฃŒ ๋ฐ ๋ฌธ์„œ ์ •๋ฆฌ 2022-09 2022-09-08 nvim์—์„œ ์™œ autosave๊ฐ€ ๋˜์ง€ ์•Š๋Š”๊ฐ€ nvim lua ๊ณต๋ถ€ lua ๊ณต๋ถ€ ๊ณ„์† 2022-09-02 nvim lua ๊ณต๋ถ€ lua ๊ณต๋ถ€ ๊ณ„์† ssh keygen ๋ฌธ์„œ ์ •๋ฆฌ 2022-09-01 yadm ์„ค์น˜ ๋ฐ ์„ค์ •, ๋ฌธ์„œ ์ •๋ฆฌ lua ๊ณต๋ถ€ ๊ณ„์† 2022-08 2022-08-31 rclone ์„ค์น˜ ๋ฐ ์„ค์ • ๊ทธ๋ฆฌ๊ณ  ๋ฌธ์„œ ์ •๋ฆฌ 2022-08-26 nvim lua ๊ณต๋ถ€ www ํ”„๋กœ์ ํŠธ ๋ฌธ์„œ ์—…๋ฐ์ดํŠธ hugo project: blog.sh ๋งํฌ ํ•„ํ„ฐ๋ง ๋ถ€๋ถ„ ์ˆ˜์ • 2022-08-25 nvim ํ”Œ๋Ÿฌ๊ทธ์ธ ๊ณต๋ถ€ www ํ”„๋กœ์ ํŠธ ๋ฌธ์„œ ์—…๋ฐ์ดํŠธ 2022-08-24 vim ๊ณต๋ถ€ www ํ”„๋กœ์ ํŠธ ๋ฌธ์„œ ์—…๋ฐ์ดํŠธ generate.sh ํŒŒ์ผ๋ช… ์ˆ˜์ •: blog.sh {gen|push} ๊ทธ๋ฆฌ๊ณ  ~/bin ๋งํฌ 2022-08-23 vimwiki ๋ฌธ์„œ ์ •๋ฆฌ ๊นƒํ—ˆ๋ธŒ์— ๋งŒ๋“  ๋ธ”๋กœ๊ทธ ์˜ฌ๋ฆฌ๊ณ  ํ…Œ์ŠคํŠธ www ํ”„๋กœ์ ํŠธ ์ •๋ฆฌํ•˜๊ณ  ์ˆ˜์ • ๋ณด์™„ papermod ์— lastmod ํ‘œ์‹œํ•˜๊ธฐ vim ์— abbr ์ถ”๊ฐ€ ๋ฐ ์„ค์ •: generate.sh ์‹คํ–‰

2022-08-24 ยท (updated 2022-09-12) ยท 162 words