forked from chebro/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
74 lines (61 loc) · 2.46 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
68
69
70
71
72
73
" _
" __ _(_)_ __ ___ _ __ ___
" \ \ / / | '_ ` _ \| '__/ __|
" \ V /| | | | | | | | | (__
" \_/ |_|_| |_| |_|_| \___|
"
" ====================================================================
" Vim Plug
" ====================================================================
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'arcticicestudio/nord-vim'
Plug 'dense-analysis/ale'
Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' }
Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons'
call plug#end()
" ====================================================================
" General Config
" ====================================================================
syntax on
inoremap jk <ESC>
set encoding=utf-8 " show utf-8 symbols
set hlsearch " highlight all search results
set ignorecase " do case insensitive search
set incsearch " show incremental search results as you type
set smartcase " case-sensitive search if query contains uppercase
set number " show current line number
set relativenumber " show relative line numbers
set cursorline " highlight cursor
set tabstop=4 " set tab width
set shiftwidth=4
set expandtab
set termguicolors
" Mirror the NERDTree before showing it. This makes it the same on all tabs.
nnoremap <C-n> :NERDTreeMirror<CR>:NERDTreeFocus<CR>
" ====================================================================
" Airline Config
" ====================================================================
let g:airline_powerline_fonts = 1
let g:airline_symbols = {}
let g:airline_symbols.paste = 'ρ'
let g:airline_symbols.whitespace = 'Ξ'
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
let g:airline_symbols.branch = ''
let g:airline_symbols.readonly = ''
let g:airline_symbols.linenr = ''
let g:Hexokinase_highlighters = ['backgroundfull']
" ====================================================================
" Nord Vim Config
" ====================================================================
let g:nord_cursor_line_number_background = 1 " highlight line number
let g:nord_bold_vertical_split_line = 1 " bold split line
let g:nord_italic_comments = 1 " italic comments
let g:nord_italic = 1 " italic markdown
let g:nord_underline = 1 " enable underline
colorscheme nord " set colorscheme