shougo / neco-vim Goto Github PK
View Code? Open in Web Editor NEWThe Vim Script completion source for neocomplete/deoplete/ddc
License: MIT License
The Vim Script completion source for neocomplete/deoplete/ddc
License: MIT License
Minimal vimrc
set rtp+=~/work/deoplete.nvim/
set rtp+=~/work/neco-vim
let g:deoplete#enable_at_startup = 1
if has('just-stub-code-block') " {{{ " some comment
" some comment
" some comment
" some comment
endif " }}}
Can't achieve step-by-step completion behaviour like on the screenshot. Seem, the problem is with candidates sorting.
I don't know why, but it looks like that neco-vim interferes with gn
/gN
.
Xubuntu 14.04
(G)Vim 7.4.52
With the following example and being on the first 'foo':
let g:foo = 'foo'
let s:foo = 'foo'
function s:Bar(foo)
endfunction
*
gn
, replace the first occurrence with 'bar': cgnbar
.
The next 'foo' will be replaced by 'r' instead of 'bar'.
With neco-vim
Without neco-vim
Repeating the process with .
should replace the next occurrence of 'foo' with 'bar' as showed in the 2nd gif.
This could also be merged into deoplete-plugins for better discoverability. However, it is also used by neocomplete, so I'm not sure...
Completing at (|
is cursor)
Denit|
gives
Denite.
with deoplete's converter_auto_delimiter
enabled.
I've tried to find a solution to this in closed issues and elsewhere online but could not get a solution.
I want neocomplete to target header contents for completion when I type even when the target has not been introduced before.
Scenario:
Launch a fresh vim session and create and edit a new file.c and include <stdio.h> . I then create the first function and the first statement is a call to printf. I want neocomplete to suggest print, printf etc when I type pr for this first time.
Below is the part of my vimrc regarding neocomplete.
let g:neocomplete#enable_at_startup=1
"enable smartcase
let g:neocomplete#enable_smart_case=1
"set minimum length of keyword to be target of completion
let g:neocomplete#min_keyword_legth=3
"insert delimiters automatically (/ for filenames # for vimscript)
let g:neocomplete#enable_auto_delimiter=1
let g:neocomplete#sources#dictionary#dictionaries = {
\'default' : '',
\'vimshell' : $HOME.'/.vimshell_hist',
\'scheme' : $HOME.'/.gosh_completions'}
" Define keyword.
if !exists('g:neocomplete#keyword_patterns')
let g:neocomplete#keyword_patterns = {}
endif
let g:neocomplete#keyword_patterns['default'] = '\h\w*'
if !exists('g:neocomplete#sources#omni#input_patterns')
let g:neocomplete#sources#omni#input_patterns = {}
endif
let g:neocomplete#sources#omni#input_patterns.c= '[^.[:digit:] *\t]\%(\.\|->\)'
"press enter to close popup
inoremap <expr><cr> pumvisible() ? "\<C-y>" : "\<cr>"
"For smart TAB completion.
inoremap <expr><TAB> pumvisible() ? "\<C-n>" :<SID>check_back_space() ? "\<TAB>" :neocomplete#start_manual_complete()
function! s:check_back_space() "{{{
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction"}}}
let g:neoinclude#ctags_commands={'_':'/usr/bin/ctags'}
I have ctags and the neoinclude plugin installed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.