From 522c3cdd21047b9f04640c6b7790b3f7fe92717f Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Mon, 9 Mar 2026 15:21:50 -0400 Subject: [PATCH 1/6] initial vim config --- vimrc | 171 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 vimrc diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..5338aa3 --- /dev/null +++ b/vimrc @@ -0,0 +1,171 @@ +let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' +if empty(glob(data_dir . '/autoload/plug.vim')) + silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' +endif + +autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) + \| PlugInstall --sync | source $MYVIMRC + \| endif + +call plug#begin('~/.vim/plugged') + Plug 'chriskempson/base16-vim' + Plug 'tpope/vim-surround' + Plug 'jiangmiao/auto-pairs' + Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } + Plug 'junegunn/fzf.vim' + Plug 'mtdl9/vim-log-highlighting' + Plug 'machakann/vim-highlightedyank' + Plug 'itchyny/lightline.vim' + Plug 'tpope/vim-fugitive' + Plug 'mhinz/vim-signify' + Plug 'osyo-manga/vim-anzu' +call plug#end() + +let mapleader = "\" +set background=dark +silent! colorscheme base16-onedark + +highlight Normal ctermbg=NONE guibg=NONE +highlight NonText ctermbg=NONE guibg=NONE +highlight CursorLine ctermbg=NONE guibg=NONE +highlight CursorLineNr ctermfg=Yellow guifg=#FFCC66 ctermbg=NONE guibg=NONE cterm=bold +highlight HighlightedyankRegion ctermfg=Black guifg=#FFFFFF ctermbg=Yellow guibg=#FFA500 +highlight NormalNC ctermbg=NONE guibg=NONE +highlight Search ctermfg=Black guifg=#000000 ctermbg=Yellow guibg=#FFCC66 +highlight LineNr ctermbg=NONE guibg=NONE +highlight Visual ctermbg=LightGray guibg=#E8E8E8 ctermfg=Black guifg=#000000 + +let g:highlightedyank_highlight_duration = 140 +let g:lightline = { 'colorscheme': 'deus', } + +let $FZF_DEFAULT_OPTS = '--bind=tab:up,shift-tab:down' +let g:fzf_layout = { 'window': 'enew' } + +" netrw settings +let g:netrw_banner = 0 +let g:netrw_winsize = 20 +let g:netrw_liststyle = 3 +let g:netrw_browse_split = 4 +let g:netrw_altv = 1 + +autocmd FileType netrw nnoremap :wincmd l +autocmd FileType netrw nnoremap :wincmd h +autocmd FileType netrw nnoremap :wincmd j +autocmd FileType netrw nnoremap :wincmd k + +set laststatus=2 + +set number +set relativenumber +set cursorline +set scrolloff=8 + +set noincsearch +set ignorecase +set smartcase + +set clipboard=unnamedplus +set noswapfile +set nobackup +set undofile +set undodir=~/.vim/undodir + +set hidden + +set tabstop=2 +set shiftwidth=2 +set expandtab + +set statusline=%{exists('*anzu#search_status')?anzu#search_status():''} + +" --- Netrw toggle (like neo-tree) --- +function! NetrwToggle() + for i in range(1, winnr('$')) + if getbufvar(winbufnr(i), '&filetype') ==# 'netrw' + execute i . 'wincmd w' + close + return + endif + endfor + let g:netrw_return_win = winnr() + Lexplore +endfunction + +function! SafeWincmd(dir) + let target = winnr(a:dir) + if target == winnr() + return + endif + if getbufvar(winbufnr(target), '&filetype') ==# 'netrw' + return + endif + execute 'wincmd ' . a:dir +endfunction + +" --- Plugin management --- +nnoremap pu :PlugUpdate +nnoremap pd :PlugUpgrade +nnoremap ps :PlugStatus +nnoremap pi :PlugInstall + +" --- Search (anzu) --- +nmap n (anzu-n-with-echo) +nmap N (anzu-N-with-echo) +nmap * (anzu-star-with-echo) +nmap # (anzu-sharp-with-echo) +nmap (anzu-clear-search-status) +nnoremap :noh + +" --- Visual indentation --- +vnoremap < >gv + +" --- Scrolling (centered) --- +nnoremap zz +nnoremap zz + +" --- Window navigation (matches nvim , skips netrw) --- +nnoremap :call SafeWincmd('h') +nnoremap :call SafeWincmd('j') +nnoremap :call SafeWincmd('k') +nnoremap :call SafeWincmd('l') + +" --- Window resize (matches nvim ) --- +nnoremap :vertical resize +10 +nnoremap :vertical resize -10 +nnoremap :resize +10 +nnoremap :resize -10 + +" --- Window management --- +nnoremap wh :split +nnoremap wv :vsplit +nnoremap wd :q +nnoremap ww :wincmd w +nnoremap wW :wincmd W + +" --- Git (fugitive) --- +nnoremap gs :Git status +nnoremap gl :Git log +nnoremap ga :Git add +nnoremap gc :Git commit +nnoremap gd :Git diff +nnoremap gb :Git blame + +" --- File explorer & search --- +nnoremap e :call NetrwToggle() +nnoremap / :Rg +nnoremap ff :Files +nnoremap fp :History +nnoremap fb :Buffers +nnoremap ? :History: + +" --- Buffers --- +nnoremap bd :bd! +nnoremap H :bprevious +nnoremap L :bnext + +" --- Terminal --- +nnoremap t :below terminal ++rows=10 + +" --- Misc --- +nnoremap ts :execute "normal! a" . strftime('[%b %d %H:%M:%S - BR]') From a68fa02e3d6877dd223eec0dd31d921b293a561a Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Mon, 9 Mar 2026 15:49:32 -0400 Subject: [PATCH 2/6] Added README --- README.md | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..11bae6c --- /dev/null +++ b/README.md @@ -0,0 +1,85 @@ +# Vim Config + +Lightweight vim config. + +## Install + +```bash +git clone git@github.com:itme-brain/vim.git ~/.vim +vim # plugins auto-install on first run +``` + +Requires `curl` and `git` for vim-plug bootstrap. On NixOS this is managed via home-manager instead. + +## How it works + +- Vim auto-loads `~/.vim/vimrc` — no symlinks needed +- [vim-plug](https://github.com/junegunn/vim-plug) auto-downloads itself via curl on first run if missing +- Missing plugins are installed with `PlugInstall --sync` on `VimEnter`, then the vimrc is re-sourced +- `silent! colorscheme` suppresses errors if the colorscheme hasn't been fetched yet (e.g. offline first run) +- Undo history persists to `~/.vim/undodir` across sessions (`undofile`) + +## Plugins + +| Plugin | What it does | +|--------|-------------| +| base16-vim | Colorscheme (onedark) | +| vim-surround | Surround text objects (`cs"'`, `ysiw]`) | +| auto-pairs | Auto-close brackets/quotes | +| fzf + fzf.vim | Fuzzy finder (files, buffers, grep) | +| vim-log-highlighting | Syntax highlighting for log files | +| vim-highlightedyank | Flash feedback on yank | +| lightline.vim | Statusline | +| vim-fugitive | Git commands (`:Git status`, `:Git blame`, etc.) | +| vim-signify | Git diff signs in the gutter | +| vim-anzu | Search match count in statusline | + +## Keybinds + +Leader is `Space`. + +### File explorer & search +| Key | Action | +|-----|--------| +| `e` | Toggle netrw sidebar | +| `/` | Ripgrep search | +| `ff` | Find files (fzf) | +| `fp` | Recent files (fzf) | +| `fb` | Open buffers (fzf) | +| `?` | Command history (fzf) | + +### Buffers +| Key | Action | +|-----|--------| +| `H` / `L` | Previous / next buffer | +| `bd` | Force close buffer | + +### Windows +| Key | Action | +|-----|--------| +| `` | Navigate windows (skips netrw) | +| `` | Resize windows | +| `wh` | Horizontal split | +| `wv` | Vertical split | +| `wd` | Close window | + +### Git +| Key | Action | +|-----|--------| +| `gs` | Git status | +| `gl` | Git log | +| `gd` | Git diff | +| `gb` | Git blame | +| `ga` | Git add | +| `gc` | Git commit | + +### Other +| Key | Action | +|-----|--------| +| `` | Clear search highlight | +| `` / `` | Scroll half-page (centered) | +| `<` / `>` (visual) | Indent and keep selection | +| `t` | Terminal (bottom split) | +| `ts` | Insert timestamp | +| `pu` | PlugUpdate | +| `pi` | PlugInstall | From 27cd172f15f9662ddf4fbade954815458fee42fa Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Tue, 10 Mar 2026 13:32:02 -0400 Subject: [PATCH 3/6] gitigore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b6a61f0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +autoload +plugged +.netrwhist From 8f8f87ea93f870885331fa1c06d3bddfe4352014 Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Wed, 8 Apr 2026 16:09:38 -0400 Subject: [PATCH 4/6] removed IDE-like features --- README.md | 25 +++++++--------------- vimrc | 62 +++++++++++++++++++++++++++++++++++++------------------ 2 files changed, 49 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 11bae6c..4d23289 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Vim Config -Lightweight vim config. +Lightweight Vim config that mirrors the core editing feel of the Neovim setup without the IDE stack. ## Install @@ -30,8 +30,6 @@ Requires `curl` and `git` for vim-plug bootstrap. On NixOS this is managed via h | vim-log-highlighting | Syntax highlighting for log files | | vim-highlightedyank | Flash feedback on yank | | lightline.vim | Statusline | -| vim-fugitive | Git commands (`:Git status`, `:Git blame`, etc.) | -| vim-signify | Git diff signs in the gutter | | vim-anzu | Search match count in statusline | ## Keybinds @@ -42,8 +40,8 @@ Leader is `Space`. | Key | Action | |-----|--------| | `e` | Toggle netrw sidebar | -| `/` | Ripgrep search | -| `ff` | Find files (fzf) | +| `/` | Ripgrep search from git root | +| `ff` | Find files from git root (fzf) | | `fp` | Recent files (fzf) | | `fb` | Open buffers (fzf) | | `?` | Command history (fzf) | @@ -52,26 +50,17 @@ Leader is `Space`. | Key | Action | |-----|--------| | `H` / `L` | Previous / next buffer | -| `bd` | Force close buffer | +| `bd` | Delete buffer safely | ### Windows | Key | Action | |-----|--------| | `` | Navigate windows (skips netrw) | | `` | Resize windows | -| `wh` | Horizontal split | +| `wc` | Close window | +| `ws` | Horizontal split | | `wv` | Vertical split | -| `wd` | Close window | - -### Git -| Key | Action | -|-----|--------| -| `gs` | Git status | -| `gl` | Git log | -| `gd` | Git diff | -| `gb` | Git blame | -| `ga` | Git add | -| `gc` | Git commit | +| `wm` | Maximize window | ### Other | Key | Action | diff --git a/vimrc b/vimrc index 5338aa3..7a526d5 100644 --- a/vimrc +++ b/vimrc @@ -16,24 +16,25 @@ call plug#begin('~/.vim/plugged') Plug 'mtdl9/vim-log-highlighting' Plug 'machakann/vim-highlightedyank' Plug 'itchyny/lightline.vim' - Plug 'tpope/vim-fugitive' - Plug 'mhinz/vim-signify' Plug 'osyo-manga/vim-anzu' call plug#end() let mapleader = "\" set background=dark +if has('termguicolors') + set termguicolors +endif silent! colorscheme base16-onedark -highlight Normal ctermbg=NONE guibg=NONE +highlight Normal ctermbg=NONE guibg=NONE ctermfg=White guifg=#FFFFFF highlight NonText ctermbg=NONE guibg=NONE highlight CursorLine ctermbg=NONE guibg=NONE -highlight CursorLineNr ctermfg=Yellow guifg=#FFCC66 ctermbg=NONE guibg=NONE cterm=bold -highlight HighlightedyankRegion ctermfg=Black guifg=#FFFFFF ctermbg=Yellow guibg=#FFA500 +highlight CursorLineNr ctermfg=Yellow guifg=#E5C07B ctermbg=NONE guibg=NONE cterm=bold gui=bold +highlight HighlightedyankRegion ctermfg=Black guifg=#000000 ctermbg=Yellow guibg=yellow highlight NormalNC ctermbg=NONE guibg=NONE highlight Search ctermfg=Black guifg=#000000 ctermbg=Yellow guibg=#FFCC66 highlight LineNr ctermbg=NONE guibg=NONE -highlight Visual ctermbg=LightGray guibg=#E8E8E8 ctermfg=Black guifg=#000000 +highlight Visual ctermbg=Gray guibg=Gray ctermfg=Black guifg=Black let g:highlightedyank_highlight_duration = 140 let g:lightline = { 'colorscheme': 'deus', } @@ -74,7 +75,10 @@ set hidden set tabstop=2 set shiftwidth=2 +set softtabstop=2 set expandtab +set smartindent +set fillchars=eob:\ set statusline=%{exists('*anzu#search_status')?anzu#search_status():''} @@ -102,6 +106,31 @@ function! SafeWincmd(dir) execute 'wincmd ' . a:dir endfunction +function! GitRoot() + let l:root = systemlist('git rev-parse --show-toplevel') + if v:shell_error == 0 && !empty(l:root) && !empty(l:root[0]) + return l:root[0] + endif + return getcwd() +endfunction + +function! SafeBdelete() + if &filetype ==# 'netrw' + echohl WarningMsg | echom 'Cannot delete buffer from netrw' | echohl None + return + endif + + let l:buflisted = getbufinfo({'buflisted': 1}) + if len(l:buflisted) <= 1 + echohl WarningMsg | echom 'Cannot delete last buffer' | echohl None + return + endif + + let l:buf = bufnr('%') + bprevious + execute 'bdelete ' . l:buf +endfunction + " --- Plugin management --- nnoremap pu :PlugUpdate nnoremap pd :PlugUpgrade @@ -114,7 +143,7 @@ nmap N (anzu-N-with-echo) nmap * (anzu-star-with-echo) nmap # (anzu-sharp-with-echo) nmap (anzu-clear-search-status) -nnoremap :noh +nnoremap :nohlet @/="" " --- Visual indentation --- vnoremap < :resize +10 nnoremap :resize -10 " --- Window management --- -nnoremap wh :split +nnoremap wc :close +nnoremap ws :split nnoremap wv :vsplit -nnoremap wd :q +nnoremap wm _ nnoremap ww :wincmd w nnoremap wW :wincmd W -" --- Git (fugitive) --- -nnoremap gs :Git status -nnoremap gl :Git log -nnoremap ga :Git add -nnoremap gc :Git commit -nnoremap gd :Git diff -nnoremap gb :Git blame - " --- File explorer & search --- nnoremap e :call NetrwToggle() -nnoremap / :Rg -nnoremap ff :Files +nnoremap / :execute 'lcd ' . fnameescape(GitRoot()) Rg +nnoremap ff :execute 'lcd ' . fnameescape(GitRoot()) Files nnoremap fp :History nnoremap fb :Buffers nnoremap ? :History: " --- Buffers --- -nnoremap bd :bd! +nnoremap bd :call SafeBdelete() nnoremap H :bprevious nnoremap L :bnext From 8c8a4e4a7afd175be2eb97055bb01f43ee8b992d Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Wed, 15 Apr 2026 21:06:39 -0400 Subject: [PATCH 5/6] init --- .gitignore | 3 + README.md | 74 ++++++++++++++++++++ vimrc | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 270 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 vimrc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b6a61f0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +autoload +plugged +.netrwhist diff --git a/README.md b/README.md new file mode 100644 index 0000000..4d23289 --- /dev/null +++ b/README.md @@ -0,0 +1,74 @@ +# Vim Config + +Lightweight Vim config that mirrors the core editing feel of the Neovim setup without the IDE stack. + +## Install + +```bash +git clone git@github.com:itme-brain/vim.git ~/.vim +vim # plugins auto-install on first run +``` + +Requires `curl` and `git` for vim-plug bootstrap. On NixOS this is managed via home-manager instead. + +## How it works + +- Vim auto-loads `~/.vim/vimrc` — no symlinks needed +- [vim-plug](https://github.com/junegunn/vim-plug) auto-downloads itself via curl on first run if missing +- Missing plugins are installed with `PlugInstall --sync` on `VimEnter`, then the vimrc is re-sourced +- `silent! colorscheme` suppresses errors if the colorscheme hasn't been fetched yet (e.g. offline first run) +- Undo history persists to `~/.vim/undodir` across sessions (`undofile`) + +## Plugins + +| Plugin | What it does | +|--------|-------------| +| base16-vim | Colorscheme (onedark) | +| vim-surround | Surround text objects (`cs"'`, `ysiw]`) | +| auto-pairs | Auto-close brackets/quotes | +| fzf + fzf.vim | Fuzzy finder (files, buffers, grep) | +| vim-log-highlighting | Syntax highlighting for log files | +| vim-highlightedyank | Flash feedback on yank | +| lightline.vim | Statusline | +| vim-anzu | Search match count in statusline | + +## Keybinds + +Leader is `Space`. + +### File explorer & search +| Key | Action | +|-----|--------| +| `e` | Toggle netrw sidebar | +| `/` | Ripgrep search from git root | +| `ff` | Find files from git root (fzf) | +| `fp` | Recent files (fzf) | +| `fb` | Open buffers (fzf) | +| `?` | Command history (fzf) | + +### Buffers +| Key | Action | +|-----|--------| +| `H` / `L` | Previous / next buffer | +| `bd` | Delete buffer safely | + +### Windows +| Key | Action | +|-----|--------| +| `` | Navigate windows (skips netrw) | +| `` | Resize windows | +| `wc` | Close window | +| `ws` | Horizontal split | +| `wv` | Vertical split | +| `wm` | Maximize window | + +### Other +| Key | Action | +|-----|--------| +| `` | Clear search highlight | +| `` / `` | Scroll half-page (centered) | +| `<` / `>` (visual) | Indent and keep selection | +| `t` | Terminal (bottom split) | +| `ts` | Insert timestamp | +| `pu` | PlugUpdate | +| `pi` | PlugInstall | diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..7a526d5 --- /dev/null +++ b/vimrc @@ -0,0 +1,193 @@ +let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' +if empty(glob(data_dir . '/autoload/plug.vim')) + silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' +endif + +autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) + \| PlugInstall --sync | source $MYVIMRC + \| endif + +call plug#begin('~/.vim/plugged') + Plug 'chriskempson/base16-vim' + Plug 'tpope/vim-surround' + Plug 'jiangmiao/auto-pairs' + Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } + Plug 'junegunn/fzf.vim' + Plug 'mtdl9/vim-log-highlighting' + Plug 'machakann/vim-highlightedyank' + Plug 'itchyny/lightline.vim' + Plug 'osyo-manga/vim-anzu' +call plug#end() + +let mapleader = "\" +set background=dark +if has('termguicolors') + set termguicolors +endif +silent! colorscheme base16-onedark + +highlight Normal ctermbg=NONE guibg=NONE ctermfg=White guifg=#FFFFFF +highlight NonText ctermbg=NONE guibg=NONE +highlight CursorLine ctermbg=NONE guibg=NONE +highlight CursorLineNr ctermfg=Yellow guifg=#E5C07B ctermbg=NONE guibg=NONE cterm=bold gui=bold +highlight HighlightedyankRegion ctermfg=Black guifg=#000000 ctermbg=Yellow guibg=yellow +highlight NormalNC ctermbg=NONE guibg=NONE +highlight Search ctermfg=Black guifg=#000000 ctermbg=Yellow guibg=#FFCC66 +highlight LineNr ctermbg=NONE guibg=NONE +highlight Visual ctermbg=Gray guibg=Gray ctermfg=Black guifg=Black + +let g:highlightedyank_highlight_duration = 140 +let g:lightline = { 'colorscheme': 'deus', } + +let $FZF_DEFAULT_OPTS = '--bind=tab:up,shift-tab:down' +let g:fzf_layout = { 'window': 'enew' } + +" netrw settings +let g:netrw_banner = 0 +let g:netrw_winsize = 20 +let g:netrw_liststyle = 3 +let g:netrw_browse_split = 4 +let g:netrw_altv = 1 + +autocmd FileType netrw nnoremap :wincmd l +autocmd FileType netrw nnoremap :wincmd h +autocmd FileType netrw nnoremap :wincmd j +autocmd FileType netrw nnoremap :wincmd k + +set laststatus=2 + +set number +set relativenumber +set cursorline +set scrolloff=8 + +set noincsearch +set ignorecase +set smartcase + +set clipboard=unnamedplus +set noswapfile +set nobackup +set undofile +set undodir=~/.vim/undodir + +set hidden + +set tabstop=2 +set shiftwidth=2 +set softtabstop=2 +set expandtab +set smartindent +set fillchars=eob:\ + +set statusline=%{exists('*anzu#search_status')?anzu#search_status():''} + +" --- Netrw toggle (like neo-tree) --- +function! NetrwToggle() + for i in range(1, winnr('$')) + if getbufvar(winbufnr(i), '&filetype') ==# 'netrw' + execute i . 'wincmd w' + close + return + endif + endfor + let g:netrw_return_win = winnr() + Lexplore +endfunction + +function! SafeWincmd(dir) + let target = winnr(a:dir) + if target == winnr() + return + endif + if getbufvar(winbufnr(target), '&filetype') ==# 'netrw' + return + endif + execute 'wincmd ' . a:dir +endfunction + +function! GitRoot() + let l:root = systemlist('git rev-parse --show-toplevel') + if v:shell_error == 0 && !empty(l:root) && !empty(l:root[0]) + return l:root[0] + endif + return getcwd() +endfunction + +function! SafeBdelete() + if &filetype ==# 'netrw' + echohl WarningMsg | echom 'Cannot delete buffer from netrw' | echohl None + return + endif + + let l:buflisted = getbufinfo({'buflisted': 1}) + if len(l:buflisted) <= 1 + echohl WarningMsg | echom 'Cannot delete last buffer' | echohl None + return + endif + + let l:buf = bufnr('%') + bprevious + execute 'bdelete ' . l:buf +endfunction + +" --- Plugin management --- +nnoremap pu :PlugUpdate +nnoremap pd :PlugUpgrade +nnoremap ps :PlugStatus +nnoremap pi :PlugInstall + +" --- Search (anzu) --- +nmap n (anzu-n-with-echo) +nmap N (anzu-N-with-echo) +nmap * (anzu-star-with-echo) +nmap # (anzu-sharp-with-echo) +nmap (anzu-clear-search-status) +nnoremap :nohlet @/="" + +" --- Visual indentation --- +vnoremap < >gv + +" --- Scrolling (centered) --- +nnoremap zz +nnoremap zz + +" --- Window navigation (matches nvim , skips netrw) --- +nnoremap :call SafeWincmd('h') +nnoremap :call SafeWincmd('j') +nnoremap :call SafeWincmd('k') +nnoremap :call SafeWincmd('l') + +" --- Window resize (matches nvim ) --- +nnoremap :vertical resize +10 +nnoremap :vertical resize -10 +nnoremap :resize +10 +nnoremap :resize -10 + +" --- Window management --- +nnoremap wc :close +nnoremap ws :split +nnoremap wv :vsplit +nnoremap wm _ +nnoremap ww :wincmd w +nnoremap wW :wincmd W + +" --- File explorer & search --- +nnoremap e :call NetrwToggle() +nnoremap / :execute 'lcd ' . fnameescape(GitRoot()) Rg +nnoremap ff :execute 'lcd ' . fnameescape(GitRoot()) Files +nnoremap fp :History +nnoremap fb :Buffers +nnoremap ? :History: + +" --- Buffers --- +nnoremap bd :call SafeBdelete() +nnoremap H :bprevious +nnoremap L :bnext + +" --- Terminal --- +nnoremap t :below terminal ++rows=10 + +" --- Misc --- +nnoremap ts :execute "normal! a" . strftime('[%b %d %H:%M:%S - BR]') From d5bdb39d7e65e679b3052e5ec437f75e4ec8e594 Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Thu, 30 Apr 2026 16:37:12 -0400 Subject: [PATCH 6/6] changed colors --- colors/anticuus.vim | 142 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 colors/anticuus.vim diff --git a/colors/anticuus.vim b/colors/anticuus.vim new file mode 100644 index 0000000..81c555c --- /dev/null +++ b/colors/anticuus.vim @@ -0,0 +1,142 @@ +" anticuus.vim +" Pitch-black minimalist theme — port of nvim anticuus + custom syntax extensions. +" Requires `set termguicolors`. + +hi clear +if exists('syntax_on') + syntax reset +endif + +let g:colors_name = 'anticuus' +set background=dark + +" === Base === +highlight Normal guifg=#dadada guibg=#000000 +highlight NormalNC guifg=#dadada guibg=#000000 +highlight NonText guifg=#3a3a3a guibg=NONE +highlight EndOfBuffer guifg=#000000 guibg=NONE +highlight Whitespace guifg=#3a3a3a +highlight SpecialKey guifg=#3a3a3a + +" === Syntax: comments dim italic, strings green === +highlight Comment guifg=#5a5a5a gui=italic cterm=italic +highlight SpecialComment guifg=#5a5a5a gui=italic cterm=italic +highlight String guifg=#00b300 +highlight Character guifg=#5a5a5a gui=italic cterm=italic + +" === Literals: purple === +highlight Number guifg=#c490d0 +highlight Float guifg=#c490d0 +highlight Boolean guifg=#c490d0 +highlight Constant guifg=#c490d0 + +" === Identifiers / functions: white baseline, functions teal === +highlight Identifier guifg=#dadada +highlight Function guifg=#88ddcc + +" === Statements: yellow keywords, red exception/return === +highlight Statement guifg=#ffcc00 +highlight Conditional guifg=#ffcc00 +highlight Repeat guifg=#dadada +highlight Keyword guifg=#ffcc00 +highlight Operator guifg=#dadada +highlight Label guifg=#ffcc00 +highlight Exception guifg=#ff6b6b + +" === PreProc family: green === +highlight PreProc guifg=#00b300 +highlight Include guifg=#00b300 +highlight Define guifg=#00b300 +highlight Macro guifg=#00b300 +highlight PreCondit guifg=#00b300 + +" === Types: amber === +highlight Type guifg=#e8a060 +highlight StorageClass guifg=#e8a060 +highlight Structure guifg=#e8a060 +highlight Typedef guifg=#e8a060 + +" === Special: green for special chars, red for tags === +highlight Special guifg=#00b300 +highlight SpecialChar guifg=#00b300 +highlight Tag guifg=#ff6b6b +highlight Delimiter guifg=#dadada + +" === Errors / Todo === +highlight Error guifg=#ff6b6b +highlight Todo guifg=#ffcc00 gui=bold cterm=bold + +" === Line numbers / cursor / columns === +highlight LineNr guifg=#dadada guibg=NONE +highlight CursorLineNr guifg=#dadada guibg=#282828 gui=bold cterm=bold +highlight CursorLine guibg=#121212 +highlight CursorColumn guibg=#121212 +highlight ColorColumn guibg=#1a1a1a +highlight SignColumn guifg=#00b300 guibg=#000000 + +" === Splits / status / winbar === +highlight VertSplit guifg=#3a3a3a guibg=NONE +highlight WinSeparator guifg=#3a3a3a guibg=NONE +highlight StatusLine guifg=#dadada guibg=#000000 +highlight StatusLineNC guifg=#dadada guibg=#000000 +highlight WinBar guifg=#dadada gui=bold cterm=bold +highlight WinBarNC guifg=#888888 + +" === Visual / search === +highlight Visual guibg=#3a3a3a +highlight VisualNOS guibg=#3a3a3a +highlight Search guifg=#000000 guibg=#ffcc00 +highlight IncSearch guifg=#000000 guibg=#88ddcc +highlight CurSearch guifg=#000000 guibg=#c490d0 + +" === Brackets === +highlight MatchParen guifg=#c490d0 gui=bold,underline cterm=bold,underline + +" === Popup menu (completion / fzf overlay) === +highlight Pmenu guifg=#dadada guibg=#181818 +highlight PmenuSel guifg=#000000 guibg=#ffcc00 +highlight PmenuSbar guibg=#181818 +highlight PmenuThumb guibg=#3a3a3a + +" === Folds / titles / directories === +highlight Folded guifg=#888888 gui=italic cterm=italic +highlight FoldColumn guifg=#888888 guibg=NONE +highlight Title guifg=#88ddcc gui=bold cterm=bold +highlight Directory guifg=#88ddcc + +" === Diff === +highlight DiffAdd guifg=#a5d6a7 guibg=#0a2010 +highlight DiffChange guifg=#e8a060 guibg=#201a0a +highlight DiffDelete guifg=#ff6b6b guibg=#200a0a +highlight DiffText guifg=#ffcc00 guibg=#3a2000 gui=bold cterm=bold + +" === Spell === +highlight SpellBad guisp=#ff6b6b gui=undercurl cterm=underline +highlight SpellCap guisp=#ffcc00 gui=undercurl cterm=underline +highlight SpellRare guisp=#c490d0 gui=undercurl cterm=underline +highlight SpellLocal guisp=#88ddcc gui=undercurl cterm=undercurl + +" === Markdown (vim's built-in syntax) === +highlight markdownH1 guifg=#00b300 gui=bold cterm=bold +highlight markdownH2 guifg=#00b300 gui=bold cterm=bold +highlight markdownH3 guifg=#00b300 gui=bold cterm=bold +highlight markdownH4 guifg=#00b300 gui=bold cterm=bold +highlight markdownH5 guifg=#00b300 gui=bold cterm=bold +highlight markdownH6 guifg=#00b300 gui=bold cterm=bold +highlight markdownHeadingDelimiter guifg=#00b300 gui=bold cterm=bold +highlight markdownLinkText guifg=#88ddcc gui=underline cterm=underline +highlight markdownUrl guifg=#5a5a5a gui=italic cterm=italic +highlight markdownCode guifg=#e8a060 +highlight markdownCodeBlock guifg=#e8a060 + +" === Diagnostic groups (for plugins like ALE/CoC) === +highlight DiagnosticError guifg=#ff6b6b +highlight DiagnosticWarn guifg=#ffcc00 +highlight DiagnosticInfo guifg=#00b300 +highlight DiagnosticHint guifg=#dadada +highlight link ALEErrorSign DiagnosticError +highlight link ALEWarningSign DiagnosticWarn +highlight link ALEInfoSign DiagnosticInfo + +" === vim-highlightedyank === +highlight HighlightedyankRegion guifg=#000000 guibg=#ffcc00