Questions tagged [ide]

Questions about the use of Vim as an integrated development environment for programming

0
votes
2answers
99 views

How to detect running in intellij in vimrc?

I have some plugins I would prefer load by default in the terminal, and cause performance issues or ux glitches in jetbrains ides running ideavim. Neovim needs to start getting adopted, but that's an ...
3
votes
2answers
335 views

How to set a shortcut to run make in Vim and show the output

I'd like to run make and display the output when I press Ctrl+m in Vim. I know how to run make and display the output while in command mode, thanks to this StackOverflow answer, namely with: :make | ...
1
vote
0answers
205 views

IDE-alike Find Usages

I use exuberant ctags to find definitions of classes, methods and the like. Which packages find the usages of a specific tag? A git grep does not work for me as the result is way to big; many method ...
1
vote
1answer
1k views

comprehensive list of keys bindings for IdeaVim (PhpStorm vim emulator) [closed]

I’m looking for comprehensive list of keys bindings for IdeaVim (vim emulator for PhpStorm and stuff like that). It looks like this plugin has lots of useful key binding which don’t exist in vim and ...
3
votes
3answers
452 views

Test python function from within editor

I am writing python 3 code from within vim. There is a function within my file like this: def seconds_to_text(seconds): return str(datetime.timedelta(seconds=seconds)) Is there a way for me to ...
3
votes
1answer
403 views

Function argument editing

I've been using paredit.vim for editing Clojure files. It's quite successful in managing all those parentheses in a sane way. I'm looking for a similar way for editing function calls in other ...
7
votes
3answers
2k views

What is the best way to re-factor a variable name in vim?

I know there is one way to search and replace variable occurrences across a source file. But is there any better way by which if I rename a variable at one place it gets renamed at other places as ...
3
votes
2answers
512 views

How to set up a Build > Make > Run cycle for a C++ project?

I am trying to come up with a way to handle C++ projects with Vim. I have sorted out syntax and code completion etc. to some extend. Now, I am curios to hear about how people handle their Build > Make ...
1
vote
0answers
3k views

Vim setup for Python 3 [closed]

I want to turn VIM into my Python 3 development environment. What is the best .vimrc configuration and what are good Plug-ins for the job?
1
vote
1answer
229 views

vim plugins for improved workflow - any like this? [closed]

Are there any plugins to check code quality real-time when programming in vim? similar to tools like ReSharper(I imagine, I have only seen them used and never tried them myself) I would be interested ...
4
votes
1answer
869 views

Integration (or emulation) of Vim with NetBeans or Eclipse

Notice: I hope this question fits our site, I'm open to any comments. I've been a Vim user for 15 years now, always as an editor on its own, with some IDE functionalities such as autocompletion among ...
2
votes
0answers
211 views

Tools for working with C #ifdef preprocessor directives?

I want to work with a C code with a lot of #ifdef directives. I wonder if there is a program, that will show me, which of these #ifdef's will be left in the code, and which will be cut out by ...
6
votes
2answers
3k views

How to avoid to press ENTER twice, when compiling with :make inside vim

I love to use vim as simple IDE when comiling C/C++ programs (let say with gcc on a linux terminal), just inside vim with command: :w | make | cw In that way: the :w vim command save editing the :...
4
votes
0answers
1k views

Plugin for debugging c/c++/fortran in Vim

I was wondering if anyone know a good (modern) plugin, similar to vdebug, that gives a debugging interface for C/C++/Fortran in Vim. I know about clewn and pyclewn, however, I find these are too ...
-2
votes
1answer
388 views

Is vim suitable for professional development inside a company? [closed]

How commonly is Vim used in professional software development today, inside a company? By Vim, I mean the actual Vim editor, not a Vim/vi plugin/setting or usage within Eclipse. Has Vim hindered your ...
2
votes
3answers
97 views

Plugin for on-the-fly # => evaluation

How can I evaluate Ruby code on-the-fly when you are writing it? This is what it looks like: 5 + 5 # => 10
7
votes
3answers
925 views

How can I interact with a SQLite or MySQL database?

This might be more suitable for IDE, not for Vim, but still I would appreciate if there was a way that would allow me to connect to either local or remote MySQL/SQLite databases. Is there such a way ...
4
votes
1answer
247 views

How can I navigate to a class interface?

I've been using PHP Storm IDE for some time and I want to try out Vim. PHP Storm automatically allowed me to jump to classess/interfaces defined somewhere in my code (by use and implements statements, ...
4
votes
1answer
259 views

Customize vim to automatically check function name against its prototype

I wonder if there is any method that I can use to check a function name against its prototype, which may help a lot when I make typo. For example, I once wrote a function prototype this way:void ...
9
votes
1answer
3k views

Argument completion for python

Is there a way to get argument completion for python? I am currently using a combination of ctags, python-mode and YouCompleteMe, but I am missing a function to autocomplete the arguments of a ...
9
votes
2answers
696 views

Navigating code projects without using external commands

I am trying to gather a toolbox of Vim commands/queries, in command or search mode, for navigating a code-base without using Ctags or other external tools. Ctags are great but support can vary ...
3
votes
1answer
334 views

Is there a way to hook ctag changes to git branch checkouts and pulls?

When I checkout different branches, I sometimes notice that files in the repo are not available to Vim plugins that search based on the ctags index. I don't have a definitive test that's shown the ...
49
votes
3answers
32k views

How can I integrate gdb with Vim?

Instead of gdbtui or ctrl+x under gdb which shows source code on top of the screen I would like to see this in my Vim editor that would jump between tabs, and buffers accordingly. How can I do this?
13
votes
4answers
15k views

Can I jump to a function declaration or definition in a multiple C++ source files project?

Can I jump to a function declaration or definition in a multiple C++ source files project? Lets say I have a header file foo.hpp: int bar(); and a source file foo.cpp: #include "foo.hpp" int bar() ...
6
votes
1answer
283 views

equalprg to use for Python

Python is whitespace dependent, and it can't be totally autoindented for that reason, but there are a lot of extra stuff that should be possible to do automatically to comply with PEP8. Things like ...
9
votes
2answers
2k views

Folding fails: vim can't find any fold

I'm trying to fold some PHP code, and I have included a cut-down version of some of the code I'm trying to fold at the end of the post. I've tried the following vim commands, but only the ex commands ...
10
votes
2answers
1k views

Automatically creating functions out of function prototypes from header files

Intro When programming in C and C++ you usually split your function prototypes and actual functions into a .h/.hpp and .c/.cpp file. Sadly it's very tedious to transfer the function prototypes from ...
0
votes
2answers
991 views

How can I comment code with a command in Vim [duplicate]

In various editors one can mark a block of code and with a shortcut, comment it right away. Is there a possible way to do it in Vim without an extra plugin? If not, which plugin or script would you ...
39
votes
7answers
7k views

Re-indenting badly indented code

I like the smart-indent feature of Vim, it allows me to create well-indented code blocks. I regularly copy/paste code in to buffers, but that code is often poorly formatted. What would be ideal is ...
12
votes
3answers
8k views

How can I automatically indent on new lines?

I work on projects with varying levels of indentation. In many of these projects, because of how the files are typically structured, most lines are indented at least two levels (such as methods in ...
8
votes
2answers
234 views

How can I get correct autocompletion for ambiguous file extensions?

I'm editing Prolog files as part of an exploratory project, and some of the files I'm working with have the extension .pl, which is shared by Perl files. Whenever I do work on a Prolog file named [...
10
votes
4answers
185 views

Restricting operations to a section of code

There is many times in my day to day work life that I need to operate on a specific function, things like highlighting or searching for a variable, but I have never managed to limit the scope of the ...
31
votes
3answers
33k views

How to get intelligent C++ auto-completion

Some editors (such as visual studio on windows) do C++ autocompletion which understand C++. For example, given: #include <vector> int main(void) { std::vector<int> v; v.i In visual ...
52
votes
5answers
66k views

Is it possible to have vim auto-complete function names, variables, etc. when using it to program?

Many IDEs automatically complete function names, variables, method names, etc. as the user types. The best ones complete the names based both on the language's built-in library as well as what has ...