Code Monkey home page Code Monkey logo

neco-vim's People

Contributors

darthshadow avatar lervag avatar shougo avatar ujihisa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

neco-vim's Issues

The plugin interfers with gn/gN

I don't know why, but it looks like that neco-vim interferes with gn/gN.

Xubuntu 14.04
(G)Vim 7.4.52

How to reproduce

With the following example and being on the first 'foo':

let g:foo = 'foo'
let s:foo = 'foo'

function s:Bar(foo)
endfunction
  1. Search for 'foo' using *
  2. Using gn, replace the first occurrence with 'bar': cgnbar
  3. Repeat the command with .

The next 'foo' will be replaced by 'r' instead of 'bar'.

With neco-vim

with-neco

Without neco-vim

without-neco

What expected

Repeating the process with . should replace the next occurrence of 'foo' with 'bar' as showed in the 2nd gif.

load C header files when they are introduced in file

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.