In VIM I've got 4 windows opened and a NERD tree like this:
So, whenever I try to open the file from NERD, it's opened in first buffer (topleft pos). Sometimes in other buffers.
Is there a way to open a file in bottom right position ? Mb there are workarounds ?
Maybe I can force NERDtree to open file in last active window ? At the momen...
When Vim is compiled with Python support, you can script Vim with Python using the :python command. How would I go about using this to execute the command and insert the result under the cursor? For example, if I were to execute :python import os; os.listdir('aDirectory')[0], I would want the first filename returned to be inserted under ...
if I have two files
file a.py:
class A():
pass
file b.py:
from a import A
b = A()
When I use ctags and press Ctrl+] in vim, it redirects me to import statement, not to class definition. In this code all is ok:
file a.py:
class A():
pass
file b.py:
from a import *
b = A()
...
It changes the background to red, I can't read the text to correct the error!
How can I configure a different highlight? Does it have a setting?
...
How do you open up vim from a CLI like svn and git do when you drop -m from commit commands?
I'm getting the follow error: Vim: Warning: Output is not to a terminal
`echo "Please edit this file" > file.name`;
`vim file.name`;
...
Is it possible to diff or even vimdiff two almost similar fortran subroutines which occur in the same file? If so, how?
I can think of copying the two subroutines in two separate files and then diff them, but is there a way to do it within the original file?
Thanks!
...
I have a one liner in vim which I regularly use for find and replace.
I now want to use it to remove tags - something like this but I looks like I need to escape the / I'm not sure what am I missing.
:%s~<Validator>*</Validator>~~g
...
When entering an argument on the command, I know I can type <C-R><C-W> to insert the word under the cursor and <C-R><C-A> to insert the WORD under the cursor.
Is there a way to insert the current visual-selection?
Thanks!
...
The behaviour I want is the behaviour in most text editors and office applications (that aren't designed with programmers in mind). This makes it quicker to get to the centre of large paragraphs.
Thanks.
...
I just updated my MacVim to 7.3 and with it, it now changes directories to whatever file I'm currently editing. I use PeepOpen, so it's incredibly annoying to cd back to my project directory every time I want to edit a new file.
...
Is there a command to delete a line (or several lines) that is immediately below current line?
Currently I'm doing it as:
jdd and then . to repeat as needed.
Is there a command that would combine all these?
UPDATE: The reason I would like to have such command is that I don't like to move away from current position, yet be able to delete...
Im trying to get code completion for python in vim 7.3. When I install vim I use this configuration:
./configure --prefix=${HOME}/vim73 --enable-python3interp=yes --with-python3-config-dir=/home/etobkru/Python3/lib/python3.1/config
make && make install
I copy this file:
http://vim.cybermirror.org/runtime/autoload/python3complete.vim
...
Lorem ipsum dolor sit amet, hello consectetur adipiscing elit. Vivamus lorem mauris, dictum in ornare sit amet, vulputate at nibh. Integer volutpat justo vitae enim ultrices ultrices. In quis tortor id diam tincidunt feugiat at ut odio. Donec faucibus sapien vitae ante aliquam malesuada. Nam facilisis, metus in tincidunt posuere, hell...
I have been using IDEs for coding in Java for a while now. For a change, I want to try vim for java programming.
Can you tell me about some good plugins that can make java programming convenient in vim?
...
I'm tired of using IDEs for scala because it can take several minutes to write one line of code on my computer (before I started programming in scala I didn't surmise that it is slow). It's a great pity that there is no option to turn off some features of scala plugin (of any IDE) that devour 100% of my cpu power and not necessary for me...
I've been using the excellent Tabular plugin in Vim to align things, but there's an alignment I want to do pretty commonly that I can't figure out the right regex for.
I want this
gem 'fakeweb'
gem 'factory_girl', '~> 1.3'
gem 'factory_girl_rails', '>= 1.0'
gem 'rspec', '>= 2.0'
gem 'rspec-rails', '>= 2.0'
to turn into this
gem 'fa...
There is an emacs plugin to directly edit a confluence page in emacs:
http://code.google.com/p/confluence-el/
Is there something similar for VIM? I was not able to find something.
...
I love vim, but one common gotcha is:
yank a line
go to where you would like to paste it
delete what's there
paste your yank, only to discover that it pastes what you just deleted
Obviously the workflow is delete first, yank second. But it would be reeeeeaaaaaalllly nice if I didn't have to. Anyone have a trick for this? Does vim h...
Hi,
I am trying to use Vim for web development but having trouble dealing with multiple languages in the same file. I may have php, html, javascript, and css all in the same file, but Vim will base the indentation, coloring, plugins, etc. just based on one of the languages.
Know of any plugins or vimrc hacks to fix this? Thanks.
...
I downloaded jsbeautify.vim from http://www.vim.org/scripts/script.php?script_id=2727
So where do I put jsbeautify.vim ? In ~/.vim/ or ~/.vim/ftplugin/ ?
After I position the plugin file, I will vim somefile.js containing javascript code without any newlines (difficult to read).
How do I invoke the plugin to pretty the code make it re...