Skip to content

Commit

Permalink
Add .vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
timmypidashev committed Jan 27, 2022
1 parent f2b7b8c commit 1227495
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
" 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

" vim plugins
call plug#begin()
Plug 'wakatime/vim-wakatime'
call plug#end()

" line numbers
set number

" syntax highlighting
syntax on

" tabs set to 4 spaces
set tabstop=4

" automatically indent
set autoindent

" ensure tabs are consistent throughout all configurations
" (incase wierd people with 5 space tabs use this lol)
set expandtab

" make sure backspacing tabs is also consistent
" and doesnt just get rid of 1 space
set softtabstop=4

" cursor line if i begine liking it
" (uncomment line below to enable)
" set cursorline


0 comments on commit 1227495

Please sign in to comment.