I have a function call in a program that I'm maintaining has 28 arguments for a printf call. It's printing a lot of data in a CSV file. I have problems following finding where what goes and I have some mismatches in the parameters types. I enabled -Wall in gcc and I get warnings like:
n.c:495: warning: int format, pointer arg (arg 15)
n...
Hi,
I have read some comments in some forums saying that Linux programmers usually do not use any IDE. They prefer to use Vim and Emacs to do their programming.
If I'm not mistaken, Vim and Emacs are just text editors, similar to notepad, but with syntax highlighting.
I just want to know how Linux programmers create complicated GUI ap...
I use my .vimrc file on my laptop (OS X) and several servers (Solaris & Linux), and could hypothetically someday use it on a Windows box. I know how to detect unix generally, and windows, but how do I detect OS X? (And for that matter, is there a way to distinguish between Linux and Solaris, etc. And is there a list somewhere of all...
Completion on class members which are STL containers is failing.
Completion on local objects which are STL containers works fine.
For example, given the following files:
// foo.h
#include <string>
class foo {
public:
void set_str(const std::string &);
std::string get_str_reverse( void );
private:
std::string str;
};
//...
I have been using vim for about six months now. I know my way around pretty well. I know all of the "basic commands", have defined my own functions and have defined some syntax files.
I was hopping to pickup a book on vim to read in my spare time. There is nothing specific that I want to learn I just want to improve my general know...
I just installed macvim yesterday and I have been trying to install vim latex today.
The one thing I am confused about is the menu items on the top bar:
-------------------------------------------------------------------------------
<apple icon> File Edit Tools Syntax TeX-Suite TeX-Environments TeX-Elements
--------------------------...
I just installed macvim yesterday and I installed vim latex today.
One of the menu items is calling a broken fuction (TeX-Suite -> view).
When I click on the menu-time it makes this call:
:silent! call Tex_ViewLatex()
Question: Where can I find that function? Is there some way to figure out where it is defined?
Just for cu...
There were two things that I want to know how to do in Emacs (23.2, *nix):
Go to the first character after indentation in a line
Go to the first character that's the equivalent to a given character (an equivalent to vim's fx command that goes forward until it hits the x character; maybe C-s (incremental search) is the best way to do ...
In my .vimrc file, I have the following function, which folds the licensing information on the top of some .hpp and .cpp files:
" Skip license
function! FoldLicense()
if !exists("b:foldedLicense")
let b:foldedLicense = 1
1;/\*\//fold
endif
endfunction
au BufRead *.hpp call FoldLicense()
au BufRead *.cpp call Fo...
Hi,
Let's say I have the following file tree:
/
include/
library/
a.hpp
b.hpp
src/
a.cpp
b.cpp
And the following /src/a.cpp file:
#include "a.hpp"
#include "b.hpp"
I always open Vim at the root directory. So when I want to load a.hpp I do :
:tabnew include/library/a.hpp
or:
:tabnew **/a.hpp
I'd li...
If I have a file that contains a complete path for a file, is there a way to highlight the filename (using visual mode) and open the file? (preferably in a split screen)
As I think about it, here is what I would like: if the file name contains a / character, assume it is a full path (IE the 'current directory' is root). Otherwise, ...
As I use vim, it tries to be helpful by highlighting groups of four spaces in yellow, as shown.
My .vimrc file says, in its entirety, set tabstop=4.
How can I keep vim from highlighting the indentation in my files?
...
In Notepad++ when you work with HTML, when you move the cursor onto a tag it automatically highlights that tag and its opening/closing corresponding tag. That is really useful when you have lots of div inside each other.
How do you turn this on in gVim?
...
Hi!
Here's what I'd like to do, for each one of many files:
search for all occurrences of "<a href" then begin block selection
select until the first occurrence of ">"
convert the entire match to lowercase
Thanks again,
Olivier Pons
...
Is it possible to paste in insert mode in vim?
...
I've just discovered fugitive.vim, which is pretty cool. However, I've run into a problem (this is using windows xp, msys git 1.7, fugitive.vim 1.1, and gvim 7.2). Adding files to the index and checking the status works just fine, but when I do a :GCommit, a command prompt flashes for a second and nothing happens. No way to type a commit...
My vim is very slow to switch tabs (:tabnext) when i've fullscreened my terminal (1920x1200).
Does anyone have a fix for this? Is it a vim issue, or is it my setup? Redrawing a black terminal (gnome-terminal) with a bit of text shouldn't be that hard.
...
Heading says it all really. Using Windows 7 and latest stable gvim, whenever I save (:w) a file it's marked executable. I'm doing cross-platform development and it'd be nice if this didn't happen.
...
Exactly what the title says. All the highlighting right now uses python2.6 and that makes me very sad face.
...
Hello
There is a plugin for vim
ftplugin/man.vim
With it I can view man page directly from vim by pressing "K"
But scrolling in this internal man apge viewer does not work with pgup/pgdn. Yes, there is some other variant of scroll, but how to enable pgdn/pgup in this plugin?
...