-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrcOBC
70 lines (52 loc) · 1.23 KB
/
.vimrcOBC
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
"let b:usemarks=1
set nocompatible " be iMproved, required
filetype off " required
call plug#begin('~/.vim/plugged')
" " plugin on GitHub repo
Plug 'tpope/vim-fugitive'
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-surround'
"VUE plugin for vim
Plug 'posva/vim-vue'
"vim colorscheme pack
Plug 'flazz/vim-colorschemes'
Plug 'w0rp/ale'
Plug 'godlygeek/tabular'
Plug 'kien/ctrlp.vim'
call plug#end()
filetype on
syntax enable
set term=screen-256color
let NERDTreeShowHidden=1
set number
set ruler
colorscheme gruvbox
if &term =~ '256color'
set t_ut=
endif
set background=dark
set tabstop=4
set shiftwidth=4
set noexpandtab
set hlsearch
set incsearch
set cursorline
set showmatch
let g:ale_sign_error = '✘'
let g:ale_sign_warning = '⚠'
highlight ALEErrorSign ctermbg=NONE ctermfg=red
highlight ALEWarningSign ctermbg=NONE ctermfg=yellow
let g:ale_fixers ={
\ 'javascript': ['eslint'],
\}
inoremap <c-s> <c-o>$
inoremap <c-a> <c-o>0
inoremap <s-tab> <c-d>
inoremap jj <Esc>
inoremap jk <Esc>
inoremap kj <Esc>
" move by visual line not file line
nnoremap j gj
nnoremap k gk
autocmd vimenter * NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif