Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor.

1
vote
0answers
20 views

How to switch between terminal, nerdtree and text editor?

I normally switch screen in vim using ctrl+h or ctrl+l to switch between NerdTree and vim main window.Vim8 got :term command to bring up terminal which is great!But I cannot figure out how to switch ...
0
votes
1answer
30 views

Recent brew upgrade breaking vim

This question is closely related to this question where I got a very similar error message when launching vim after doing a brew upgrade:dyld: Library not loaded: /usr/local/opt/python/Frameworks/...
0
votes
0answers
7 views

Can I configure vim to set noswapfile when editing a file that exists in a git repo

What vim APIs and facilities could I use to disable vim swapfile (the hidden recovery file) for a given buffer if the file exists in a git repo? Inside git repos I also want to enable an autosave ...
6
votes
3answers
4k views

Use another user's .vimrc and .vim/

I know that I can :source /path/to/some/.vimrc to load my user's .vimrc when running as root, but how can I use the entire .vim/ directory as well? Is there a startup option for using /home/user/.vim/ ...
4
votes
2answers
818 views

Vim process stops after executing an external command

I've been using vim recently to program in C. I have created shortcuts for compiling and running the programs from within vim itself, but recently vim's process has been stopping after executing the ...
11
votes
3answers
9k views

Re-compile VIM with options

I have VIM installed but I need to compile it with specific options:In addition to the most commonly used features, the pluginrequires: +python or +python3, +clientserver and +conceal.What ...
0
votes
0answers
17 views

how to make vim to have python interactive runtime window

Is it possible to have python live program mode window open in python so we can call program and see the live outcome straightaway instead of jumpout vim to CMD?It is a bit like VisualStudio setup.
0
votes
0answers
13 views

How to map python2.7 and python 3 to both VIM

In linux I have configured nnoremap <buffer> <F9> :exec '!python' shellescape(@%, 1)<cr>to map python2.7 to my vimHow can I have both Python2.7 and python3 run on new ...
0
votes
1answer
17 views

shell command on matching line (in vim: combine the global `:g` or `:v` command with shell command)

I want to use a shell command (fmt in this case) to operate on every (non-)matching line of a regex in a file. I'd prefer to do it within vim! I am, nonetheless, open for a pure shell/bash/zsh ...
50
votes
5answers
30k views

Can I disable continuation of comments to the next line in Vim?

In Vim, if I'm typing a comment in a code file, and I hit Enter, it automatically makes the newline a comment, too.For instance, in a Ruby file:# I manually typed the pound at the start of this ...
49
votes
2answers
16k views

Is there an “include” procedure in vimrc?

I have some configuration in my vimrc. Some generic ones, and some other really specific.I would like to share this config with some co workers, but a lot of them don't need these specific ones....
3
votes
1answer
4k views

VIM only storing first 50 lines when yanking between files

When I use Y to yank lines, I can yank any reasonable amount of lines (I've never knowingly hit a limit). However, if I close the file and then try to paste p into another file, only the first 50 ...
2
votes
0answers
83 views

View different parts of a file, in different terminals, scrolled in synchrony?

Two terminals, on different machines, viewing consecutive parts of a file in vim. You scroll/move cursor in one terminal, and the other moves the same relative amount. So you get one logical window ...
4
votes
4answers
6k views

Vim Navigation in insert mode effectively

I know that in insert mode I could navigate through the document by using the arrow keys or by using Ctrl-o to escape insert mode temporarily. My question is: Is there any other way to navigate ...
6
votes
5answers
2k views

Using vim as the editor for the It's All Text! Firefox Add-on

I am trying to use vim as the external editor for It's All Text! within Firefox. This works fine for standard http:// web pages, but when I try to use it within TiddlyWiki, 89 instances of vim are ...

153050per page