-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.vimrc
117 lines (101 loc) · 2.65 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
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source ~/.vimrc
endif
call plug#begin('~/.vim/plugged')
Plug 'dense-analysis/ale'
Plug 'scrooloose/nerdtree'
Plug 'leafgarland/typescript-vim'
Plug 'maxmellon/vim-jsx-pretty'
Plug 'fehawen/sc.vim'
Plug 'fehawen/sl.vim'
call plug#end()
syntax on
filetype on
filetype plugin on
filetype indent on
set t_md=
set t_Co=16
scriptencoding utf-8
set encoding=utf-8
set title
set noshowmode
set autoread
set ruler
set showmatch
set mat=2
set magic
set signcolumn=no
set hlsearch
set tabstop=4
set softtabstop=4
set expandtab
set shiftwidth=4
set autoindent
set nonumber
set lazyredraw
set cursorline
set nocursorcolumn
set ffs=unix,dos,mac
set wrap
set pumheight=10
set nobackup
set nowritebackup
set noswapfile
set maxmempattern=20000
set completeopt-=preview
set omnifunc=syntaxcomplete#Complete
set path+=**
set wildmenu
set wildignore+=**/node_modules/**
set wildignore+=**/.git/**
set list
set listchars=
set listchars+=tab:│\ ,
set listchars+=trail:•,
set fillchars+=vert:\ ,
let g:ale_sign_info = "•"
let g:ale_sign_error = "•"
let g:ale_sign_warning = "•"
let g:ale_sign_style_error = "•"
let g:ale_sign_style_warning = "•"
let g:ale_completion_enabled = 1
let g:NERDTreeMinimalUI = 1
let g:NERDTreeShowHidden = 1
let g:NERDTreeShowLineNumbers = 0
let g:NERDTreeCascadeSingleChildDir = 0
let g:NERDTreeNodeDelimiter = "\u00a0"
let g:NERDTreeDirArrowExpandable = "•"
let g:NERDTreeDirArrowCollapsible = "•"
let g:NERDTreeWinSize = 31
let g:sc_background_light = 1
let g:sc_highlight_comments_only = 0
let g:sl_hide_syntax_item = 1
let g:sl_hide_file_type = 1
colorscheme sc
au VimResized * wincmd=
au BufWritePre * %s/\s\+$//e
au StdinReadPre * let s:std_in=1
au VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
au WinEnter,BufEnter * call matchadd('ColorColumn', '\%81v', 100)
au WinLeave,BufLeave * call clearmatches()
au FileType c,cpp setlocal noexpandtab softtabstop=4 shiftwidth=4
au FileType python setlocal textwidth=79
augroup SyntaxSettings
autocmd!
autocmd BufNewFile,BufRead *.tsx set filetype=typescript
augroup END
inoremap <expr><S-TAB> pumvisible() ? "\<Esc>" : "\<C-n>"
map <C-n> :NERDTreeToggle<CR>
map <C-f> :find<Space>
map <C-s> :vert ter<CR>
nmap <silent> <C-k> <Plug>(ale_previous_wrap)
nmap <silent> <C-j> <Plug>(ale_next_wrap)
nmap <silent> <C-h> :ALEHover<CR>
nmap <silent> <C-d> :ALEGoToDefinition<CR>
map <Tab> :noh<CR>
tnoremap <Esc> <C-\><C-n>
map § <Esc>
map! § <C-c>
nnoremap py :!python3 %<CR>