-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
executable file
·130 lines (109 loc) · 3.07 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
118
119
120
121
122
123
124
125
126
127
128
129
130
set nocompatible
filetype off
let g:ale_completion_enabled = 1
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree.git'
Plugin 'scrooloose/nerdcommenter.git'
Plugin 'gregsexton/matchtag.git'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-surround.git'
Plugin 'elzr/vim-json'
Plugin 'mattn/emmet-vim.git'
Plugin 'mileszs/ack.vim'
Plugin 'chrismccord/bclose.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'mxw/vim-jsx.git'
Plugin 'morhetz/gruvbox'
Plugin 'IN3D/vim-raml'
Plugin 'easymotion/vim-easymotion'
Plugin 'leafgarland/typescript-vim.git'
Plugin 'ianks/vim-tsx'
Plugin 'moll/vim-node'
Plugin 'airblade/vim-gitgutter'
Plugin 'Shougo/vimproc.vim'
Plugin 'w0rp/ale'
Plugin 'tpope/vim-repeat'
Bundle 'sonph/onehalf', {'rtp': 'vim/'}
Plugin 'editorconfig/editorconfig-vim'
call vundle#end()
filetype plugin indent on
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
colorscheme onehalfdark
let g:EditorConfig_exclude_patterns = ['fugitive://.*']
set expandtab
set tabstop=4
set shiftwidth=4
set rtp+=~/.fzf
set autoindent
set hidden
set incsearch
filetype on
filetype plugin on
syntax on
set mouse=nicrv
map <F1> :bp<CR>
map <F2> :bn<CR>
map <F3> :CtrlPBuffer<CR>
nnoremap <F4> :set invpaste paste?<CR>
set pastetoggle=<F4>
set showmode
map <F12> :NERDTreeToggle<CR>
let g:NERDTreeChDirMode=2
map <Leader>q :Bclose<CR>
vmap <Leader>y :w! ~/.vbuf<CR>
nmap <Leader>y :.w! ~/.vbuf<CR>
nmap <Leader>p :r ~/.vbuf<CR>
map <Leader>l oconsole.log("BURR", );<Esc>hi
map <Leader>v :e ~/.vimrc<CR>
map <Leader>g :GitGutterToggle<CR>
map <Leader>d :ALEGoToDefinition<CR>
map <Leader>r :ALEFindReferences<CR>
map <Leader>n :set rnu!<CR>
imap <Leader>c <c-x><c-o>
map K i<CR><Esc>
nnoremap <F5> :Ack<space>
set tags=./tags;
set wildmenu
set wcm=<Tab>
menu Encoding.koi8-r :e ++enc=koi8-r ++ff=unix<CR>
menu Encoding.windows-1251 :e ++enc=cp1251<CR>
menu Encoding.cp866 :e ++enc=cp866 ++ff=dos<CR>
menu Encoding.utf-8 :e ++enc=utf8 <CR>
menu Encoding.koi8-u :e ++enc=koi8-u ++ff=unix<CR>
map <F8> :emenu Encoding.<TAB>
setlocal nospell
menu Spell.on :setlocal spell spelllang=ru,en spell<CR>
menu Spell.off :setlocal nospell<CR>
map <F7> :emenu Spell.<TAB>
set keymap=russian-jcukenwin
set iminsert=0
set imsearch=0
highlight lCursor guifg=NONE guibg=Cyan
set foldmethod=manual
autocmd BufWinLeave *.* mkview!
autocmd BufWinEnter *.* silent loadview
au InsertEnter * set cursorline
au InsertLeave * set nocursorline
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
set t_Co=256
let g:jsx_ext_required = 0
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|\.git$'
let g:ctrlp_working_path_mode = 'ra'
let g:ctrlp_extensions = ['tag']
" npm install -g eslint
" npm install -g babel-eslint
" npm install -g eslint-plugin-react
let g:ale_lint_on_text_changed = 'never'
" mkdir ~/.vim/.swp/
set directory=~/.vim/.swp//
if executable('ag')
let g:ackprg = 'ag --vimgrep -W 100'
endif
set fillchars=vert:\│
nmap s <Plug>(easymotion-s2)
set list!
set listchars=tab:▶\ ,trail:·,extends:\#,nbsp:.