Tagged Questions
0
votes
2answers
48 views
How to exit VIM and get back to 'normal' terminal?
I did find this answer here:
Vim Stuck In Insert Mode
However none of the commands listed worked for me. Exit, cntrl + [, cntrl + q
I'm a totally terminal newb, trying to learn how to setup git ...
0
votes
1answer
28 views
Is there a way to filter out filenames from vim's “oldfiles”, perhaps using a pattern?
I use vim's :browse oldfiles a lot to edit files I've recently worked with. However, there are some files, such as git's auto-generated COMMIT_EDITMSG, which clutter that list and which I never need ...
1
vote
1answer
178 views
How to tell dropbox to ignore git files?
I have been keeping my vim files in Ubuntu One and since I have a lot of plugins installed as git submodules (or however vundle installs them) and I'm only interested in updating these repositories on ...
0
votes
1answer
33 views
merging git with vim without the automerged MERGED
I want to use vim (fugitive possibly) to merge my conflicts, but I hate the automerged conflict markers. I'm looking for something like
|-------------------------------|
| | | ...
2
votes
1answer
51 views
Vim - Prevent NERDTree opening when invoked by git
Nice and simple, I'd like for NERDTree not to get involved when vim is invoked by git, for example when authoring a commit message or dealing with a rebase.
Presumably this is achievable by way of ...
2
votes
2answers
594 views
Git on Mac: How to set Nano as the default text editor?
When I'm using Git on Mac and need to do a rebase, the Vim editor kicks in by default. I would prefer Nano – could someone please explain how to reconfigure Git to make it use Nano for rebase?
Thank ...
4
votes
2answers
344 views
How to turn on git syntax highlighting on vim on a Mac
I just recently switched over to Mac. On windows I was using git through the msysgit project. When doing a git rebase -i I'm used to get a nice syntax highlighting in vim. I'm missing it badly now ...
6
votes
3answers
808 views
Vim powerline doesn't show the current branch
I'm using the vim plugin called powerline and it isn't showing the git branch I'm on, while it's supposed to be activated by default. The fugitive plugin is installed, though I don't think it was ...
4
votes
2answers
394 views
Vimdiff and git all at once
I use vimdiff as my difftool with git.
Let's say that I've changed twelve files. The problem is that sometimes I run git diff and around the fourth or fifth file I see something that I want to ...
0
votes
2answers
227 views
How do I use installed Vim in Git Bash instead of the one that came with Git?
I've installed Vim and Git to C:\Program Files (x86)\(vim|git) respectively.
When I run Vim from Git Bash, it runs the internal version of Vim that came with the Git installer. Is there a way to ...
1
vote
0answers
340 views
Why does git difftool not work with vimdiff?
I just set up git and set git mergetool to vimdiff and it works as expected.
If I set git config --global diff.tool vimdiff
it behaves strangely:
git diff x y will open less and display the changes ...
1
vote
1answer
81 views
Git commit: reset Vim error state
When I make a new Git commit (git commit) and it enters Vim, sometimes it happens that I make a small typo when I want to save the commit-message-file. E.g. I type :Wq instead of the usual :wq.
Vim ...
3
votes
3answers
469 views
How can I discard file change from fugitives status window?
When in the fugitive-plugin status window, accessed using :Gstatus, it's possible to diff changes for a file using D and toggle files for commit using -.
Is there any similar shortcut for discarding ...
0
votes
1answer
134 views
Git doesn't see the folder I'm trying to commit, though it's visible in NERDTree in MacVim
Trying to commit folder, but git just doesn't see one.
At the same time in MacVim's NERDTree (I have Janus distribution installed) all files from that folder are appearing with the wildcard at the ...
3
votes
5answers
587 views
Is there any way to hook saving in Vim up to commiting in git?
I am new to the world of Vim, and I want to make it so that every time I save a file it is commited to version control. Is this possible?
6
votes
1answer
1k views
vim not loading _vimrc file when launched from git bash
I have downloaded and installed git for windows (msysgit) and frequently used the included git bash. Whenever I run vim from git bash my _vimrc file is not loaded because there is syntax highlighting ...