-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
56 lines (41 loc) · 1.33 KB
/
init.vim
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
" Automatic installation of plug-vim and all plugins
if empty(glob('~/AppData/Local/nvim/autoload/plug.vim'))
silent !curl -fLo ./autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/AppData/Local/nvim/plugged')
" FarOut colorscheme for Vim
Plug 'fcpg/vim-farout'
" A tree explorer plugin for vim.
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
" A plugin of NERDTree showing git status
Plug 'Xuyuanp/nerdtree-git-plugin'
" Vim configuration for Rust.
Plug 'rust-lang/rust.vim'
" Vim syntax for TOML.
Plug 'cespare/vim-toml'
" Initialize plugin system
call plug#end()
" Formatting with rustfmt
let g:rustfmt_autosave = 1
" Using FarOut colorscheme as default
colorscheme farout
" set line numbers
set number
" set colorcolumn
set colorcolumn=80
" tabstops are now 4 and spaces
set tabstop=4
set shiftwidth=4
set expandtab
set ignorecase
" Exit insert mode in terminal via ESC
:tnoremap <Esc> <C-\><C-n>
" Disabling swap files creation
set noswapfile
" Using the systems clipboard
set clipboard=unnamedplus