OCCRA
Go to Post "which came first, the hamster or the toad?" - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-04-2017, 12:01 PM
Dev_Otmas's Avatar
Dev_Otmas Dev_Otmas is offline
Registered User
FRC #4905 (Andromeda One)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2011
Location: Massachusetts
Posts: 3
Dev_Otmas is an unknown quantity at this point
Unhappy Programming in Vim?

Turns out I've been kind of silly and said that I would do all my programming this year in Vim. So now I'm wondering if there's any way to push robot code from within vim.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-04-2017, 12:09 PM
Andrew Schreiber Andrew Schreiber is offline
User
no team
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,565
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Programming in Vim?

Robot code is pushed using ftp (or scp, don't have it in front of me)... so... yes?

Look into the build.xml file eclipse uses. For java at least it's just using ant under the covers. Alternate option would be GradleRio in which case you'd have to shell out from VIM to that and run it. I'd be willing to bet there's an easy way to do it. If not, TMUX is a thing that is totally awesome.
__________________




.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-04-2017, 12:13 PM
Dev_Otmas's Avatar
Dev_Otmas Dev_Otmas is offline
Registered User
FRC #4905 (Andromeda One)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2011
Location: Massachusetts
Posts: 3
Dev_Otmas is an unknown quantity at this point
Re: Programming in Vim?

Thanks for the response! I'm already familiar with tmux, I was just wondering if there was a way to do it from inside vim. Thanks again!
Reply With Quote
  #4   Spotlight this post!  
Unread 12-04-2017, 12:15 PM
marshall's Avatar
marshall marshall is offline
Discerning and exacting individual
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 2,072
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Programming in Vim?

Quote:
Originally Posted by Dev_Otmas View Post
Turns out I've been kind of silly and said that I would do all my programming this year in Vim. So now I'm wondering if there's any way to push robot code from within vim.
VIM is a text editor... if you want a full blown operating system then use emacs like a filthy plebeian.*

Seriously though, write some scripts for deploying code.

*Someone's going to get angry at me for this and I don't care because chances are they use emacs.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Clarke's Laws
Reply With Quote
  #5   Spotlight this post!  
Unread 12-04-2017, 12:20 PM
Andrew Schreiber Andrew Schreiber is offline
User
no team
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,565
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Programming in Vim?

Quote:
Originally Posted by marshall View Post
*Someone's going to get angry at me for this and I don't care because chances are they use emacs.
"You must spread some reputation around before giving it to marshall again"

For reference, it was red.

Fight me.
__________________




.
Reply With Quote
  #6   Spotlight this post!  
Unread 12-04-2017, 12:27 PM
gerthworm's Avatar
gerthworm gerthworm is offline
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 227
gerthworm is a glorious beacon of lightgerthworm is a glorious beacon of lightgerthworm is a glorious beacon of lightgerthworm is a glorious beacon of lightgerthworm is a glorious beacon of lightgerthworm is a glorious beacon of light
Re: Programming in Vim?

It's an old code, but it checks out:

https://github.com/RobotCasserole173..._and_deply.bat

https://github.com/RobotCasserole173...build_only.bat

Presumptions:
--Ant is installed and on the system path
--You're using Windows (but, the same concept should apply to your favorite *nix system)
--You're using the 2016 libraries. Haven't tested with anything later yet.
Reply With Quote
  #7   Spotlight this post!  
Unread 12-04-2017, 12:27 PM
cadandcookies's Avatar
cadandcookies cadandcookies is online now
Director of Programs, GOFIRST
AKA: Nick Aarestad
FTC #9205 (The Iron Maidens)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Minnesnowta
Posts: 1,694
cadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond repute
Re: Programming in Vim?

And here we see three programmers in their natural states— one asking questions, and two flaming over an arbitrary technical choice.
__________________

Never assume the motives of others are, to them, less noble than yours are to you. - John Perry Barlow
grabcad | twitter | github
'Snow Problem CAD Files: 2015 2016
MN FTC Field Manager, FTA, CSA, Emcee
FLL Maybe NXT Year (09-10) -> FRC 2220 (11-14) -> FTC 9205(14-?)/FRC 2667 (15-16)
VEXU UMN (2015-??)
Volunteer since 2011
2013 RCA Winner (North Star Regional) (2220)
2016 Connect Award Winner (North Super Regional and World Championship) (9205)
Reply With Quote
  #8   Spotlight this post!  
Unread 12-04-2017, 12:28 PM
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
no team (The Blue Alliance)
Team Role: Engineer
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC
Posts: 1,202
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Programming in Vim?

Quote:
Originally Posted by marshall View Post
if you want a full blown operating system then use emacs like a filthy plebeian.*
And such a good operating system, too. I've only ever found it to be missing one thing: a decent text editor
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
The Blue Alliance | The Blue Alliance for Android | FRC Notebook
Reply With Quote
  #9   Spotlight this post!  
Unread 12-04-2017, 12:29 PM
Andrew Schreiber Andrew Schreiber is offline
User
no team
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,565
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Programming in Vim?

Quote:
Originally Posted by cadandcookies View Post
And here we see three programmers in their natural states— one asking questions, and two flaming over an arbitrary technical choice.
My code is compiling!

(But seriously OP, Marshall and I are snarking at each other but if anything is still unclear we can take this outside, I'll have to check which of our states still have dueling laws on the books)
__________________




.
Reply With Quote
  #10   Spotlight this post!  
Unread 12-04-2017, 12:30 PM
marshall's Avatar
marshall marshall is offline
Discerning and exacting individual
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 2,072
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Programming in Vim?

Quote:
Originally Posted by Andrew Schreiber View Post
My code is compiling!

(But seriously OP, Marshall and I are snarking at each other but if anything is still unclear we can take this outside, I'll have to check which of our states still have dueling laws on the books)
Don't worry - we can meet up in Myrtle Beach and settle it there!
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Clarke's Laws
Reply With Quote
  #11   Spotlight this post!  
Unread 12-04-2017, 12:30 PM
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
no team (The Blue Alliance)
Team Role: Engineer
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC
Posts: 1,202
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Programming in Vim?

Quote:
Originally Posted by Andrew Schreiber View Post
My code is compiling!

(But seriously OP, Marshall and I are snarking at each other but if anything is still unclear we can take this outside, I'll have to check which of our states still have dueling laws on the books)
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
The Blue Alliance | The Blue Alliance for Android | FRC Notebook
Reply With Quote
  #12   Spotlight this post!  
Unread 12-04-2017, 12:34 PM
cadandcookies's Avatar
cadandcookies cadandcookies is online now
Director of Programs, GOFIRST
AKA: Nick Aarestad
FTC #9205 (The Iron Maidens)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Minnesnowta
Posts: 1,694
cadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond repute
Re: Programming in Vim?

Quote:
Originally Posted by Andrew Schreiber View Post
My code is compiling!

(But seriously OP, Marshall and I are snarking at each other but if anything is still unclear we can take this outside, I'll have to check which of our states still have dueling laws on the books)
To be clear to the OP, Marshall, and Andrew, my comment was also being made in jest. I don’t really have anything further to add other than good luck to the OP, and have fun with that duel... I hear everything is legal in Jersey, but that might be a bit of a haul
__________________

Never assume the motives of others are, to them, less noble than yours are to you. - John Perry Barlow
grabcad | twitter | github
'Snow Problem CAD Files: 2015 2016
MN FTC Field Manager, FTA, CSA, Emcee
FLL Maybe NXT Year (09-10) -> FRC 2220 (11-14) -> FTC 9205(14-?)/FRC 2667 (15-16)
VEXU UMN (2015-??)
Volunteer since 2011
2013 RCA Winner (North Star Regional) (2220)
2016 Connect Award Winner (North Super Regional and World Championship) (9205)
Reply With Quote
  #13   Spotlight this post!  
Unread 12-04-2017, 01:22 PM
KJaget's Avatar
KJaget KJaget is offline
Zebravision Labs
FRC #0900
Team Role: Mentor
 
Join Date: Dec 2014
Rookie Year: 2015
Location: Cary, NC
Posts: 119
KJaget has a brilliant futureKJaget has a brilliant futureKJaget has a brilliant futureKJaget has a brilliant futureKJaget has a brilliant futureKJaget has a brilliant futureKJaget has a brilliant futureKJaget has a brilliant futureKJaget has a brilliant futureKJaget has a brilliant futureKJaget has a brilliant future
Re: Programming in Vim?

Quote:
Originally Posted by plnyyanks View Post
And such a good operating system, too. I've only ever found it to be missing one thing: a decent text editor
Run Vim with this set of keybindings : http://www.vim.org/scripts/script.php?script_id=300
Reply With Quote
  #14   Spotlight this post!  
Unread 12-04-2017, 02:15 PM
FlamingSpork FlamingSpork is offline
Eating Utensil
FRC #3003 (Tan[X])
Team Role: Programmer
 
Join Date: Nov 2014
Rookie Year: 2015
Location: Canandaigua, NY
Posts: 105
FlamingSpork is just really niceFlamingSpork is just really niceFlamingSpork is just really niceFlamingSpork is just really niceFlamingSpork is just really nice
Re: Programming in Vim?

Quote:
Originally Posted by Andrew Schreiber View Post
Alternate option would be GradleRio in which case you'd have to shell out from VIM to that and run it. I'd be willing to bet there's an easy way to do it. If not, TMUX is a thing that is totally awesome.
With VIM, you can run shell commands from inside it using ":! ant -buildfile build.xml" if build.xml is in your current directory. You can also get a shell using ":sh" and resume editing by exiting the shell.

Source

Last edited by FlamingSpork : 12-04-2017 at 07:46 PM. Reason: Correcting the command to the command suggested by b2101
Reply With Quote
  #15   Spotlight this post!  
Unread 12-04-2017, 06:16 PM
b2101 b2101 is offline
Registered User
FRC #6619
 
Join Date: Dec 2017
Location: Livermore
Posts: 1
b2101 is an unknown quantity at this point
Re: Programming in Vim?

You can deploy by running the ant script in the parent directory:

ant -buildfile build.xml

I recommending mapping this to an alias in bash.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:16 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi