Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
http://www.vim.org/scripts/script.php?script_id=2754
1.99k stars 116 forks source link

Expand-cr behaviour #107

Closed raoulmillais closed 12 years ago

raoulmillais commented 12 years ago

From :DelimitMateTest showcase:

Car return: {
|}

From documentation:

Expand <CR> to:
  <CR><CR><UP>     |   You Get
=========================
                 (|)                    |         (
                                         |         |
                                         |         )

My interpretation of the documentation is that pressing in the position in the left column would result in the right column. I.E. would be interpreted as if you had typed , the behaviour however is as demonstrated in the showcase.

If this is the intended behaviour then the documentation could be a little clearer. I, however, acutally want the behaviour described, and can't discern any difference in behavior between having delimitMate_expand_cr = 0 or 1 (other than the extra lines in the showcase). Have I missed some other setting?

raoulmillais commented 12 years ago

Apologies for the formatting, having issues with pasting and the GHFM parsing.

Raimondi commented 12 years ago

Maybe <CR> is mapped to something else. Paste the output of :DelimitMateTest.

redshadowhero commented 12 years ago

Well, maybe my output will help? I'm having the same issue.

delimitMate Report
==================

* Options: ( ) default, (g) global, (b) buffer

( ) delimitMate_apostrophes = ''
( ) delimitMate_autoclose = 1
( ) delimitMate_balance_matchpairs = 0
( ) delimitMate_eol_marker = ''
( ) delimitMate_excluded_ft = ''
( ) delimitMate_excluded_regions = 'Comment'
(g) delimitMate_expand_cr = 1
( ) delimitMate_expand_space = 0
( ) delimitMate_matchpairs = '(:),{:},[:]'
( ) delimitMate_nesting_quotes = []
( ) delimitMate_quotes = '" '' `'
( ) delimitMate_smart_matchpairs = '^\%(\w\|\!\|£\|\$\|_\|["'']\s*\S\)'
( ) delimitMate_smart_quotes = 1
--------------------

* Mappings:

i  )            @<Plug>delimitMate)
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  }            @<Plug>delimitMate}
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  ]            @<Plug>delimitMate]
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  (            @<Plug>delimitMate(
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  {            @<Plug>delimitMate{
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  [            @<Plug>delimitMate[
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  "            @<Plug>delimitMate"
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  '            @<Plug>delimitMate'
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  `            @<Plug>delimitMate`
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <BS>         @<Plug>delimitMateBS
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <S-BS>       @<Plug>delimitMateS-BS
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <Del>        @<Plug>delimitMateDel
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <S-Tab>     * <C-R>=BackwardsSnippet()<CR>
    Last set from ~/.dotfiles/.vim/bundle/snipmate/after/plugin/snipMate.vim
i  <Esc>        @<Plug>delimitMateEsc
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <Esc>OC       <Right>
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
!  <Esc><Right>   <Esc>:tabnext<CR>
    Last set from ~/.vimrc
!  <Esc><Left>   <Esc>:tabprevious<CR>
    Last set from ~/.vimrc
i  <Up>         @<Plug>delimitMateUp
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <Down>       @<Plug>delimitMateDown
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <Left>       @<Plug>delimitMateLeft
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <Right>      @<Plug>delimitMateRight
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <LeftMouse>  @<Plug>delimitMateMLeftMouse
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <RightMouse>  @<Plug>delimitMateMRightMouse
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <Home>       @<Plug>delimitMateHome
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <End>        @<Plug>delimitMateEnd
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <PageUp>     @<Plug>delimitMatePageUp
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <PageDown>   @<Plug>delimitMatePageDown
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <S-Down>     @<Plug>delimitMateS-Down
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <S-Up>       @<Plug>delimitMateS-Up
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <C-G>g       @<Plug>delimitMateJumpMany
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <ScrollWheelUp>  @<Plug>delimitMateScrollWheelUp
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <S-ScrollWheelUp>  @<Plug>delimitMateS-ScrollWheelUp
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <C-ScrollWheelUp>  @<Plug>delimitMateC-ScrollWheelUp
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <ScrollWheelDown>  @<Plug>delimitMateScrollWheelDown
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <S-ScrollWheelDown>  @<Plug>delimitMateS-ScrollWheelDown
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <C-ScrollWheelDown>  @<Plug>delimitMateC-ScrollWheelDown
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <ScrollWheelLeft>  @<Plug>delimitMateScrollWheelLeft
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <S-ScrollWheelLeft>  @<Plug>delimitMateS-ScrollWheelLeft
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <C-ScrollWheelLeft>  @<Plug>delimitMateC-ScrollWheelLeft
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <ScrollWheelRight>  @<Plug>delimitMateScrollWheelRight
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <S-ScrollWheelRight>  @<Plug>delimitMateS-ScrollWheelRight
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <C-ScrollWheelRight>  @<Plug>delimitMateC-ScrollWheelRight
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <CR>         @<Plug>delimitMateCR
    Last set from ~/.dotfiles/.vim/bundle/delimitMate/plugin/delimitMate.vim
--------------------

* Showcase:

Open: (|)
Delete: |
Exit: ()|
Car return: (
|
)
Delete car return: (|)

Open: {|}
Delete: |
Exit: {}|
Car return: {
|
}
Delete car return: {|}

Open: [|]
Delete: |
Exit: []|
Car return: [
|
]
Delete car return: [|]

Open: "|"
Delete: |
Exit: ""|
Car return: "
|
"
Delete car return: "|"

Open: '|'
Delete: |
Exit: ''|
Car return: '
|
'
Delete car return: '|'

Open: `|`
Delete: |
Exit: ``|
Car return: `
|
`
Delete car return: `|`

--- Options ---
  autoindent          laststatus=2        modified            number              pumheight=15        ruler               shiftwidth=4        smarttab            tabstop=4           ttymouse=xterm      t_Co=256
  helplang=en         listchars=tab:>     mouse=vin           pastetoggle=<F10>   report=0            scroll=27           showcmd             spelllang=en_us     ttyfast             undofile
  backspace=indent,eol,start
  completeopt=menu,menuone,longest
  directory=~/tmp,/var/tmp,/tmp,.
  fileencodings=ucs-bom,utf-8,default,latin1
  printoptions=paper:letter
  runtimepath=~/.vim,~/.vim/bundle/clang_complete,~/.vim/bundle/closetag,~/.vim/bundle/delimitMate,~/.vim/bundle/gundo,~/.vim/bundle/less,~/.vim/bundle/molokai,~/.vim/bundle/powerline,~/.vim/bundle/snipmate,~/.vim/bundle/supertab,~/.vim/bundle/tabular,~/.vim/bundle/vim-fugitive,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim73,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/bundle/snipmate/after,~/.vim/bundle/tabular/after,~/.vim/after
  suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
  undodir=~/.vim/undo
filetype detection:ON  plugin:ON  indent:ON

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May  4 2012 04:25:35)
Included patches: 1-429
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version without GUI.  Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff 
+digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak 
+lispindent +listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm +mouse_urxvt +multi_byte +multi_lang -mzscheme 
+netbeans_intg +path_extra -perl +persistent_undo +postscript +printer +profile +python -python3 +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax 
+tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup 
-X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save 
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim       -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl     -L/usr/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions      
--------------------
raoulmillais commented 12 years ago

Aah! Thanks, looking through @redshadowhero 's output I see the discrepancy. It appears the supertab plugin which I have installed has trumped delimitMate's binding. I have:

i  <CR>        * <C-R>=<SNR>39_SelectCompletion(1)<CR>
    Last set from ~/code/dotvim/bundle/supertab/plugin/supertab.vim

@redshadowhero - your output is showing the documented behaviour. Maybe you want to turn off cr expansion?

delimitMate_expand_cr = 0
redshadowhero commented 12 years ago

It does indeed show the document behavior with the test in theory, but in practice putting a <CR> in the middle of {|} yields

{
|}

instead of

{
|
}
raoulmillais commented 12 years ago

Hmm, that is strange. Disabling supertab while I investigate how to make it play nice with delimitMate has resulted in the documented behaviour for me. I'm using the tip of master for delimitMate

redshadowhero commented 12 years ago

I'm also at the tip of delmiMate. Let me try disabling my plugins until I see a conflict.

Oddly enough, if I edit a plain text file, the correct behavior happens. I thought it was a filetype indent problem, but disabling that still brings no joy.

Edit: Or nevermind. Apparently it's the clang_complete package, which I use in some places. I'll disable it until I can figure out what's up. Thanks for the help, @raoulmillais!

tnguyen14 commented 9 years ago

Sorry to asking here so far back, but I am running into this issue again where carriage return and space expansion isn't working for me.

When I type {<CR>, I get

{
|}

And when I type (<Space>, I get

( |)

I am not sure what the issue might be, as I don't think any plugin is interfering with the <CR> key. If anyone could offer some insight, that'd be highly appreciated!

Here's the output of :DelimitMateTest

delimitMate Report
==================

* Options: ( ) default, (g) global, (b) buffer

( ) delimitMate_apostrophes = ''
( ) delimitMate_apostrophes_list = []
( ) delimitMate_autoclose = 1
( ) delimitMate_balance_matchpairs = 0
( ) delimitMate_eol_marker = ''
( ) delimitMate_excluded_regions = 'Comment'
( ) delimitMate_excluded_regions_enabled = 1
( ) delimitMate_excluded_regions_list = ['Comment']
(g) delimitMate_expand_cr = 2
( ) delimitMate_expand_inside_quotes = 0
(g) delimitMate_expand_space = 1
( ) delimitMate_insert_eol_marker = 1
( ) delimitMate_jump_expansion = 0
( ) delimitMate_left_delims = ['(', '{', '[']
( ) delimitMate_matchpairs = '(:),{:},[:]'
( ) delimitMate_matchpairs_list = [['(', ')'], ['{', '}'], ['[', ']']]
( ) delimitMate_nesting_quotes = []
( ) delimitMate_quotes = '" '' `'
( ) delimitMate_quotes_list = ['"', '''', '`']
( ) delimitMate_right_delims = [')', '}', ']']
( ) delimitMate_smart_matchpairs = '^\%(\w\|\!\|[£$]\|[^[:punct:][:space:]]\)'
( ) delimitMate_smart_quotes = '\%(\w\|[^[:punct:][:space:]"''`]\|\%(\\\\\)*\\\)\%#\|\%#\%(\w\|[^[:space:][:punct:]"''`]\)'
( ) delimitMate_tab2exit = 1

( ) g:delimitMate_excluded_ft = ''
--------------------

* Mappings:

i  )            @<Plug>delimitMate)
    Last set from ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  }            @<Plug>delimitMate}
    Last set from ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  ]            @<Plug>delimitMate]
    Last set from ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  (            @<Plug>delimitMate(
    Last set from ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  {            @<Plug>delimitMate{
    Last set from ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  [            @<Plug>delimitMate[
    Last set from ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  "            @<Plug>delimitMate"
    Last set from ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  '            @<Plug>delimitMate'
    Last set from ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  `            @<Plug>delimitMate`
    Last set from ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <BS>         @<Plug>delimitMateBS
    Last set from ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <S-BS>       @<Plug>delimitMateS-BS
    Last set from ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <S-Tab>     * pumvisible() ? "\<C-P>" : "\<S-Tab>"
    Last set from ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim
i  <C-G>g       @<Plug>delimitMateJumpMany
    Last set from ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
i  <CR>        * pumvisible() ? "\<C-N>" : "\<CR>"
    Last set from ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim
i  <Space>      @<Plug>delimitMateSpace
    Last set from ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
--------------------

* Showcase:

Open: (|)
Delete: |
Exit: ()|
Space: ( | )
Delete space: (|)
Car return: (
|)
Delete car return: (|)

Open: {|}
Delete: |
Exit: {}|
Space: { | }
Delete space: {|}
Car return: {
|}
Delete car return: {|}

Open: [|]
Delete: |
Exit: []|
Space: [ | ]
Delete space: [|]
Car return: [
|]
Delete car return: [|]

Open: "|"
Delete: |
Exit: ""|

Open: '|'
Delete: |
Exit: ''|

Open: `|`
Delete: |
Exit: ``|

 * Vim configuration:

filetype detection:ON  plugin:ON  indent:ON

--- Options ---
  autoindent          concealcursor=inc   helplang=en         incsearch           list                number              shiftwidth=4        smartcase           tabstop=4           ttyfast
  autoread            conceallevel=2      hidden              langmenu=none       modified            ruler               showcmd             splitbelow          title               ttymouse=sgr
  background=dark     cursorline          ignorecase          laststatus=2        mouse=a             scroll=18           showtabline=2       splitright          ttimeoutlen=50      updatetime=2000
  backspace=indent,eol,start
  completefunc=youcompleteme#Complete
  completeopt=preview,menuone
  fileencodings=ucs-bom,utf-8,default,latin1
  listchars=tab:→ ,trail:·,eol:˧
  pastetoggle=<Esc>[201~
  runtimepath=~/.vim,~/.vim/bundle/Vundle.vim,~/.vim/bundle/base16-vim,~/.vim/bundle/vim-fugitive,~/.vim/bundle/vim-gitgutter,~/.vim/bundle/vim-commentary,~/.vim/bundle/command-t,~/.vim/bundle/editorconfig-vim,~/.vim/bundle/nerdtree,~/.vim/bundle/nerdtree-git-plugin,~/.vim/bundle/vim-javascript,~/.vim/bundle/vim-airline,~/.vim/bundle/ctrlp.vim,~/.vim/bundle/vim-mustache-handlebars,~/.vim/bundle/delimitMate,~/.vim/bundle/indentLine,~/.vim/bundle/html5.vim,~/.vim/bundle/terminus,~/.vim/bundle/syntastic,~/.vim/bundle/YouCompleteMe,~/.vim/bundle/ag.vim,~/.vim/bundle/scss-syntax.vim,~/.vim/bundle/vim-css3-syntax,~/.vim/bundle/vim-css-color,~/.vim/bundle/vim-devicons,~/.vim/bundle/vim-json,~/.vim/bundle/vim-tmux-focus-events,~/.vim/bundle/vim-tmux,~/.vim/bundle/vim-surround,~/.vim/bundle/vim-bbye,~/.vim/bundle/gitignore,/usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/vimfiles,/usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime,/usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/
  statusline=%!airline#statusline(1)
  tabline=%!airline#extensions#tabline#get()
  wildignore=*.sw?,*.un?,*.vba,*.vmb,*.zip,*.gz,vimball.txt,*.orig,tags,test/build,test/*.tap,test/*.msgout
  t_EI=^[Ptmux;^[^[]50;CursorShape=0^G^[\
  t_SI=^[Ptmux;^[^[]50;CursorShape=1^G^[\
  t_SR=^[Ptmux;^[^[]50;CursorShape=2^G^[\
  t_te=^[[?1004l^[[?1049l
  t_ti=^[Ptmux;^[^[[?1004h^[\^[[?1004h^[[?1049h

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 16 2015 18:01:06)
MacOS X (unix) version
Included patches: 1-769
Compiled by Homebrew
Huge version with MacVim GUI.  Features included (+) or not (-):
+acl             +cmdline_compl   +diff            +find_in_path    +jumplist        +mksession       +mouse_urxvt     +postscript      +signs           +tcl             +visual          +xim
+arabic          +cmdline_hist    +digraphs        +float           +keymap          +modify_fname    +mouse_xterm     +printer         +smartindent     +terminfo        +visualextra     -xsmp
+autocmd         +cmdline_info    +dnd             +folding         +langmap         +mouse           +multi_byte      +profile         -sniff           +termresponse    +viminfo         -xterm_clipboard
+balloon_eval    +comments        -ebcdic          -footer          +libcall         +mouseshape      +multi_lang      +python          +startuptime     +textobjects     +vreplace        -xterm_save
+browse          +conceal         +emacs_tags      +fork()          +linebreak       +mouse_dec       -mzscheme        -python3         +statusline      +title           +wildignore      -xpm
++builtin_terms  +cryptv          +eval            +fullscreen      +lispindent      -mouse_gpm       +netbeans_intg   +quickfix        -sun_workshop    +toolbar         +wildmenu        
+byte_offset     +cscope          +ex_extra        -gettext         +listcmds        -mouse_jsbterm   +odbeditor       +reltime         +syntax          +transparency    +windows         
+cindent         +cursorbind      +extra_search    -hangul_input    +localmap        +mouse_netterm   +path_extra      +rightleft       +tag_binary      +user_commands   +writebackup     
+clientserver    +cursorshape     +farsi           +iconv           -lua             +mouse_sgr       +perl            +ruby            +tag_old_static  +vertsplit       -X11             
+clipboard       +dialog_con_gui  +file_in_path    +insert_expand   +menu            -mouse_sysmouse  +persistent_undo +scrollbind      -tag_any_white   +virtualedit     -xfontset        
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX  -F/usr/local/Cellar/python/2.7.9/Frameworks -I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7 -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1     -I/System/Library/Frameworks/Tcl.framework/Headers  -D_REENTRANT=1  -D_THREAD_SAFE=1  -D_DARWIN_C_SOURCE=1  
Linking: clang   -L. -L/usr/local/lib -L. -L/usr/local/lib -F/usr/local/Cellar/python/2.7.9/Frameworks -L/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -framework CoreFoundation -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon       -lm  -lncurses -liconv -framework Cocoa   -fstack-protector  -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl -F/usr/local/Cellar/python/2.7.9/Frameworks -framework Python  -F/System/Library/Frameworks -framework Tcl -framework CoreFoundation -framework Ruby   
--------------------
fostertheweb commented 8 years ago

@tnguyen14 seems like a conflict with YouCompleteMe, try again without YCM