Jump to content
On 5/12/2016 at 1:14 AM, Danielh90 said:

What does Vim give you that notepad++ or sublime does not? 

Right now, the ability to edit code remotely. For one of my programming subjects we have to compile on the schools servers, and are being advised to use SSH + Vim and write directly onto the servers. I actually don't have a local copy of my assignment. I can also call shell commands like the GCC compiler without leaving Vim, and I'm pretty sure I can run my program within Vim as well (Though I haven't tested this personally... Comments?), essentially given it most of the functionality I need in one package.

 

For web-based projects though, I use atom.io. It's also hackable/customisable, but all using web languages

CPU: Intel Core i7-4770k | Mobo: MSI Mpower Max | Cooling: Cryorig R1 Ultimate w/ XT140 front Fan | GPU: EVGA GTX 770 Dual SC SLI | Case: NZXT H440 | Case Fans: Phanteks PH-140SP x5 | PSU: EVGA Supernova P2 1000W | RAM: 16GB Crucial Ballistix Tactical Tracer | SSD: Kingston HyperX 3k 120GB | HDD: Seagate Barracude

Keyboard: Razer Blackwidow Ultimate 2013 | Mouse: Razer Deathadder 2013 | Headphones: Sennheiser HD438s | Mousepad: Razer Goliathus Control | Monitor 1: Benq XL2430T | Monitor 2: BenQ RL2455HM 

 

Link to post
Share on other sites

2 minutes ago, VulsaviiK said:

I can also call shell commands like the GCC compiler without leaving Vim, and I'm pretty sure I can run my program within Vim as well (Though I haven't tested this personally... Comments?)

Completely right, while you're in vim just type :! and you're basically in bash ie:

:! ls

:! make

:! diff foo.c foo.c.backup

....

 

One thing i can recommend for working in a ssh session is to use tmux so you can have multiple tabs open or even "windows" next to eachother (https://tmux.github.io/), its better than just having multiple vim windows as you're not restricted to only having vim open.

You can also set up a session which you won't loose on disconnection and can reconnect to when you sign in later again. Saves you from having to cd back into the folder get your command history and the like back up everytime you have to log out of ssh...

Link to post
Share on other sites

1 minute ago, Hamosch said:

One thing i can recommend for working in a ssh session is to use tmux so you can have multiple tabs open or even "windows" next to eachother (https://tmux.github.io/), its better than just having multiple vim windows as you're not restricted to only having vim open.

You can also set up a session which you won't loose on disconnection and can reconnect to when you sign in later again. Saves you from having to cd back into the folder get your command history and the like back up everytime you have to log out of ssh...

Cheers for the tip, though I'm not entirely sure if we have permissions to set up that functionality. That and I only have a few weeks of the class left, so it's maybe a little late to be setting that up, I've got doubly linked lists to build yo! :P

CPU: Intel Core i7-4770k | Mobo: MSI Mpower Max | Cooling: Cryorig R1 Ultimate w/ XT140 front Fan | GPU: EVGA GTX 770 Dual SC SLI | Case: NZXT H440 | Case Fans: Phanteks PH-140SP x5 | PSU: EVGA Supernova P2 1000W | RAM: 16GB Crucial Ballistix Tactical Tracer | SSD: Kingston HyperX 3k 120GB | HDD: Seagate Barracude

Keyboard: Razer Blackwidow Ultimate 2013 | Mouse: Razer Deathadder 2013 | Headphones: Sennheiser HD438s | Mousepad: Razer Goliathus Control | Monitor 1: Benq XL2430T | Monitor 2: BenQ RL2455HM 

 

Link to post
Share on other sites

On 5/16/2016 at 9:27 AM, Hamosch said:

Completely right, while you're in vim just type :! and you're basically in bash ie:

:! ls

:! make

:! diff foo.c foo.c.backup

 

You can do one better:

 

:make

 

This is automatically configured for many languages out of the box. If you have a proper makefile in C, for example, it will run it for you.

 

On 5/12/2016 at 8:14 AM, Danielh90 said:

What does Vim give you that notepad++ or sublime does not? 

 

Nearly unlimited power and speed. Editing code with traditional keyboard shortcuts and a mouse is cumbersome to say the least. Using Vim is like learning to speak a new language; it's difficult and counterintiutive at first, but once you gain a solid understanding it becomes second nature.

Link to post
Share on other sites

4 minutes ago, SSL said:

You can do one better:

 

:make

 

This is automatically configured for many languages out of the box. If you have a proper makefile in C, for example, it will run it for you.

Hehe, wasn't aware of that one to be honest. The more you know!

But I must admit that I always use tmux and have a terminal open next to vim so I actually don't run any bash commands through vim.

 

Also I can only wholeheartedly agree with the part about what vim gives you!

Link to post
Share on other sites

1 minute ago, Hamosch said:

Hehe, wasn't aware of that one to be honest. The more you know!

But I must admit that I always use tmux and have a terminal open next to vim so I actually don't run any bash commands through vim.

 

Also I can only wholeheartedly agree with the part about what vim gives you!

 

vim + tmux is the ultimate dev environment. People in the know get this; in Asian countries, Vim is more popular than Sublime.

Link to post
Share on other sites

20 minutes ago, SSL said:

 

You can do one better:

 

:make

 

This is automatically configured for many languages out of the box. If you have a proper makefile in C, for example, it will run it for you.

I was aware of this one

CPU: Intel Core i7-4770k | Mobo: MSI Mpower Max | Cooling: Cryorig R1 Ultimate w/ XT140 front Fan | GPU: EVGA GTX 770 Dual SC SLI | Case: NZXT H440 | Case Fans: Phanteks PH-140SP x5 | PSU: EVGA Supernova P2 1000W | RAM: 16GB Crucial Ballistix Tactical Tracer | SSD: Kingston HyperX 3k 120GB | HDD: Seagate Barracude

Keyboard: Razer Blackwidow Ultimate 2013 | Mouse: Razer Deathadder 2013 | Headphones: Sennheiser HD438s | Mousepad: Razer Goliathus Control | Monitor 1: Benq XL2430T | Monitor 2: BenQ RL2455HM 

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×