This is an annoyance I've had for a long time.
(Nitpicky section: I prefer 4 space characters to tab characters. It's a lot easier to type "tab" instead of explaining that. When I say "tab", I mean "the action that happens when you press the tab key" which is probably more simply stated as "increase indentation".)
I'm using smartinde...
HI all!
I would like to insert a hash at the beginning of a selected block of text in VIM (ruby comment). I selected the lines in Visual Mode, but how do I perform the same operation to all lines?
Thank you in advance!
...
In vim, you can create a fold with zf, so if is %, you can neatly fold a delimited block.
is there a way to select some text in visual mode and automatically fold that?
I've noticed that if I select a closed fold and use dd to delete it, then go somewhere else and use P to paste it, the fold will disappear and the fold will be expande...
I have some text files previously formatted in vim using "gggqG". Now I need to convert them to one line per paragraph format. I saw a way(using :g command) to do that before, but I have forgot it. Anyone knows?
...
I have Vim set up to use the excellent NERDTree plugin. However, there are some environments where I do not want this plugin to be loaded.
In my .vimrc I have a sections that are only run when specific environment variables are true. In one of these sections I would like to disable the loading of NERDTree but all of the information I've...
I have been using NERDTree for a while. Every time I need to create a new directory I need to go to terminal. Is there a quick and easy way to create a directory using NERDTree.
I read the doc but could not find anything.
...
I'm going through my vim dotfiles to tidy them up. I've noticed that through time I've added various filetype specific settings in various inconsistent ways. Let's suppose I'm customizing for Python:
au BufRead,BufNewfFile *.py (do something). I don't like this because some Python files might not have the .py termination.
au FileType ...
I find Vim's undo to be a bit too coarse. E.g. if I type something like this:
a // to go into edit mode
to be or not to ve
<esc> // to exit insert mode
Oops! I made a typo. I want to start undoing so I press u, but then it clears the whole line. Is there a way to undo word-by-word or character-by-character?
...
Hi,
I am trying to use the Omni complete feature with gVim 7.2 but on windows I keep getting an error that says
Error: require vim compiled with +python
E117: unknown function: pythoncomplete#complete
seems like it might be because gvim 7.2 is compiled with 2.4 and I have 2.5 installed. I have downloaded the 2.5 compiled binaries from...
Is it possible to do conditional regex (like the one described in http://www.regular-expressions.info/conditional.html) in Vim?
...
I want to save a list of open files (:ls), quit gvim, start gvim, reopen all previously opened files. I don't want to use :mksession because it doesn't work correctly (probably due to some of the plugins I'm using)
...
Ctrl + ] is to jump to the definition. Ctrl + T is to go back. What's the opposite of Ctrl + T?
...
Since Grails 1.2 there's a documentation engine included: gdoc. The documentation's syntax is based on the Textile format.
Is there some editor support for this? My first choice would be a plugin for IntelliJ, second option on for vim or gedit. Any hints welcome. I am totally a aware that the format is very simple by itself but having ...
Hi
I use Vim editor for programming and here's the problem that I am facing.
I am using multiple tabs to edit C++ and Python files simultaneously and I have added the following in my .vimrc file
filetype plugin indent on
au filetype python set mp=python3\ %
au filetype cpp set mp=g++\ -Werror\ -Wextra\ -Wall\ -ansi\ -pedantic-errors...
I normally use VIM to edit my codes and convert them to HTML by using TOhtml command. The only thing I don't like is that the converted HTML does not have css class style definitions. I am not sure if there is tool to convert codes to HTML with css, or I can use additional tool or command to convert HTML HTML with css?
...
when I have syntax on in a large C file (about 8000) lines
the completion ctrl-p and ctrl-n are very slow (more than 20). When I turn syntax off then completion takes less than a second.
Any ideas on how to solve this?
Thanks!
EDIT:
I figured out a minimal way of reproducing this behaviour:
with an empty .vimrc and .vim folder the on...
How can I limit the search scope in Vim to the function/class/code block that the cursor is currently in, without having to figure out what the line numbers are? Being able to search in the visual selection would also do, as there are methods for selecting the current code block.
(Similar to this question, but more generic)
...
Background:
There are a lot of great tutorials and "tricks" pages for Vim, but one thing that is very difficult is to find specific instructions on how to do some arbitrary thing that one can easily do in one's own familiar text editor IDE. Therefore I am asking for step by step instructions on how you I would do something in Vim that I...
I've been using git along with fugitive.vim to manage code when I'm on windows. However, I've run into a problem. According to the documentation, the :GDiff command should a diff window and allow me to stage only parts of a file. However, when I issue the command in a file with changes, I get the following error message:
Is this a prob...
How to auto display php function parameter in vim ?
...