Skip to content

Commit

Permalink
Update .vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
JWSenteney authored May 15, 2022
1 parent 041f1c5 commit 9531365
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .vimrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,34 @@
" Settings for both VIM and GVIM

"------------------------------------------------------------------------------
" PLUGINS
"------------------------------------------------------------------------------
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif


" Plugins will be downloaded under the specified directory.
call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')

" Declare the list of plugins.
Plug 'doums/darcula'

" List ends here. Plugins become visible to Vim after this call.
call plug#end()

"------------------------------------------------------------------------------
" PREFERENCES
"------------------------------------------------------------------------------
" Allows multiple lines to be pasted correctly
vnoremap p <Esc>:let current_reg = @"<CR>gvs<C-R>=current_reg<CR><Esc>
" Get the desert256 theme from https://github.com/vim-scripts/desert256.vim
" Get the darcula theme from https://raw.githubusercontent.com/doums/darcula/master/colors/darcula.vim
" Put it in ~/.vim/colors
colorscheme desert256
colorscheme darcula

"------------------------------------------------------------------------------
" VARIABLE SETTINGS
Expand All @@ -24,15 +44,17 @@ set foldclose=all
"set nowrap
set number
set ruler
set shiftwidth=4
set shiftwidth=2
set showcmd
set showmatch
set softtabstop=4
set tabstop=4
set softtabstop=2
set tabstop=2
set undolevels=1000
set directory=~/.vim/swp/
set ai
set hls!
set termguicolors
set expandtab
syntax on

"------------------------------------------------------------------------------
Expand All @@ -47,4 +69,3 @@ map <F5> ^i//<ESC>$<END>
"get rid of shift-L because it messes me up when trying to hit colon...
noremap L <ESC>

0 comments on commit 9531365

Please sign in to comment.