Skip to content

Instantly share code, notes, and snippets.

@sho-luv
Created March 18, 2020 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sho-luv/98d2d6df3e40d0059a17061f2170054c to your computer and use it in GitHub Desktop.
Save sho-luv/98d2d6df3e40d0059a17061f2170054c to your computer and use it in GitHub Desktop.
vimrc
" Python
"au BufRead *.py compiler nose:
au FileType python set omnifunc=pythoncomplete#Complete
au FileType python setlocal expandtab shiftwidth=4 tabstop=4 smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class,with
au BufRead *.py set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m
au FileType python set foldmethod=indent foldlevel=99
" set ruby file tabstop, shiftwidth, and:
autocmd FileType ruby setlocal et ts=2 sw=2 tw=0
" set right mouse click:
set mouse-=a
" set tabs and syntax:
syntax on
set tabstop=4
set shiftwidth=4
" set chars for tabs etc:
set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<
" implement plugin https://github.com/chrisbra/Recover.vim:
call plug#begin()
Plug 'chrisbra/recover.vim'
call plug#end()
" set search colors:
set hlsearch
hi Search ctermbg=LightYellow
hi Search ctermfg=Red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment