Skip to content

Instantly share code, notes, and snippets.

@gfredtech
Created June 9, 2021 14:38
Show Gist options
  • Select an option

  • Save gfredtech/e61a2579e9f636c520e8e06184046c19 to your computer and use it in GitHub Desktop.

Select an option

Save gfredtech/e61a2579e9f636c520e8e06184046c19 to your computer and use it in GitHub Desktop.
vimrc
autocmd!
call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'romainl/vim-cool'
" Color schemes
Plug 'ghifarit53/tokyonight-vim'
Plug 'joshdick/onedark.vim'
Plug 'rakr/vim-one'
call plug#end()
set nocompatible
syntax on
filetype plugin indent on
set history=10000
set cursorline
set shiftwidth=2
set autoindent
set laststatus=2
set showmatch
set incsearch
set hlsearch
" make searches case-sensitive only if they contain upper-case characters
set ignorecase smartcase
set showtabline=2
"" allow backspacing over everything in insert mode
set backspace=indent,eol,start
set wildmenu
set number
set showcmd
set title
set encoding=utf-8
set statusline=%F%m%r%h%w%=(%{&ff}/%Y)\ (line\ %l\/%L,\ col\ %c)
""" change cursor block based on mode
let &t_SI = "\<Esc>[6 q"
let &t_SR = "\<Esc>[4 q"
let &t_EI = "\<Esc>[2 q"
set ttimeoutlen=0
set background=dark
set t_Co=256
set termguicolors
color grb256
:nnoremap <CR> :nohlsearch<CR><CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment