Sometimes when copying stuff into PostgreSQL I get errors that there's invalid byte sequences.
Is there an easy way using either vim or other utilities to detect byte sequences that cause errors such as: invalid invalid byte sequence for encoding "UTF8": 0xde70 and whatnot, and possibly and easy way to do a conversion?
Edit:
What my w...
I use ctags with my Vim and I rely heavily on C-] and C-T to tag back and froth between various functions in my project.
But if the function is in a different file, I'd like Vim to automatically open it in a new tab instead of the current tab. If I pop my tag stack using the C-T, I'd like it go back to the original tab where I pressed b...
I'd like to compile cpp file w/o turning off vi.
I know the :!g++ file.cpp but I prefer :make so I added this line in .vimrc file
au FileType C set makeprg=gcc\ %
au FileType Cpp set makeprg=g++\ %
but I keep getting
"make: * No targets specified and no makefile found. Stop.** "message.
can anyone tell me what is wrong with my ...
What are your favourite plugins in VIM for Latex editing? Is there some ready variant of VIM for Latex?
...
I'm getting burned repeatedly by unmatched parentheses while writing python code in vim. I like how they're handled for C code - vim highlights in red all of the curly braces following the unmatched paren. I looked at the c.vim syntax file briefly to try to understand it, but the section that handles bracket errors is very complex. Ca...
I'm getting an error message from a python script "at position 21490"
how can I go to this position in Vim?
...
I've recently started using VIM (7.2) in Windows and have been trying to use the OMNI completion feature when editing SQL.
When at the start of a new line it appears to work fine. For example, if I am in insert mode and type:
se <C-C>a
then the word 'select' appears. If I then try and use OMNI completion on any other word on the sam...
I have noted that I cannot affect MacVim's colorscheme by commands in vimrc.
I have now a gray font on black background, which makes reading hard.
...
I asked this question previously:
http://stackoverflow.com/questions/495268/any-good-tutorial-for-moving-from-eclipse-to-vim
From the inputs, I started using GVIM instead of Eclipse. I added ctags to it and I am able to navigate now comfortably.
Only problem left for me is "Debugging"? I tried searching for some links, and couldn't a...
Is there a way in Vim (or a plugin) to search for a term and iterate through the search results (as per n in Vim), by column, rather than row? So if my file was this:
foo1 bar bar
baz baz foo3
baz baz foo4
foo2 bar bar
If I search for foo I want to iterate through the results in order 1,2,3,4. Normally n would move me ...
I was inspired by this (number 2) to make my hard-coded strings ugly.
How can I do this in VIM?
Thanks!
...
I recently read this article related to indenting source files in Vim . However , I would like to be able to custom indent some of them . Is there a way to specify which binary runs when I press = ?
...
I have the following in an XML file:
<TypeDef name="a">
<ArrayType high="14" low="0">
<UndefType type="node">
</UndefType>
</ArrayType>
</TypeDef>
And I want to copy this entry. Normally I'd go to the first line, enter Line-Visual mode using V, go down to the last line, yank and paste.
How can I copy the entire entry wit...
Hello,
I have a big file with thousands of lines of thousands of characters.
I move the cursor to 3000th character.
If I use PageDown or <CTRL>-D, the file will scroll but the cursor will come back to the first no-space character.
There's is an option to set to keep the cursor in the same column after a such scroll ?
I have the beh...
I work with many files remotely using vim and the netrw plugin. I also keep timestamped backups by changing the &backupext (found in the documentation).
While working in a remote file (scp://server//folder/file.txt), I noticed that when I save it, a backup isn't even being made.
Is there a way I can have a backup automatically made loc...
I have just installed Ctags (to help with C++ development) with my Vim (or rather gVim), and would like to find out your favorite commands, macros, shortcuts, tips that go along with it...
Share your best arsenal. What other Vim add-ons you would recommend for C++ on Vim development?
EDIT What other add-on you would use in conjunction ...
Where can I find an updated syntax file for specman? There are a number of these on the web, but I want one with recommendations.
...
I'm losing all previous buffers when by mistake I'm trying to switch behind the last buffer [n:].
If for example I open couple of files in editor
:ls
1 # "/etc/moduli" line 1
2 %a "/etc/motd" line 1
:n
E163: There is only one file to edit
:p
E163: There is only one file to edit
now i can ...
I'm trying to edit files with vim and get the POD automatically folded (just the POD, not the Perl).
I can't get it to work, so I've tried disabling all of my plugins and my .vimrc with this:
vim -u NONE some_perl.pl
I assume that my POD blocks in my project with start with '=head1', '=head2' or '=head3'. They will always end with '...
Would like to read RSS in VIM, but I haven't found a plugin out there.
You guys have any idea?
...