VundleVim / Vundle.vim

Vundle, the plug-in manager for Vim
http://github.com/VundleVim/Vundle.Vim
MIT License
23.94k stars 2.57k forks source link

Installed new version of snipmate with Vundle, was broken, removed it, still broken #717

Open ayyobro opened 8 years ago

ayyobro commented 8 years ago

So I installed a fork of 'msanders/snipmate' that was a little more recently supported and it kept hijacking my tab button. It's supposed to only autocomplete the word it's hovering over, but it will attempt to do autocompletion even if a word is not even there.

Anyways, I removed the plugin references in Vundle that were pointing towards the broken fork, added back the older version so I can get back to square one, re-installed the plugins, but then the functionality for the broken fork was still there.

I checked the plugin files again and I had correctly removed it. I did end up seeing the directories were still there even after removal, which I removed promptly, closed out macvim and re-opened it, but the same thing was still happening.

I'm really trying to avoid uninstalling all my plugins and removing ALL my f*$#%#$% settings that I made, but it's seeming like I'll need to do so.

Has anyone else had the issue of removing a plugin but it not actually 'removing'?

ayyobro commented 8 years ago

Hmm.. I went through and removed those directories, restarted macvim, but the same thing still happens.

So now the package files are gone, I'm not referencing them in plugins.vim anymore, and I don't have anything in my .vimrc that hijacks the tab. Do you think I just need to re-install macvim at this point?

ayyobro commented 8 years ago

Hmmm.... here is my .vimrc:

set nocompatible              " be iMproved, required

so ~/.vim/plugins.vim

syntax enable

set backspace=indent,eol,start
"The default was backslash"
let mapleader = ',' 
"Set line numbers"
set number 
"Macvim specific setting for line spacing in files"
set linespace=10
"Keep the folds alive 
autocmd BufWrite * mkview
autocmd BufRead * silent loadview

"No Damn Error Bells!
set noerrorbells visualbell t_vb=

"Use my own snippets 
let g:snippets_dir='~/.vim/snippets'

"------------- PHP Lint -------------"
nmap <Leader>pl :!php -l %<CR>

"-------------Tab Management -------------"
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab

set smartindent

"-------------Split management------------"
set splitbelow
set splitright

nmap <C-J> <C-W><C-J>
nmap <C-K> <C-W><C-K>
nmap <C-H> <C-W><C-H>
nmap <C-L> <C-W><C-L>

"-------------Visuals------------"
colorscheme atom-dark-256
set guifont=Fira\ Code:h14      "We want pretty text
set guioptions-=e               "We don't want GUI tabs

"Disable gui scrollbars 
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R

"Get rid of word wrap on screen
set formatoptions-=t

"Custom Highlighting for number bar
hi LineNr guibg=bg

"Get rid of ugly vertical split colors
hi vertsplit guifg=bg guibg=grey

"-------------Searching------------"
set hlsearch
set incsearch

"-------------Mappings------------"
"Make it easy to edit the Vimrc file."
nmap <Leader>ev :tabedit ~/.vimrc<cr>

"Make it easy to edit the plugin installer file" 
nmap <Leader>ep :tabedit ~/.vim/plugins.vim<cr>

"Make it easy to get to MAMP projects"
nmap <Leader>em :cd /Applications/MAMP/htdocs<cr>

"Add simple highlight removal"
nmap <Leader><space> :nohlsearch<cr>

"Make it easier to search through tags
nmap <Leader>f :tag<space>

"------------- Plugins ----------"

"/
"/CtrlP
"/
"Jump to file tags with CtrlP"
nmap <c-R> :CtrlPBufTag<cr>
"CtrlP get most recently used files"
nmap <D-e> :CtrlPMRUFiles<cr>

"/
"/ NERDTree
"/
let NERDTreeHijackNetrw = 0
"Make NERDTree easier to toggle"
nmap <D-1> :NERDTreeToggle<cr>

"/
"/ GReplace.vim
"/
"We want to use Ag for the search
set grepprg=ag

let g:grep_cmd_opts = '--line-numbers --noheading'

"-------------Laravel-Specific-----------"
"Easy map to routes file
nmap <Leader>lr :e app/Http/routes.php<cr>

"Prep php artisan make comand
nmap <Leader>lm :!php artisan make:

"Easy search for controller
nmap <Leader><Leader>c :e app/Http/Controllers<cr>

"Easy search for transformers
nmap <Leader><Leader>t :e app/Transformers<cr>

"Easy search for views
nmap <Leader><Leader>v :e resources/views<cr>

"Easy search for models 
nmap <Leader><Leader>m :e app/<cr>

"Easy search for db migrations
nmap <Leader><Leader>d :e database/migrations<cr>

"Easy search for Import Integrations -- Top Line Service Specific
nmap <Leader><Leader>ti :e app/API/Sources<cr>

"Easy indentation fix for all lines in the file
nmap <Leader><Leader>fi gg=G

"-------------Auto-Commands----------"
augroup autosourcing
    autocmd!
    autocmd BufWritePost ~/.vimrc source %
augroup END

"Close vim if NERDtree is the only thing open in macvim"
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif

"Make it easy to add javascript syntax highlighting to .vue files -- Vuejs
autocmd BufNewFile,BufRead *.vue set syntax=javascript

"Notes and Tips
"- Press 'zz' to auto-center screen on cursor
"- (Custom Mapping) Press ',f' to search for tags ( provide method name )
"- Press ':ts' to list tags found from search
"- Press ':tn' to go to next tag, and ':tp' to go the previous tag
"- Press 'Ctrl+]' to jump to where a method was initialized
"- Press 'Ctrl+^' to jump up to where a method is used ( might need to list
"them as well
"- Press 'Cmd+e' to select file from previous history
"- Press '-' to list current directory ( full screen )
"- Press 'Cmd+1' to open NERDTree
"- Press 'm+a' in NERDTree window to create a directory or file in your
"current working directory
"- Press ':Gsearch' to do a fast search and replace across specific
"directories
"- Press ':s' inside of Gsearch to set the parameters for your replacement
"logic ( e.g. ':s+/ChangeThis/ToThis' )
"- Press ':Ag' to do a quick project search via the_silver_searcher package
"= Press '<Number>+>" to indent a single line of block of elements by a
"certain number
"- Press 'v+i+t' to highlight everything inside of targeted element
"- Press ']+p' to paste your snippets with respect to present indentations
"= Press 'cs + <what you're changing> + <what you want it to be>' to change surrounding tag, quotes, parenthesis, etc.
"- Press 'cst + <tag you're changing> + <tag you want>' to change surrounding
"html tags to whatever your choice may be
"- Press 'dst' to remove surrounding tags
"- Press 'ds + <what to remove>' to remove sorrounding symbols/characters
"- Press '<Highlight Something> + <shift>-S + <opening tag>' to wrap the
"highlighted text in a certain html tag of your choice
"- Press 'gg + = + shift + G' to fix the indent for an entire file
"- Press '= + %' on open or close brackets to fix indentation for a specific
"block

I can't really see anything that's messing with the tab functionality here, but then I ran:

:verbose imap <tab>

and got a response of

Last set from ~/.vim/bundle/snipmate.vim/after/plugin/snipMate.vim

but snipmate is what allows me to use snippits within macvim by tabbing out certain keywords. I'm unsure as to why it would now to try execute when the cursor isn't next to any sort of text.