VIMRC is the configurations for vi or vim. You can copy the script below and easily and quickly paste it using the following command (assuming you installed xclip):
$ xclip -selection clipboard -o > ~/.vimrcCurrently, I'm maintaining this version of vimrc.
" Switch on syntaxsyntax on" Jump to the last position when reopening a fileau BufWinLeave * mkviewau BufWinEnter * silent loadview" color to col 256set synmaxcol=256set t_Co=256" define highlightshighlight Warning ctermbg=red ctermfg=white guibg=#592929highlight Normal ctermfg=black ctermbg=whitehighlight StatusLine ctermfg=black ctermbg=yellow guibg=#f2f2f2set background=light" whitespace detection:set listchars=tab:>-,trail:~,extends:>,precedes:<:set list:nnoremap <c-l> :set list!<cr>match Warning /\s\+$/autocmd BufWinEnter * match Warning /\s\+$/autocmd InsertEnter * match Warning /\s\+\%#\@<!$/autocmd InsertLeave * match Warning /\s\+$/autocmd BufWritePre * %s/\s\+$//e" tab functionsfunction! UseTabs() set ts=8 sts=8 sw=8 noexpandtabendfunctioncall UseTabs()function! UseSpaces() set ts=8 sts=8 sw=8 expandtabendfunction" set 80 column marginsmatch Warning /\%81v.\+/set cc=81" disable F1 and F2 unused command:nmap <F1> <nop>:nmap <F2> <nop>" disable current line hiliteset nocursorline" use legacy regexset re=1" always sync syntax highlighting on-screen and load the latestautocmd BufEnter * :syntax sync fromstartautocmd BufEnter * :edit!" yaml fileautocmd! FileType yaml call UseSpaces()autocmd! FileType yml call UseSpaces()" sass /scssautocmd! FileType sass call UseTabs()autocmd! FileType scss call UseTabs()" .bashrcautocmd! FileType bashrc call UseSpaces()" .vimrcautocmd! FileType vimrc call UseSpaces()" gofunction! CheckGo(filename, dirpath) echo 'checking with gofmt now...' let cmd = 'gofmt -w -s ' . a:filename echo system(cmd) if v:shell_error return 1 endif echo "checking with golangci-lint now...\n\n" let cmd = 'golangci-lint run ' . a:dirpath echo system(cmd) :exe "normal \<C-\[>"endfunctionautocmd BufWritePost *.go call CheckGo(expand('%:p'), expand('%:p:h'))autocmd BufWritePost *.go :edit!autocmd BufWritePost *.go :syntax sync fromstart" .sh, .bash shebangfunction! CheckShebang() if did_filetype() finish endif if getline(1) =~# '^#!.*/bin/sh\>' set syntax=sh endif if getline(1) =~# '^#!.*/bin/bash\>' set syntax=bash endifendfunctionautocmd! VimEnter * call CheckShebang()That's all about VIMRC.