|
|
@@ -16,6 +16,7 @@ Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } |
|
|
|
Plug 'junegunn/fzf.vim' |
|
|
|
Plug 'tpope/vim-surround' |
|
|
|
Plug 'Shougo/neocomplete.vim' |
|
|
|
Plug 'davidhalter/jedi-vim' |
|
|
|
Plug 'vim-scripts/matchit.zip' |
|
|
|
Plug 'WolfeCub/vim-markdown-format', { 'for': ['md', 'markdown'] } |
|
|
|
|
|
|
@@ -188,6 +189,7 @@ inoremap <c-x><c-j> <Plug>(fzf-complete-file-ag) |
|
|
|
inoremap <c-x><c-l> <Plug>(fzf-complete-line) |
|
|
|
|
|
|
|
if has("lua") |
|
|
|
"Note: This option must be set in .vimrc(_vimrc). NOT IN .gvimrc(_gvimrc)! |
|
|
|
" Disable AutoComplPop. |
|
|
|
let g:acp_enableAtStartup = 0 |
|
|
|
" Use neocomplete. |
|
|
@@ -196,6 +198,7 @@ if has("lua") |
|
|
|
let g:neocomplete#enable_smart_case = 1 |
|
|
|
" Set minimum syntax keyword length. |
|
|
|
let g:neocomplete#sources#syntax#min_keyword_length = 3 |
|
|
|
let g:neocomplete#enable_auto_select = 1 |
|
|
|
|
|
|
|
" Define dictionary. |
|
|
|
let g:neocomplete#sources#dictionary#dictionaries = { |
|
|
@@ -230,15 +233,6 @@ if has("lua") |
|
|
|
" Close popup by <Space>. |
|
|
|
"inoremap <expr><Space> pumvisible() ? "\<C-y>" : "\<Space>" |
|
|
|
|
|
|
|
" AutoComplPop like behavior. |
|
|
|
"let g:neocomplete#enable_auto_select = 1 |
|
|
|
|
|
|
|
" Shell like behavior(not recommended). |
|
|
|
"set completeopt+=longest |
|
|
|
"let g:neocomplete#enable_auto_select = 1 |
|
|
|
"let g:neocomplete#disable_auto_complete = 1 |
|
|
|
"inoremap <expr><TAB> pumvisible() ? "\<Down>" : "\<C-x>\<C-u>" |
|
|
|
|
|
|
|
" Enable omni completion. |
|
|
|
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS |
|
|
|
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags |
|
|
@@ -246,19 +240,26 @@ if has("lua") |
|
|
|
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete |
|
|
|
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags |
|
|
|
|
|
|
|
autocmd FileType python setlocal omnifunc=jedi#completions |
|
|
|
let g:jedi#completions_enabled = 0 |
|
|
|
let g:jedi#auto_vim_configuration = 0 |
|
|
|
let g:jedi#force_py_version=3 |
|
|
|
|
|
|
|
" Enable heavy omni completion. |
|
|
|
if !exists('g:neocomplete#sources#omni#input_patterns') |
|
|
|
let g:neocomplete#sources#omni#input_patterns = {} |
|
|
|
endif |
|
|
|
"let g:neocomplete#sources#omni#input_patterns.php = '[^. \t]->\h\w*\|\h\w*::' |
|
|
|
"let g:neocomplete#sources#omni#input_patterns.c = '[^.[:digit:] *\t]\%(\.\|->\)' |
|
|
|
"let g:neocomplete#sources#omni#input_patterns.cpp = '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::' |
|
|
|
let g:neocomplete#sources#omni#input_patterns.php = '[^. \t]->\h\w*\|\h\w*::' |
|
|
|
let g:neocomplete#sources#omni#input_patterns.c = '[^.[:digit:] *\t]\%(\.\|->\)' |
|
|
|
let g:neocomplete#sources#omni#input_patterns.cpp = '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::' |
|
|
|
let g:neocomplete#sources#omni#input_patterns.python = '\%([^. \t]\.\|^\s*@\|^\s*from\s.\+import \|^\s*from \|^\s*import \)\w*' |
|
|
|
|
|
|
|
" For perlomni.vim setting. |
|
|
|
" https://github.com/c9s/perlomni.vim |
|
|
|
let g:neocomplete#sources#omni#input_patterns.perl = '\h\w*->\h\w*\|\h\w*::' |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
" }}} |
|
|
|
|
|
|
|
" Temp & Testing {{{ |