forked from sharovatov/teamlead
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
192 lines (135 loc) · 4.5 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
set nocompatible " be iMproved, required
filetype off " required
syntax on
let g:solarized_termcolors=256
set tabstop=4 shiftwidth=4
set mouse=a
" 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'
" github markdown preview
Plugin 'JamshedVesuna/vim-markdown-preview'
let vim_markdown_preview_github=1
" and new solarized
Plugin 'lifepillar/vim-solarized8'
" vim rainbow-parens
Plugin 'amdt/vim-niji'
Plugin 'mhinz/vim-signify'
" vim javascript main plugin — syntax highlighting, folding, etc
"Plugin 'jelera/vim-javascript-syntax'
" nicer status line
Plugin 'bling/vim-airline'
" support for git integration
Plugin 'tpope/vim-fugitive'
" search from vim
Plugin 'linluk/vim-websearch'
" file fuzzy search
Bundle 'kien/ctrlp.vim'
" curly quotes (dependency first)
Plugin 'kana/vim-textobj-user'
Plugin 'reedes/vim-textobj-quote'
" syntax checking
Plugin 'scrooloose/syntastic'
" pencil tool
Plugin 'reedes/vim-pencil'
" full autocorrect
Plugin 'panozzaj/vim-autocorrect'
" thesaurus
Bundle 'ron89/thesaurus_query.vim'
" goyo
Plugin 'junegunn/goyo.vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" use system clipboard
set clipboard=unnamed
set background=dark
colorscheme solarized8
" enable code folding in javascript with vim-javascript-syntax
au FileType javascript call JavaScriptFold()
set langmap=ёйцукенгшщзхъфывапролджэячсмитьбюЁЙЦУКЕHГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ;`qwertyuiop[]asdfghjkl\\;'zxcvbnm\\,.~QWERTYUIOP{}ASDFGHJKL:\\"ZXCVBNM<>
" make status line shown everywhere
set ruler
set laststatus=2
" allow backspacing over anything
set backspace=indent,eol,start
" longer :cmdline history
set history=1000
" line numbers to be always shown
set number
" make tabs/spaces displayed
set list
set listchars=tab:▸⋅,trail:⋅,nbsp:⋅
set incsearch "find the next match as we type the search
set hlsearch "hilight searches by default
" make sure ctrlp starts searching from current git repo
let g:ctrlp_working_path_mode = 0
let g:ctrlp_root_markers = ['Gruntfile.js']
" use only file-based thesaurus
let g:tq_enabled_backends=["mthesaur_txt", "yarn_synsets"]
" use thesaurus for en and ru
let g:tq_language=['en', 'ru']
" use links browser for search
let g:web_search_command = "links""
"let g:web_search_command = "links"
"let g:web_search_engine = "google"
"let g:web_search_browser = "chromium"
" still can't figure out how to make terminal show powerline fonts
" let g:airline_powerline_fonts = 1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
" unicode symbols for airline status bar
let g:airline_left_sep = '»'
let g:airline_left_sep = '▶'
let g:airline_right_sep = '«'
let g:airline_right_sep = '◀'
let g:airline_symbols.linenr = '␊'
let g:airline_symbols.linenr = ''
let g:airline_symbols.linenr = '¶'
let g:airline_symbols.branch = '⎇'
let g:airline_symbols.paste = 'ρ'
let g:airline_symbols.paste = 'Þ'
let g:airline_symbols.paste = '∥'
let g:airline_symbols.whitespace = 'Ξ'
ca tn tabnew
ca Tn tabnew
ca th tabp
ca Th tabp
ca tl tabn
ca Tl tabn
"lite autocorrect for md
"augroup litecorrect
" autocmd!
" autocmd FileType markdown,mkd,md call litecorrect#init()
"augroup END
" syntactic settings
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" let g:syntastic_javascript_checkers = ['jshint', 'jscs']
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_eslint_exec = 'eslint_d'
" let g:syntastic_debug = 3
autocmd Filetype php setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4
autocmd Filetype javascript setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4
" no more newline at the end of every file
set noeol
" indent-based folding
set foldmethod=indent
"set tags=~/.tags
" spellcheck for md only
autocmd filetype markdown,mkd,md setlocal spell spelllang=ru,en
" adding autocorrect for md
autocmd filetype markdown,mkd,md call AutoCorrect()
augroup textobj_quote
autocmd!
autocmd FileType markdown,mkd,md call textobj#quote#init({ 'double':'«»', 'single':'‘’' })
augroup END
map <silent> <leader>qc <Plug>ReplaceWithCurly
map <silent> <leader>qs <Plug>ReplaceWithStraight
" adding curly quotes for md
"set path=$PWD/**