S
S
stepandra942015-01-18 19:35:24
vim
stepandra94, 2015-01-18 19:35:24

Text editor or IDE?

Hello!
Perhaps due to my pedantry, quite recently the question arose of what is better to use in what cases.
In what situations a text editor (Sublime / Vim / Emacs) is more suitable, and in which IDE.
I understand that the IDE has excellent functionality (refactoring, autocomplete, debugging), but what are text editors for, specifically in coding, of course =)

Answer the question

In order to leave comments, you need to log in

6 answer(s)
I
Ivan Solomennikov, 2015-01-18
@ivsol

See what tasks you have.
If there is no desire to finish anything, then take Sublime, if there is time and desire, then VIM / Emacs.
I chose VIM for myself, it's enough for me for the frontend.

O
OnYourLips, 2015-01-18
@OnYourLips

When you work with configs, text is a text editor.
When with code, then IDE.
Theoretically, you can work with code and in the editor, but you will work slowly and unproductively, so you will do less per unit of time and earn less money.
Moreover, the project will be of poor quality, because. IDEs have static code analysis, but editors don't.
This is clearly visible in Laravel, which was written in Sublime, and when you open it in PhpStorm, it immediately shows code sections with obvious errors in red.

S
Sergey Lerg, 2015-01-18
@Lerg

Real developers only use bash and echo!
$ echo "printf(\"Hello, world\");" >> main.c

D
Daniil Kolesnichenko, 2015-10-02
@KolesnichenkoDS

http://ru.stackoverflow.com/questions/437338/Is-...

When you start using Vim, you need to understand that Vim is not an IDE and should not be. Most likely, most of the features that you love in the IDE (smart autocomplete, integration with VCS, debugger, code navigation) are in Vim, but it is done worse. But Vim does all sorts of eclipses in speed, in fact, text editing. I have not seen in any Visual Studio or IDEA the ability to repeat the hotkey n times, and in Vim there is nothing easier:
w - вперёд на слово
5w - вперёд на 5 слов

And so you can repeat any command by simply putting a number in front of it. Then, a bunch of selection methods:
vip             - выделить параграф
viw             - выделить слово
Shift+v или 0v$ - выделить строку
^v$             - выделить строку, начиная с первого непробельного символа
vi(             - выделить всё между ближайшими круглыми скобками (аналогично 'vi[' и 'vi{' для квадратных и фигурных скобок)
va(             - выделить всё между ближайшими круглыми скобками, включая сами скобки
v2j             - выделить на две строки вниз

And many others. Likewise, there are many combinations for cutting and copying text:
dip - вырезать параграф
di( - вырезать содержимое круглых скобок
da( - вырезать содержимое круглых скобок и сами скобки
y2y - скопировать две строки
yy  - скопировать строку
ywy - скопировать слово
p   - вставить после курсора
[p  - вставить перед курсором

The combinations that I have listed are only a small part of all Vim combinations. No IDE without Vim-mode can physically compare, because in fact there are an infinite number of combinations in Vim, since new combinations are created from existing ones on the fly:
xp  - поменять две буквы местами
vt, - выделить всё до ближайшей запятой

Well, if you are interested, then be sure to check out the Vim-Surround plugin, which is also a very cool thing.
PS I can't really say anything about Vim Mode in the IDE, I tried it only in Sublime Text (which is not an IDE at all) with Vintage Mode, and it seems that not all combinations matched there - in general, I scored. But if you take an IDE with Vim Mode, then you need to look for Vim Surround to be under this IDE.

I
index0h, 2015-01-18
@index0h

Something quick on the knee in 5 minutes: Gedit / VIM
Main work: PhpStorm
Under SSH: VIM

V
Valentine, 2015-01-18
@vvpoloskin

This is a tricky question. Just search vim vs ide and you'll find tons of discussions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question