-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
80 lines (73 loc) · 2.02 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
syntax on
filetype on
filetype plugin on
se nobackup
se nowritebackup
se backupcopy=yes
se encoding=utf8
se noruler
se backspace=indent,eol,start
se nowrap
se hidden
se nocursorline
se expandtab
se autoindent
se smartindent
se ignorecase
se wrapscan
se incsearch
se hlsearch
se clipboard=unnamed
se fileformats=unix,dos,mac
se tabstop=4
se shiftwidth=4
se nojoinspaces
se textwidth=80
se foldmethod=indent
se foldlevelstart=99
se list
se listchars=tab:<->,trail:@
se complete-=i
se completeopt=menu,menuone,popup
se infercase
se splitbelow
let mapleader=" "
let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:jsx_ext_required = 0 " vim-jsx plugin
let g:jedi#popup_on_dot = 0 " jedi-vim plugin
" let g:jedi#show_call_signatures = 0
let g:jedi#smart_auto_mappings = 0
let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
nm <leader>r :se ruler!<CR>
nm <leader>f za
nm <leader>F zA
nm <leader>w 80\|
nm <leader>n :noh<CR>
nm <leader>8 :se cc=80<CR>
nm <leader>* :se cc=0<CR>
nm <leader>p :read !xclip -o<CR>
nm <leader>a :echo @%<CR>
nm <leader>w :se wrap!<CR>
au filetype javascript nm <C-n> :!node %<CR>
au filetype javascript nm <C-l> :!npx eslint %<CR>
au filetype javascript,typescript,javascriptreact,typescriptreact,vue setl ts=4 sw=4
au filetype json setl ts=2 sw=2 foldlevel=2
au filetype sh nm <C-l> :!shellcheck %<CR>
au filetype solidity nm <C-l> :!solium -f %<CR>
au filetype sql nm <C-l> :!<% sql-lint<CR>
au filetype python setl ts=4 sw=4 cinw+=elif,except,finally,def,class
au filetype python nm <C-n> :!python %<CR>
au filetype python nm <C-l> :!flake8 %<CR>
au filetype go setl noexpandtab ts=8 sw=8
au filetype make setl noexpandtab nolist
au filetype text,markdown,mail,gitcommit setl nosmartindent textwidth=66
au VimEnter,BufNewFile,BufRead * if &filetype ==# '' | setl textwidth=66 | endif
au VimEnter,BufNewFile,BufRead *.ejs set filetype=html
au CompleteDone * pclose
nm <leader>t :TagbarToggle<CR>
colo jellybeans
hi LineNr ctermfg=darkgray
hi CursorLine cterm=NONE ctermbg=NONE ctermfg=NONE
hi Folded ctermbg=NONE
hi Folded ctermfg=8