-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
111 lines (90 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
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
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" add all your plugins here (note older versions of Vundle
" used Bundle instead of Plugin)
Plugin 'cespare/vim-toml'
Plugin 'posva/vim-vue'
Plugin 'pangloss/vim-javascript'
Plugin 'prettier/vim-prettier'
Plugin 'leafgarland/typescript-vim'
Plugin 'flazz/vim-colorschemes'
Plugin 'mattn/emmet-vim'
Plugin 'nvie/vim-flake8'
Plugin 'psf/black'
Plugin 'sheerun/vim-polyglot'
Plugin 'rust-lang/rust.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'vim-scripts/indentpython.vim'
Plugin 'vim-syntastic/syntastic'
Plugin 'udalov/kotlin-vim'
Plugin 'w0rp/ale'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype on
filetype plugin indent on " required
" Syntax Highlighting
let python_highlight_all=1
syntax on
" Display
colorscheme badwolf
" Enable system-wide copy/paste
set clipboard=unnamed
" Highlight the current line
set cursorline
" Break lines longer than 120 character
set textwidth=120
" Show line numbers
set number
" Show the currently-typed command
set showcmd
" Netrw file browser
" Open files in new horizontal split
let g:netrw_browse_split = 1
" Ale
let g:airline#extensions#ale#enabled = 1
let g:ale_fix_on_safe = 1
" Emmet
let g:user_emmet_leader_key='<C-E>'
" Highlight searches as they're typed
set incsearch " highlight characters as they're entered
set hlsearch " highlight matches
" map CTRL+L to unhighlighting the current search
nnoremap <silent> <C-l> :nohl<CR><C-l>
" Default filetypes
set tabstop=2 |
set softtabstop=2 |
set shiftwidth=2
set expandtab
set autoindent
" Python
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=500 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix
autocmd BufWritePre *.py execute ':Black'
" Javascript
au BufNewFile,BufRead *.js|javascript.jsx
\ set tabstop=2 |
\ set softtabstop=2 |
\ set shiftwidth=2
" HTML
au BufNewFile,BufRead *.html
\ set tabstop=2 |
\ set softtabstop=2 |
\ set shiftwidth=2 |
\ set expandtab
" Kotlin
au BufNewFile,BufRead *.kt set filetype=kotlin
let g:LanguageClient_serverCommands = {
\ 'kotlin': ["kotlin-language-server"],
\ }