-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
128 lines (108 loc) · 2.79 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
set nocompatible " be iMproved, required
" set the runtime path to include VimPlug and initialize
set rtp+=~/.vim/autoload/plug.vim
call plug#begin()
" File Nav
Plug 'git://git.wincent.com/command-t.git'
" themes
"Plug 'wadackel/vim-dogrun'
Plug 'bluz71/vim-nightfly-guicolors' "modified with /colors/irridescent.vim
"Plug 'dracula/vim', { 'as': 'dracula' }
"Plug 'ghifarit53/tokyonight-vim'
"other plugins
Plug 'pangloss/vim-javascript'
Plug 'adelarsq/vim-matchit'
Plug 'jiangmiao/auto-pairs'
Plug 'mattn/emmet-vim'
Plug 'preservim/nerdtree'
Plug 'preservim/nerdcommenter'
" Linter
Plug 'dense-analysis/ale'
" Snippets
Plug 'sirver/ultisnips'
" Status Bar and Git
" Plug 'airblade/vim-gitgutter'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-fugitive'
" All of your Plugins must be added before the following line
call plug#end()
syntax on
filetype plugin indent on " required
set splitright " split windows to the right by default
let mapleader = ','
if (has("termguicolors"))
set termguicolors
endif
" colorscheme nightfly
source ~/.vim/colors/irridescent.vim
highlight Comment cterm=italic
set t_ZH=[3m
set t_ZR=[23m
set background=dark
" Line numbers and indentation
set number
set relativenumber
set binary
set nofixendofline
set noeol
set smartindent
set smarttab
set autoindent
set tabstop=2
set shiftwidth=2
set showmatch
set expandtab
set hlsearch
set lazyredraw " performance boost
set ignorecase
" UltiSnips
let g:UltiSnipsSnippetDirectories = ['~/.vim/UltiSnips']
let g:UltipSnipsExandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<C-tab>"
let g:UltiSnipsEditSplit="vertical"
" airline settings
let g:airline_theme='monochrome'
let g:airline_solarized_bg='dark'
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_symbols.branch = ''
let g:airline_symbols.whitespace = 'Ξ'
let g:airline_symbols.dirty=' ✏️ '
let g:airline#extensions#ale#enabled = 1
let g:airline#extensions#default#section_truncate_width = {
\ 'b': 79,
\ 'x': 90,
\ 'y': 88,
\ 'z': 45,
\ 'warning': 80,
\ 'error': 80,
\ }
let g:airline#extensions#default#layout = [
\ [ 'a', 'b', 'c' ],
\ [ 'error', 'warning', 'x', 'y', 'z' ]
\ ]
" ale setting
let g:ale_linters = {
\ 'javascript': ['eslint'],
\}
let g:ale_fixers = {
\ 'javascript': [
\ 'remove_trailing_lines',
\ 'trim_whitespace',
\ 'eslint',
\ ]
\}
let g:ale_fix_on_save = 1
" Emmet
let g:user_emmet_leader_key = '<leader>t'
" NERDTree settings
nnoremap <C-t> :NERDTreeToggle<CR>
" NerdCommenter Settings
let g:NERDSpaceDelims = 1