Hi,
Im wondering if there is a command in V/Vim that will save a backup of the current document to another location (e.g., from C:\ to C:\backup). Any subsequent write with the ":w" command will still write to the old location (e.g., C:).
Thanks,
Derek
...
With vim how do I to turn this:
t.string :crypted_password :null => false
t.string :password_salt, :null => false
into this:
t.string :crypted_password, :null => false
t.string :password_salt, :null => false
without manually adding the spaces to each line?
...
This is happening in python files.
For example, I want to do type "fC" in normal mode, and instead of finding the first "C" character, it is just doing code fold toggling.
...
I often need to enter insert mode just to make changes on a specific line, and would like know if there is a way to enter insert mode in a way that when I am done editing on that line, hitting [Return] gets me back to normal mode.
I am aware of the 'r' command for replacing a single character, I guess what I want is something like that ...
In vim, in my .vimrc, how can I redefine a command (i.e. :e) as something else?
I want to redefine :e * as :tabe *.
...
I want to get the file name without the file extension in VIM.
I wrote the following functions in my .vimrc file for compile and run the Java program.
:function! JAVA_RUN()
:!javac %^M
:endfunction
map <F3> :execute JAVA_RUN()<CR> :source $HOME/.vimrc<CR>
In side the function how can I get the file name with out the extension.
...
original (update follows)
I'm working with a lot of anonymous functions, ie functions declared as part of a dictionary, aka "methods". It's getting pretty painful to debug, because I can't tell what function the errors are happening in.
Vim's backtraces look like this:
Error detected while processing function NamedFunction..2111..210...
I'm trying to set up the NERDComment plugin in vim, but I'm having some trouble with the keys. I'd like to set the basic toggle functionality (comment a line if it's uncommented, uncomment if it's commented) to be c. The problem is that I've remapped the Leader to be ,, which is the same key that NERD wants for all of it's hotkeys. Anyon...
Is there a way to compile and run a C program from VIM without typing its filename ?
...
The mark " in Vim takes you to your last cursor position. I want to create an alias that will open my Vim instance and jump to that mark; something which is obviously extremely useful.
This works from the command line:
$ vim -c "'\"" File.cpp
Now I want to make an alias for this:
$ alias v='vim -c "'\""'
Well that's not goin...
There is a Python project created by using Vim and Coda which doesn't include any editor specific file. I'm used to use Eclipse as an editor so I want to work on this project using Eclipse. But I don't know how to do it without to create a new project in Eclipse or without importing it. Because I don't want to get a copy of these files. ...
hi, all
Is there anyway to ask Fuzzy Finder plugin for VIM search subdirectory as well? It appears to me that no matter what mode I am in, it either search current directory, or I have to be explicit on subdirectory name for it to dive in.
Another plugin folks here mentioned in fuzzy finder textmate plugin. Unfortunately, this plugin d...
My terminal is 160 characters wide.
I use VIM.
Is there a way to tell vim:
when you see "//", autoindent it to start @ width 80?
(And haave it also affected when I highlight a region and hit =)
Thanks!
...
When I do
:colorscheme vilight
it loads the color scheme fine.
So I added
colorscheme vilight
to my .vimrc but its not loading it on start. Am I missing something?
Also in my config
set background=dark
syntax on
colorscheme vilight
set lines=60 columns=200
...
I'm having one doubt about the VIM ENCRYPTION key.
I having a text file, I encrypted that file using
:X
Now, where the encrypted key is stored (path).
Whether it stored in a separate file or the text file itself.
If I open a the file it asked Encryption key.
How it compare my key with the original key?
...
I forgot the array syntax while on Zsh-commandline:
$ hello=[1,2,3,4] %ERR:
I want to fix the problem by substitution. In Vim, I would do :.s@,@ @g.
So how can I edit the current line, or let call it a current buffer, by running a command on it?
...
So, I am doing this search in vim:
/\(\(unum\)\|\(player\)=\)\@<!\"1\"
and as expected it does not match lines that have:
player="1"
but matches lines that have:
unum="1"
what am i doing wrong? isn't the atom to be negated all of this: \(\(unum\)\|\(player\)=\)
naturally just doing: /\(\(unum\)\|\(player\)=\) matches unum= or...
Hi,
I opened a file in VI and I see a few instances of "^\" What exactly is this character?
Thanks
...
Am using mysgit for windows, but mysgit vi editor is unable to do syntax highlighting and indentation for my source code (html/python/css .... files)
I managed to copy the syntax folder from my original GVIM7.2 installation to Git Vim72 installation folder, now i see like syntax highlighting is active.
What am unable to do is indentati...
I want to get automatically to the positions of the results in Vim after grepping, on command line. Is there such feature?
Files to open in Vim on the lines given by grep:
% grep --colour -n checkWordInFile *
SearchToUser.java:170: public boolean checkWordInFile(String word, File file) {
SearchToUser.java~:17: public boolean checkWor...