-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc.local
47 lines (37 loc) · 1.6 KB
/
.vimrc.local
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
set nocursorline
set rtp+=/usr/local/opt/fzf
au BufRead,BufNewFile *.js set filetype=javascript
autocmd FileType typescript setlocal completeopt+=menu,preview
autocmd FileType typescript,javascript,html setlocal expandtab shiftwidth=2 softtabstop=2
autocmd FileType typescript,javascript,html setlocal iskeyword-=. iskeyword-=# iskeyword-=-
let g:tsuquyomi_completion_detail = 1
let g:tsuquyomi_disable_quickfix = 1
let g:syntastic_typescript_checkers = ['tsuquyomi']
let g:ackprg = 'ag --nogroup --column'
let g:deoplete#enable_at_startup = 1 "enable deoplete at vim startup
let g:deoplete#enable_ignore_case = 1 "let matcher ignore case
let g:deoplete#enable_smart_case = 1 "smart case
let g:deoplete#enable_fuzzy_completion = 1 "fuzzy match
let g:deoplete#omni#input_patterns = get(g:,'deoplete#omni#input_patterns',{}) "get default patterns where need to autocomplete
inoremap <expr><C-h> deolete#mappings#smart_close_popup()."\<C-h>"
inoremap <expr><BS> deoplete#mappings#smart_close_popup()."\<C-h>"
let g:netrw_keepdir = 1
map <C-e> :Texplore<CR>
map <C-s> :lopen<CR>
nmap <silent> <leader>d <Plug>DashSearch
set clipboard=
function FuzzyFind()
" Contains a null-byte that is stripped.
let gitparent=system('git rev-parse --show-toplevel')[:-2]
let boston=system('ls ' . gitparent . '/cordova')[:-2]
if empty(matchstr(gitparent, '^fatal:.*'))
if empty(matchstr(boston, 'No such file'))
silent execute ':FZF ' . gitparent . '/cordova'
else
silent execute ':FZF ' . gitparent
endif
else
silent execute ':FZF .'
endif
endfunction
nnoremap <silent> <C-p> :call FuzzyFind()<CR>