Files
dotfiles/.vimrc

55 lines
1.1 KiB
VimL

" Install vim-plug if not found
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
" Run PlugInstall if there are missing plugins
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | source $MYVIMRC
\| endif
call plug#begin('~/.vim/plugged')
" install with vim-plug
Plug 'Rigellute/shades-of-purple.vim'
call plug#end()
"""" enable 24bit true color
" If you have vim >=8.0 or Neovim >= 0.1.5
if (has("termguicolors"))
set termguicolors
endif
" turn on syntax highlighting
syntax enable
colorscheme shades_of_purple
" file formats and encoding
set fileformat=unix
set encoding=utf-8
" .py file layout- if not .py normal layout
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
set tabstop=2
set softtabstop=2
set shiftwidth=2
set autoindent
set smartindent
set smarttab
set expandtab
" line highlighting, line numbers and such
set cursorline
set number
set relativenumber
set hlsearch
" enable mouse right click paste
set mouse-=a