I have been using my Vim setup for quite some time now, but all of a sudden the saving of code does not update the code. I use FuzzyFinder for browsing files.
Opening a file normally, i.e. as Vim from console doesnt seem to give problems.
But when I open a file through FuzzyFinder it shows the old code without changes.
However, opening it through a other editor (or without the plugin) or doing git diff shows the changes.
Is it some problem caused by Git, a bug in the plugin, or maybe a cache issue?
Do you try use :edit!? I think problem is buffer. Vim have buffered file and don't reload it, when you open it via Fuzzy Finder.
Have you tried setting the autoread option in your .vimrc? It should force a reload after changes have been made.
From its help page:
When a file has been detected to have been changed outside of Vim and
it has not been changed inside of Vim, automatically read it again.
When the file has been deleted this is not done.
Related
Vim freezes and I see a key sign as I have circled in the picture below when doing the following things
When opening a new file in terminal vim, especially a cpp file.
When terminal vim is left idle for a few seconds
When I click outside the terminal window and then click back into terminal vim.
Ctrl-c unfreezes vim.
This is 100% reproducible on terminal vim, and not reproducible at all on MacVim. I am on MacOS.
When vim is launched from MacOS terminal app (and not iterm), I get a blinking key, and vim freezes just the same.
Please help me unfreeze vim, I've been digging for a while and not come up with anything.
Maybe one of your plugins/custom config is playing the devil here. Would you try and see if the same problem exists while running vim without any custom configurations, like :
vim --clean
if it works as expected, then you should definitely take a look into your .vimrc and start cleaning it.
If the error persists even after running vim clean, then what i would have done would be to check if the shell configs (like .bashrc,.bash_profile etc) for unwanted settings that directly/indirectly affect the working of vim.
As a last resort to avoid confusion, you should also try to debug whether you have given any custom setting for your terminal emulator. Try reinstalling your terminal emulator or run it clean and see if it helps.
I'm using SublimeText3 and have a few questions around managing bookmarks. I tried better bookmarks but the only problem is that when you close the file the bookmarks are cleared and when you close and reopen ST3 its all gone. I want to preserve the bookmarks when you close files/ST3. Is there any package that can support this?
I also tried sublimebookmarks and the same problem, when I close the file I loosed the bookmarks.
I got sublime bookmarks working based on the following link.
https://github.com/bollu/sublimeBookmark/issues/23
Basically you need to modify the sublimebookmark.py file and its all good. I tested it as well. The bookmarks take a bit of time to load but apart from that its all good.
Browsing the documentation for vim 8 I wasn't able to find a way to turn off the (new ?) behaviour that it would re-open all (or some?) files that were open during last session.
Note that I haven't saved anything using e.g. mksession, vim's behaviour just seems to have changed starting with v8. Does anybody know how to get rid of this feature?
#romainl's comment helped me find that this really is due to some lines that I've had in my configuration for quite some time, however the previous versions of vim which I've used appear to have been compiled without +viminfo support, which is why I haven't experienced this behaviour before.
As a reminder: viminfo can be used in order to save and restore things like open buffers, search expression, etc. between vim sessions. This works apart from manual session management via e.g. mksession.
When i try to write import org.junit.Test, just when I have completed writing import.jun it converts(auto-completes) it to import org.jun=acp#onPopupPost().
Is it some eclim autocomplete feature which is misbehaving or something else? I only face this issue when I am inside a project opened via eclim. Other wise there is no issue.
Looks like you have a problem with the AutoComplPop plugin; part of its mapping is inserted literally. I'm using the plugin myself, but haven't seen that issue. It may be interference with another plugin; have you done any updates to other plugins recently?! If you can reproduce the problem with a clean .vimrc and no other plugins loaded, submit an issue to the author.
To temporarily disable the plugin (without uninstalling), put the following into your ~/.vimrc:
let g:loaded_acp = 1
I've looked at a number of the IDE style file explorer / management plugins for VIM. The most popular one seems to be Project, but I've never got on well with it. Specifically, having to always create a .project file for the files you want to browse, and that changes to that file hierarchy outside of VIM are not picked up.
I stumbled across the VTreeExplorer plugin and I really like the way it works. I'm trying to work out how I can make it work in a more IDE style way, for instance, to always open vertically down the full length of my window, and once I've opened a file from it, it automatically hides the VTreeExplorer buffer again? Also, ideally it wouldn't show up when I use :bn or a buffer explorer to tab through each file buffer.
Any recommendations would be appreciated. Thanks!
What about NERDTree? It is really good, one of the best file tree plugin for vim available.