-
Notifications
You must be signed in to change notification settings - Fork 0
/
neovim.vim
66 lines (49 loc) · 958 Bytes
/
neovim.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
57
58
59
60
61
62
63
64
65
" ~/.vimrc
call plug#begin('~/.vim/plugged/')
" colorschemes
Plug 'git:https://github.com/hhff/SpacegrayEighties.vim.git'
Plug 'arcticicestudio/nord-vim'
Plug 'jacoborus/tender.vim'
" lang specific
" - rust
Plug 'racer-rust/vim-racer'
Plug 'rust-lang/rust.vim'
" general
Plug 'terryma/vim-multiple-cursors'
Plug 'itchyny/lightline.vim'
call plug#end()
" buffer
set autoread
" allow mouse opperations
set mouse=a
" colors
syntax enable
colorscheme tender
" tabs vs spaces
set tabstop=8
set shiftwidth=2
set softtabstop=2
set expandtab
set smarttab
set autoindent
filetype plugin indent off
" UI
set guifont=Noto\ Sans\ Mono
set number
set relativenumber
set wrap
set linebreak
set nolist
set textwidth=0
set wrapmargin=0
set showcmd
filetype indent on
set wildmenu
set showmatch
set hlsearch
" change regex style begin/end
nnoremap B ^
nnoremap E $
" <esc> clears search highlight
nnoremap <silent><Esc> <Esc>:nohlsearch<CR><Esc>
inoremap jk <esc>