-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
43 lines (37 loc) · 1.3 KB
/
.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
34
35
36
37
38
39
40
41
42
43
" Settings
set ttyfast " Speed up scrolling
set spell " Enable spell check
set spelllang=en " Set spellcheck language
set spellsuggest=best,9 " Show up to 9 spellcheck languages
set noswapfile " disable creating a swap file
set nobackup "no backup files
set nowritebackup "only in case you don't want a backup file while editing
set mouse=a " enable mouse click
set clipboard=unnamedplus " use system clipboard
set nocompatible " disable compatibility to old-time vi
set backspace=indent,eol,start
set shiftwidth=2
set tabstop=2
set numberwidth=4
set signcolumn=yes
set hlsearch
set number
" Autoinstall Plug
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
" Autoinstall Plugins
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | source $MYVIMRC
\| endif
" Plugins
call plug#begin()
Plug 'ghifarit53/tokyonight-vim'
call plug#end()
" Load Theme
set termguicolors
let g:tokyonight_style = 'night' " available: night, storm
let g:tokyonight_enable_italic = 1
colorscheme tokyonight