Skip to content

Instantly share code, notes, and snippets.

@b1-88er
Created October 15, 2025 14:36
Show Gist options
  • Select an option

  • Save b1-88er/b7c1468a4037f8bfc8f4167edb29d1eb to your computer and use it in GitHub Desktop.

Select an option

Save b1-88er/b7c1468a4037f8bfc8f4167edb29d1eb to your computer and use it in GitHub Desktop.
syntax on
filetype plugin indent on
set expandtab
set smartindent
set shiftround
set wildmenu
set numberwidth=1
set number
set modeline
set ruler
set nofoldenable
set wrap
set splitbelow
set showcmd
set showmatch
set hlsearch
set backspace=indent,eol,start
set clipboard=unnamed
set relativenumber
set incsearch
" shift code in visual mode
vnoremap < <gv
vnoremap > >gv
imap jj <Esc>
" nohl bind
nnoremap <C-M> :nohl<CR><C-L>
set background=dark
highlight Cursorline cterm=NONE ctermbg=236 ctermfg=NONE
highlight Columnsline cterm=NONE ctermbg=236 ctermfg=NONE
highlight ExtraWhitespace ctermbg=124 guibg=red
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=124 guibg=124
highlight ALEWarning ctermbg=236
highlight Pmenu ctermfg=15 ctermbg=0 guifg=#ffffff guibg=#000000
set cursorline
highlight ColorColumn ctermbg=240
call matchadd('ColorColumn', '\%81v', 100)
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd BufWinLeave * call clearmatches()
" autocmd VimEnter * wincmd p
let NERDTreeIgnore = ['\.pyc$']
" yaml fuckups
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
" moving around the splits
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
nnoremap <C-a> :w<CR>:!<UP><CR>
nnoremap ; :
set runtimepath^=~/.vim/bundle/ctrlp.vim
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.pyc,*pyo
if executable('rg')
set grepprg=rg\ --color=never
let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
let g:ctrlp_use_caching = 1
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment