Skip to content

Instantly share code, notes, and snippets.

@brentk
Last active February 15, 2024 16:54
Show Gist options
  • Select an option

  • Save brentk/27311c7ccdd8043a5a2df86782d01472 to your computer and use it in GitHub Desktop.

Select an option

Save brentk/27311c7ccdd8043a5a2df86782d01472 to your computer and use it in GitHub Desktop.
vim configuration
" Enable syntax highlighting
syntax on
" Set tabs to 4 spaces
set expandtab ts=4 sw=4 ai
" Highlight searched text
set hlsearch
" Solid block cursor (needed for git bash):
let &t_ti.="\e[1 q"
let &t_SI.="\e[5 q"
let &t_EI.="\e[1 q"
let &t_te.="\e[0 q"
" Disable bell and visualbell:
set visualbell
set t_vb=
" hit "//" to search for currently highlighted text
vnoremap // y/\V<C-R>=escape(@",'/\')<CR><CR>
" Setup color scheme
" colorscheme darkblue
" colorscheme slate
colorscheme elflord
highlight Normal guibg=black guifg=white
set background=dark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment