I'm a bit in IDE trouble, and I'm not alone I have noticed, still I haven't found an answer on many of my questions.
I would very much stop using different editors and become very good at one (on windows), adhering the pragmatic adage : "Learn one editor (ide) well". I' m willing to put in a lot of effort, to gain on the long term. ...
I am trying to use VIM for some programming. I am a total beginner in VIM. Could you guys please help me figure out Project Plugin. I cant understand the documentation. If you have used this plugin, could you tell me the basic steps to get started?
...
I have downloaded php.vim file, which contains PHP-based syntax information. It should be able to provide syntax based folding, but I can't make it work for some reason.
I have set :let g:php_folding 2 and :set foldmethod=syntax but for no avail. I'm pretty sure the file is in right place and is read by vim, since I can do :let g:php_sq...
Hi,
Im facing some problems, I looked around in the forum and didnt find
any solutions discussed. Im sorry if these have been resolved earlier.
Is there someway I can make the VIM line break after 80 characters. I
dont want the text to wrap around but create a new line. And I wish it would
break off the complete last word. So instead ...
I really don't want to give up on vim again, but every time I try to learn it something gets in the way.
I'm using gVim on Windows. My code shows ^M characters at the end of lines. I used :set ff=dos to no avail. The ^M characters remain for existing lines, but don't show up for newlines I enter. I've switched modes to mac (shows ^J c...
Do you have any preferred methodology for managing html formatting tags in vim?
The best I've come up with is creating some macros to insert tags at the current cursor position - ctrl-i for <i>, ctrl-j for </i>, etc.
It would be handy to be able to, say 2w{something} to italicize 2 words, for instance, without needing to navigate the c...
The title is very description. Just in case, I will take an example:
START BLOCK1
something
END BLOCK1
START BLOCK2
something
somenthing...
END BLOCK2
I select the BLOCK1 in visual mode
I yank it by pressing "y"
How can I save the yanked BLOCK1 to some other file?
...
I mistakenly did marker folding to my .vimrc:
{{{8 #CS
something..
}}}8
{{{9 #Math
...
}}}9
... many more!
I need to switch the format to "#SOMETHING {{{NUMBER" like:
#CS {{{8
something..
}}}8
#Math {{{9
...
}}}9
... many more!
What is wrong in the following code:
:%s$/({{{\d/) /(#[:alpha:]/)$\2 \1$g
[Solution]
%s$\(...
I've been working on expanding my vim-foo lately and I've run across a couple of plugins (autotag.vim for example) that require them to be "sourced" in my .vimrc file. What exactly does this mean and how do I do it?
...
I have selected text by visual mode and pressed :.
I run the following command unsuccessfully
w >> ~/Documents/Test/test.java
The result is an empty file.
How can you append text in Vim's visual mode to another file?
...
So I've figured out how to add line numbers to vim (:set no or :set number) but how can I make it so that when I use my mouse in a terminal emulator to select a block of lines, it does not also select the numbers?
For example, say I have three lines that look like so in vim:
1 First line
2 Second
3 Third
If I want to select ...
I use MacVim as my editor within Xcode. By default Command-B and :make are bound to call 'make' from the command line. As we're using Xcode for building and project configuration, I'd like to replace the :make/Command-B calls to make with an applescript command. Is this possible, and how would I go about doing it?
...
vim shows on every line ending ^M
How I do to replace this with a 'normal' linebreak?
...
I've needed this a few times, and only now it occured to me, that maybe Vim could do it for me. I often save files whose numbers are many, and whose names do not matter (they're temporary anyway).
I have a directory full of files: file001.txt, file002.txt ...(they're not really named "filexxx.txt" - but for the sake of discussion ...). ...
I have a line like below.
fullname = (this is a test name);
I want to double quote all the strings inside "(" and ")".
i.e fullname = ("this" "is" "a" "test" "name");
Can someone give me a vim regex to do that?
...
The other day my friend asked me how to fix the indentation of his huge html files which was all messed up.
I tried the usual "gg=G" command, which is what I use to fix the indentation of code files. However, it didn't seem to work right on HTML files. It simply removed all the formatting.
I also tried setting :filetype = xml, to see...
I have the following in my .Zshrc
. /Users/Masi/bin/Zsh/prompt
I need run the following code to access the file from .zshrc
Ctrl-Z
vim ~/bin/Zsh/prompt
I tried to do the same unsuccessfully by first highlighting the path in visual mode and running
:'<,'>!vim
How can you move fast between files in Vim?
...
Problem: to move upwards in Vim's Taglist by "t"
The movement keys DHTN work in Vim when I am not in TagList.
I have the following in my .vimrc
no h j
no ...
I use Vim in Screen. I run the command
vim <bigFolder>
I am in stuck, since it does not make sense to close each buffer by
:q
How can you close all active buffers in Vim, by one command inside Vim?
...
I'm trying to define a vi 'map' command sequence, that would wrap the current word inside an HTML tag, e.g. the B (bold) tag. The map is defined as follows:
:map K ebi<B><esc>ea</B><esc>
The map starts with the motion "eb" to move to the beginning of the selected word,
assuming that the most likely cursor position would be the beginni...