-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc.txt
68 lines (60 loc) · 1.6 KB
/
vimrc.txt
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
call plug#begin('~/.vim/plugged')
Plug 'morhetz/gruvbox'
Plug 'pangloss/vim-javascript'
Plug 'mxw/vim-jsx'
Plug 'dracula/vim', { 'name': 'dracula' }
Plug 'sonph/onehalf', {'rtp': 'vim/'}
Plug 'dense-analysis/ale'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'ycm-core/YouCompleteMe'
Plug 'jiangmiao/auto-pairs'
Plug 'airblade/vim-gitgutter'
Plug 'kien/ctrlp.vim'
Plug 'easymotion/vim-easymotion'
Plug 'editorconfig/editorconfig-vim'
call plug#end()
let g:dracula_colorterm = 0
let g:dracula_italic = 0
let g:ale_sign_error = '❌'
let g:ale_sign_warning = '⚠️'
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git'
let g:mapleader=','
let g:NERDTreeShowLineNumbers=1
colorscheme dracula
syntax on
set relativenumber
set expandtab
set tabstop=2
set shiftwidth=2
set nopaste
set hlsearch
set incsearch
set wildignore=*/node_modules/*
set backspace=indent,eol,start
" Switch off all auto-indenting
" set nocindent
" set nosmartindent
" set noautoindent
" set indentexpr=
filetype indent off
" filetype plugin indent off
"mappings
map <leader>f :NERDTreeFind<cr>
map <C-n> :NERDTreeToggle<CR>
map <Leader> <Plug>(easymotion-prefix)
map <silent> <C-h> :call WinMove('h')<CR>
map <silent> <C-j> :call WinMove('j')<CR>
map <silent> <C-k> :call WinMove('k')<CR>
map <silent> <C-l> :call WinMove('l')<CR>
function! WinMove(key)
let t:curwin = winnr()
exec "wincmd ".a:key
if (t:curwin == winnr())
if (match(a:key, '[jk]'))
wincmd v
else
wincmd s
endif
exec "wincmd ".a:key
endif
endfunction