-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
34 lines (29 loc) · 940 Bytes
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
" vim settings
set wrap
set ruler
set number
set mouse=a
set showcmd
set nobackup
set hlsearch
set incsearch
set linebreak
set ignorecase
set noswapfile
set smartindent
set nocursorline
set nocursorcolumn
set encoding=UTF-8
let data_dir = has('win32') || has('win64') ? '$HOME\vimfiles' : '~/.vim'
if empty(glob(data_dir.'/autoload/plug.vim'))
if has('win32') || has('win64')
silent execute '!powershell -Command "New-Item -Path "'.data_dir.' -Name autoload -Type Directory -Force; Invoke-WebRequest -Uri https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim -OutFile '.data_dir.'\autoload\plug.vim"'
else
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
endif
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
" Plugins
Plug 'catppuccin/vim', { 'as': 'catppuccin' }
call plug#end()