Skip to content

Instantly share code, notes, and snippets.

@KennethanCeyer
Created May 1, 2019 17:47
Show Gist options
  • Save KennethanCeyer/3742210bfcbb34ecdf7cbb9f2524687f to your computer and use it in GitHub Desktop.
Save KennethanCeyer/3742210bfcbb34ecdf7cbb9f2524687f to your computer and use it in GitHub Desktop.
Insert vimrc setting
cat <<EOF >> ~/.vimrc
set hlsearch
set nu
set autoindent
set scrolloff=2
set wildmode=longest,list
set ts=4
set sts=4
set sw=1
set autowrite
set autoread
set cindent
set bs=eol,start,indent
set history=256
set laststatus=2
set paste
set shiftwidth=4
set showmatch
set smartcase
set smarttab
set smartindent
set softtabstop=4
set tabstop=4
set ruler
set incsearch
set statusline=\ %<%l:%v\ [%P]%=%a\ %h%m%r\ %F\
:hi CursorLine cterm=NONE ctermbg=yellow ctermfg=white guibg=yellow guifg=white
:hi CursorColumn cterm=NONE ctermbg=yellow ctermfg=white guibg=yellow guifg=white
augroup CursorLine
au!
au VimEnter,WinEnter,BufWinEnter * setlocal cursorline
au WinLeave * setlocal nocursorline
augroup END
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment