Skip to content

Instantly share code, notes, and snippets.

@promisedlandt
Last active June 19, 2018 13:28
Show Gist options
  • Save promisedlandt/98673e1fb31df92d9d7d643e901b7a93 to your computer and use it in GitHub Desktop.
Save promisedlandt/98673e1fb31df92d9d7d643e901b7a93 to your computer and use it in GitHub Desktop.
def testmethod1
end
def testmethod2
end
# try test<space>
# expected: test followed by a space
# actual: testmethod2 followed by a space
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
!_TAG_PROGRAM_NAME Exuberant Ctags //
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
!_TAG_PROGRAM_VERSION 5.9~svn20110310 //
testmethod1 /home/nl/tmp/mucomplete_example/example.rb /^def testmethod1$/;" f
testmethod2 /home/nl/tmp/mucomplete_example/example.rb /^def testmethod2$/;" f
set tags=./tags
let g:AutoPairsMapCR = 0
imap <Plug>MyCR <Plug>(MUcompleteCR)<Plug>AutoPairsReturn
imap <cr> <Plug>MyCR
"let g:AutoPairsMapSpace = 0
"imap <silent> <expr> <space> pumvisible()
"\ ? "<space>"
"\ : "<C-R>=AutoPairsSpace()<CR>"
let g:mucomplete#enable_auto_at_startup = 1
let g:mucomplete#buffer_relative_paths = 1
let g:mucomplete#chains = {
\ 'default' : ['path', 'tags', 'omni', 'keyn'],
\}
set completeopt=menuone,noinsert
set belloff+=ctrlg
set shortmess+=c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment