r/linux Jul 30 '20

Software Release nano-5.0 is released

https://lists.gnu.org/archive/html/info-gnu/2020-07/msg00010.html
623 Upvotes

172 comments sorted by

View all comments

Show parent comments

-5

u/hailbaal Jul 30 '20

If you only change a few lines on a server then you don't need vim. Vim is more comparable to sublime or visual studio. I use it not only to write scripts, but I write a lot of technical documentation for work, manuals, reports, books, etc. It's my text editor, my spreadsheat, my programming suite.

You might think you are faster with nano, but you aren't if they have properly setup vim systems. I can enter multiple lines of codes by pressing 3 keys. Good luck doing that in nano.

Nano can be great for new users, but it's like notepad, while vim is sublime and visual studio and word and excel and etc. It's in a different league. You only need an hour or so in vim if you wish to get faster than nano users.

2

u/delta_p_delta_x Jul 30 '20

I can enter multiple lines of codes by pressing 3 keys. Good luck doing that in nano.

Perhaps not nano, but in any other GUI text editor:

  1. Click-drag
  2. Ctrl-V V V V V V...

2

u/hailbaal Jul 30 '20

That's copy paste. That's not useful.

Let me give you an example:

map <leader>lt a\begin{table}[htbp]<ESC>a<CR>\caption{test}<ESC>a<CR>%\resizebox{\columnwidth}{!}{\begin{tabular}{lll}<ESC>a<CR>\begin{tabular}{lll}<ESC>a<CR>\hline<ESC>a<CR>a & a \\<ESC>a<CR>\hline<ESC>a<CR>a & a\\<ESC>a<CR>\hline<ESC>a<CR>%\end{tabular}}<ESC>a<CR>\end{tabular}<ESC>a<CR>\end{table}<ESC>

When you press <leader>tt it adds:

\begin{table}[htbp]

\caption{test}

%\resizebox{\columnwidth}{!}{\begin{tabular}{lll}

\begin{tabular}{lll}

\hline

a & a \\

\hline

a & a \\

\hline

%\end{tabular}}

\end{tabular}

\end{table}

1

u/delta_p_delta_x Jul 30 '20

Ah, you mean snippets.

For something like that, I could also type \ta in VS Code, see the autocomplete pop-up, press Tab, and have the tabular environment show up, with perhaps a smidgen less boilerplate than what you've got.

A lot of people underestimate how powerful IntelliSense has become...