-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
67 lines (53 loc) · 1.39 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
" install vimplug
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
" install dracula
" mkdir -p ~/.vim/pack/themes/start
" cd ~/.vim/pack/themes/start
" git clone https://github.com/dracula/vim.git dracula
set nocompatible
" Theming
if (has("termguicolors"))
set termguicolors
endif
packadd! dracula
syntax enable
colorscheme dracula
" Basic
set number
set nowrap
" Indentation
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set smartindent
" Searching
set ignorecase
set smartcase
set showmatch
" Better backspace
set backspace=eol,start,indent
" Extra
set colorcolumn=100
set wildmenu
" Custom commands
" remove trailing whitespace
:command RMTRAILWS :%s/\s\+$//e
inoremap jj <ESC>
" Custom
" make repy code syntax work
au BufNewFile,BufRead,BufReadPost *.r2py set syntax=python
call plug#begin()
" The default plugin directory will be as follows:
" - Vim (Linux/macOS): '~/.vim/plugged'
" - Vim (Windows): '~/vimfiles/plugged'
" - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged'
" You can specify a custom plugin directory by passing it as the argument
" - e.g. `call plug#begin('~/.vim/plugged')`
" - Avoid using standard Vim directory names like 'plugin'
" Make sure you use single quotes
Plug 'tpope/vim-fugitive'
Plug 'vim-airline/vim-airline'
Plug 'rust-lang/rust.vim'
call plug#end()