Skip to content

Commit a1b9090

Browse files
committed
Update Brewfile
1 parent a5668d6 commit a1b9090

File tree

2 files changed

+308
-17
lines changed

2 files changed

+308
-17
lines changed

.vimrc

+250
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,250 @@
1+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2+
"
3+
" ██╗ ██╗██╗███╗ ███╗██████╗ ██████╗
4+
" ██║ ██║██║████╗ ████║██╔══██╗██╔════╝
5+
" ██║ ██║██║██╔████╔██║██████╔╝██║
6+
" ╚██╗ ██╔╝██║██║╚██╔╝██║██╔══██╗██║
7+
" ╚████╔╝ ██║██║ ╚═╝ ██║██║ ██║╚██████╗
8+
" ╚═══╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝
9+
"
10+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
11+
12+
" Disable compatibility with vi which can cause unexpected issues.
13+
set nocompatible
14+
15+
" Enable type file detection. Vim will be able to try to detect the type of file is use.
16+
filetype on
17+
18+
" Enable plugins and load plugin for the detected file type.
19+
filetype plugin on
20+
21+
" Load an indent file for the detected file type.
22+
filetype indent on
23+
24+
" Turn syntax highlighting on.
25+
syntax on
26+
27+
" Add numbers to the file.
28+
set number
29+
30+
" Highlight cursor line underneath the cursor horizontally.
31+
set cursorline
32+
33+
" Highlight cursor line underneath the cursor vertically.
34+
set cursorcolumn
35+
36+
" Set shift width to 4 spaces.
37+
set shiftwidth=4
38+
39+
" Set tab width to 4 columns.
40+
set tabstop=4
41+
42+
" Use space characters instead of tabs.
43+
set expandtab
44+
45+
" Do not save backup files.
46+
set nobackup
47+
48+
" Do not let cursor scroll below or above N number of lines when scrolling.
49+
set scrolloff=10
50+
51+
" Do not wrap lines. Allow long lines to extend as far as the line goes.
52+
set nowrap
53+
54+
" While searching though a file incrementally highlight matching characters as you type.
55+
set incsearch
56+
57+
" Ignore capital letters during search.
58+
set ignorecase
59+
60+
" Override the ignorecase option if searching for capital letters.
61+
" This will allow you to search specifically for capital letters.
62+
set smartcase
63+
64+
" Show partial command you type in the last line of the screen.
65+
set showcmd
66+
67+
" Show the mode you are on the last line.
68+
set showmode
69+
70+
" Show matching words during a search.
71+
set showmatch
72+
73+
" Use highlighting when doing a search.
74+
set hlsearch
75+
76+
" Set the commands to save in history default number is 20.
77+
set history=1000
78+
79+
" Enable auto completion menu after pressing TAB.
80+
set wildmenu
81+
82+
" Make wildmenu behave like similar to Bash completion.
83+
set wildmode=list:longest
84+
85+
" There are certain files that we would never want to edit with Vim.
86+
" Wildmenu will ignore files with these extensions.
87+
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
88+
89+
" PLUGINS ---------------------------------------------------------------- {{{
90+
91+
call plug#begin('~/.vim/plugged')
92+
93+
Plug 'dense-analysis/ale'
94+
95+
Plug 'preservim/nerdtree'
96+
97+
call plug#end()
98+
99+
" }}}
100+
101+
" MAPPINGS --------------------------------------------------------------- {{{
102+
103+
" Set the backslash as the leader key.
104+
let mapleader = '\'
105+
106+
" Press \\ to jump back to the last cursor position.
107+
nnoremap <leader>\ ``
108+
109+
" Press \p to print the current file to the default printer from a Linux operating system.
110+
" View available printers: lpstat -v
111+
" Set default printer: lpoptions -d <printer_name>
112+
" <silent> means do not display output.
113+
nnoremap <silent> <leader>p :%w !lp<CR>
114+
115+
" Type jj to exit insert mode quickly.
116+
inoremap jj <Esc>
117+
118+
" Press the space bar to type the : character in command mode.
119+
nnoremap <space> :
120+
121+
" Pressing the letter o will open a new line below the current one.
122+
" Exit insert mode after creating a new line above or below the current line.
123+
nnoremap o o<esc>
124+
nnoremap O O<esc>
125+
126+
" Center the cursor vertically when moving to the next word during a search.
127+
nnoremap n nzz
128+
nnoremap N Nzz
129+
130+
" Yank from cursor to the end of line.
131+
nnoremap Y y$
132+
133+
" Map the F5 key to run a Python script inside Vim.
134+
" We map F5 to a chain of commands here.
135+
" :w saves the file.
136+
" <CR> (carriage return) is like pressing the enter key.
137+
" !clear runs the external clear screen command.
138+
" !python3 % executes the current file with Python.
139+
nnoremap <f5> :w <CR>:!clear <CR>:!python3 % <CR>
140+
141+
" You can split the window in Vim by typing :split or :vsplit.
142+
" Navigate the split view easier by pressing CTRL+j, CTRL+k, CTRL+h, or CTRL+l.
143+
nnoremap <c-j> <c-w>j
144+
nnoremap <c-k> <c-w>k
145+
nnoremap <c-h> <c-w>h
146+
nnoremap <c-l> <c-w>l
147+
148+
" Resize split windows using arrow keys by pressing:
149+
" CTRL+UP, CTRL+DOWN, CTRL+LEFT, or CTRL+RIGHT.
150+
noremap <c-up> <c-w>+
151+
noremap <c-down> <c-w>-
152+
noremap <c-left> <c-w>>
153+
noremap <c-right> <c-w><
154+
155+
" NERDTree specific mappings.
156+
" Map the F3 key to toggle NERDTree open and close.
157+
nnoremap <F3> :NERDTreeToggle<cr>
158+
159+
" Have nerdtree ignore certain files and directories.
160+
let NERDTreeIgnore=['\.git$', '\.jpg$', '\.mp4$', '\.ogg$', '\.iso$', '\.pdf$', '\.pyc$', '\.odt$', '\.png$', '\.gif$', '\.db$']
161+
162+
" }}}
163+
164+
" VIMSCRIPT -------------------------------------------------------------- {{{
165+
166+
" Enable the marker method of folding.
167+
augroup filetype_vim
168+
autocmd!
169+
autocmd FileType vim setlocal foldmethod=marker
170+
augroup END
171+
172+
" If the current file type is HTML, set indentation to 2 spaces.
173+
autocmd Filetype html setlocal tabstop=2 shiftwidth=2 expandtab
174+
175+
" If Vim version is equal to or greater than 7.3 enable undofile.
176+
" This allows you to undo changes to a file even after saving it.
177+
if version >= 703
178+
set undodir=~/.vim/backup
179+
set undofile
180+
set undoreload=10000
181+
endif
182+
183+
" You can split a window into sections by typing `:split` or `:vsplit`.
184+
" Display cursorline and cursorcolumn ONLY in active window.
185+
augroup cursor_off
186+
autocmd!
187+
autocmd WinLeave * set nocursorline nocursorcolumn
188+
autocmd WinEnter * set cursorline cursorcolumn
189+
augroup END
190+
191+
" If GUI version of Vim is running set these options.
192+
if has('gui_running')
193+
194+
" Set the background tone.
195+
set background=dark
196+
197+
" Set the color scheme.
198+
colorscheme molokai
199+
200+
" Set a custom font you have installed on your computer.
201+
" Syntax: <font_name>\ <weight>\ <size>
202+
set guifont=Monospace\ Regular\ 12
203+
204+
" Display more of the file by default.
205+
" Hide the toolbar.
206+
set guioptions-=T
207+
208+
" Hide the the left-side scroll bar.
209+
set guioptions-=L
210+
211+
" Hide the the left-side scroll bar.
212+
set guioptions-=r
213+
214+
" Hide the the menu bar.
215+
set guioptions-=m
216+
217+
" Hide the the bottom scroll bar.
218+
set guioptions-=b
219+
220+
" Map the F4 key to toggle the menu, toolbar, and scroll bar.
221+
" <Bar> is the pipe character.
222+
" <CR> is the enter key.
223+
nnoremap <F4> :if &guioptions=~#'mTr'<Bar>
224+
\set guioptions-=mTr<Bar>
225+
\else<Bar>
226+
\set guioptions+=mTr<Bar>
227+
\endif<CR>
228+
229+
endif
230+
231+
" }}}
232+
233+
" STATUS LINE ------------------------------------------------------------ {{{
234+
235+
" Clear status line when vimrc is reloaded.
236+
set statusline=
237+
238+
" Status line left side.
239+
set statusline+=\ %F\ %M\ %Y\ %R
240+
241+
" Use a divider to separate the left side from the right side.
242+
set statusline+=%=
243+
244+
" Status line right side.
245+
"set statusline+=\ ascii:\ %b\ hex:\ 0x%B\ row:\ %l\ col:\ %c\ percent:\ %p%%
246+
247+
" Show the status on the second to last line.
248+
set laststatus=2
249+
set termguicolors
250+
" }}}

Brewfile.lock.json

+58-17
Original file line numberDiff line numberDiff line change
@@ -183,45 +183,45 @@
183183
}
184184
},
185185
"sqlite": {
186-
"version": "3.45.3",
186+
"version": "3.46.0",
187187
"bottle": {
188188
"rebuild": 0,
189189
"root_url": "https://ghcr.io/v2/homebrew/core",
190190
"files": {
191191
"arm64_sonoma": {
192192
"cellar": ":any",
193-
"url": "https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:253a7732af34b28f992072e84d9977d511844a0ebd238e94a5cb2f3fe254604c",
194-
"sha256": "253a7732af34b28f992072e84d9977d511844a0ebd238e94a5cb2f3fe254604c"
193+
"url": "https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:57bdf2c2372c876ad1b712eeff3c158fa17dcdcc2a82f0b6d28888191c7acb48",
194+
"sha256": "57bdf2c2372c876ad1b712eeff3c158fa17dcdcc2a82f0b6d28888191c7acb48"
195195
},
196196
"arm64_ventura": {
197197
"cellar": ":any",
198-
"url": "https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:844fbdee84f718f211936a2aea851a6983af3501533af643afccb17314e30fd2",
199-
"sha256": "844fbdee84f718f211936a2aea851a6983af3501533af643afccb17314e30fd2"
198+
"url": "https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:f7b3b2b320099ac6149c4f9248403acb8d6c3c9b6c8707233bb8fecb899f532c",
199+
"sha256": "f7b3b2b320099ac6149c4f9248403acb8d6c3c9b6c8707233bb8fecb899f532c"
200200
},
201201
"arm64_monterey": {
202202
"cellar": ":any",
203-
"url": "https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:e51cd4fb90a3a233f8b19d0068f1f4dfd537198be60b25261069b86a463090d5",
204-
"sha256": "e51cd4fb90a3a233f8b19d0068f1f4dfd537198be60b25261069b86a463090d5"
203+
"url": "https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:02ccb7e5f55be4d2bbc98869053252ffefbbc27f031914e25e2cfe3280f0f0b5",
204+
"sha256": "02ccb7e5f55be4d2bbc98869053252ffefbbc27f031914e25e2cfe3280f0f0b5"
205205
},
206206
"sonoma": {
207207
"cellar": ":any",
208-
"url": "https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:47e8a06001c02bd20d69431a76023baa4662a60127faf9fb8a3106d5f532dd29",
209-
"sha256": "47e8a06001c02bd20d69431a76023baa4662a60127faf9fb8a3106d5f532dd29"
208+
"url": "https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:f5991da95d03429faaa777f0475959b8b2ae11a46e47b4d013e8e428443c1ea9",
209+
"sha256": "f5991da95d03429faaa777f0475959b8b2ae11a46e47b4d013e8e428443c1ea9"
210210
},
211211
"ventura": {
212212
"cellar": ":any",
213-
"url": "https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:0b7a573709f3fad083805cd2cf0d7649721386a177cc18a08613c10a2d4c9753",
214-
"sha256": "0b7a573709f3fad083805cd2cf0d7649721386a177cc18a08613c10a2d4c9753"
213+
"url": "https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:362a17090747680787abc65bfa6b8e2af3b6245e39edd5c3ca5f77b2dc05d203",
214+
"sha256": "362a17090747680787abc65bfa6b8e2af3b6245e39edd5c3ca5f77b2dc05d203"
215215
},
216216
"monterey": {
217217
"cellar": ":any",
218-
"url": "https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:71900ed318d6491eac58d5828b46e939f8dbcb5e1b1cb70c6bbc8c21bbe93192",
219-
"sha256": "71900ed318d6491eac58d5828b46e939f8dbcb5e1b1cb70c6bbc8c21bbe93192"
218+
"url": "https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:9117120ebe7933b7a3c588d62bc804d90f575175c7fe082eadee257fa51727e6",
219+
"sha256": "9117120ebe7933b7a3c588d62bc804d90f575175c7fe082eadee257fa51727e6"
220220
},
221221
"x86_64_linux": {
222222
"cellar": ":any_skip_relocation",
223-
"url": "https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:ea3542fea62b40b86e30d357fab3679ede4e2172662b594bf638464ae9708154",
224-
"sha256": "ea3542fea62b40b86e30d357fab3679ede4e2172662b594bf638464ae9708154"
223+
"url": "https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:59a0e215241a611985229353273a803339372c7a075f040fe304388c0a044084",
224+
"sha256": "59a0e215241a611985229353273a803339372c7a075f040fe304388c0a044084"
225225
}
226226
}
227227
}
@@ -5350,6 +5350,40 @@
53505350
}
53515351
}
53525352
}
5353+
},
5354+
"podman": {
5355+
"version": "5.0.3",
5356+
"bottle": {
5357+
"rebuild": 0,
5358+
"root_url": "https://ghcr.io/v2/homebrew/core",
5359+
"files": {
5360+
"arm64_sonoma": {
5361+
"cellar": ":any_skip_relocation",
5362+
"url": "https://ghcr.io/v2/homebrew/core/podman/blobs/sha256:a0f6afb5a8d286ea1eee44aa3456c55ac2f406a338203a4e951e40dae7f8582d",
5363+
"sha256": "a0f6afb5a8d286ea1eee44aa3456c55ac2f406a338203a4e951e40dae7f8582d"
5364+
},
5365+
"arm64_ventura": {
5366+
"cellar": ":any_skip_relocation",
5367+
"url": "https://ghcr.io/v2/homebrew/core/podman/blobs/sha256:07fce0bd8a5eeb134580e5fa004c51d0c4641b548de2d5dc60c4351ad20ad906",
5368+
"sha256": "07fce0bd8a5eeb134580e5fa004c51d0c4641b548de2d5dc60c4351ad20ad906"
5369+
},
5370+
"sonoma": {
5371+
"cellar": ":any_skip_relocation",
5372+
"url": "https://ghcr.io/v2/homebrew/core/podman/blobs/sha256:4a0409a5a8822d054f1aae1335e472da1113ed6a631673a4c1ce061037f41499",
5373+
"sha256": "4a0409a5a8822d054f1aae1335e472da1113ed6a631673a4c1ce061037f41499"
5374+
},
5375+
"ventura": {
5376+
"cellar": ":any_skip_relocation",
5377+
"url": "https://ghcr.io/v2/homebrew/core/podman/blobs/sha256:694df3eb02a077bed06d57ba042d8698b09aaa9951115794927cbd5238b6338f",
5378+
"sha256": "694df3eb02a077bed06d57ba042d8698b09aaa9951115794927cbd5238b6338f"
5379+
},
5380+
"x86_64_linux": {
5381+
"cellar": "/home/linuxbrew/.linuxbrew/Cellar",
5382+
"url": "https://ghcr.io/v2/homebrew/core/podman/blobs/sha256:20256b417da76f95aa566c9bfec71b304a8c005941beab7673b551cfb5290197",
5383+
"sha256": "20256b417da76f95aa566c9bfec71b304a8c005941beab7673b551cfb5290197"
5384+
}
5385+
}
5386+
}
53535387
}
53545388
},
53555389
"cask": {
@@ -5718,6 +5752,12 @@
57185752
"options": {
57195753
"full_name": "zoom"
57205754
}
5755+
},
5756+
"podman-desktop": {
5757+
"version": "1.10.2",
5758+
"options": {
5759+
"full_name": "podman-desktop"
5760+
}
57215761
}
57225762
},
57235763
"vscode": {
@@ -5793,13 +5833,14 @@
57935833
"wholroyd.jinja": null,
57945834
"xirider.livecode": null,
57955835
"zainchen.json": null,
5796-
"ziyasal.vscode-open-in-github": null
5836+
"ziyasal.vscode-open-in-github": null,
5837+
"enkia.tokyo-night": null
57975838
}
57985839
},
57995840
"system": {
58005841
"macos": {
58015842
"sonoma": {
5802-
"HOMEBREW_VERSION": "4.3.1",
5843+
"HOMEBREW_VERSION": "4.3.2",
58035844
"HOMEBREW_PREFIX": "/opt/homebrew",
58045845
"Homebrew/homebrew-core": "api",
58055846
"CLT": "15.3.0.0.1.1708646388",

0 commit comments

Comments
 (0)