Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue#37 Integrate sTeam-shell into Vi #41

Open
wants to merge 10 commits into
base: societyserver-devel
Choose a base branch
from

Conversation

ajinkya007
Copy link
Member

@ajinkya007 ajinkya007 commented May 30, 2016

Run the utility VisTeam.pike using the commands sudo ./VisTeam.pike.
It would open a vi editor window. A steam-shell.vim plugin has been written in order to execute the commands from vi buffer.

Function Usage

  1. Enter the Vi insert mode (i) and type the commands
  2. Enter the Vi visual mode(v). Select the command using the Vi Visual mode.
  3. Now type : . This would display :'<,'>
  4. Press Ctrl + U
  5. Now enter the command :Steam
  6. It would prompt you to enter steam password. After this the output of the command shall be displayed in a the log buffer which would be opened in a new tab.

ajinkya007 and others added 2 commits May 31, 2016 20:57
The :* register is supported by the Vim which has +clipboard enabled in it. Vim needs to be installed using vim-gnome
@ajinkya007
Copy link
Member Author

The :* register is not found in all the systems. It needs +clipboard dependency to be included in the vim installation. Which can be done by installing vim-gnome package.
However we have changed the register to a more generic one which would help us to get rid of these dependencies.
The instructions for running the command are modified and are as follows.

###Function Usage

  1. Enter the Vi insert mode (i) and type the commands
  2. Enter the Vi visual mode(v). Select the command using the Vi Visual mode.
  3. "Now type : y To yank the text
  4. Now enter the command :Steam
  5. It would prompt you to enter steam password. After this the output of the command shall be displayed in a the log buffer which would be opened in a new tab.

@Siddhant085
Copy link

If I enter the commands in two lines only the first line is getting executed.

@ajinkya007
Copy link
Member Author

@Siddhant085 : Multi line commands can now be executed from the Vi editor screen.

@ajinkya007
Copy link
Member Author

The steam-shell.vim and VisTeam.pike needs to be installed in the default location /usr/local/lib/steam/tools. This is done in the PR #26 as it incorporates changes in the societyserver-source branch.

@ajinkya007 ajinkya007 changed the title Issue#37: Integrate sTeam-shell into Vi Issue#37 Integrate sTeam-shell into Vi Jun 7, 2016
@Siddhant085
Copy link

write("hello world"); needs to be written as "write("hello world");". Such cases can be handled in the code.

@ajinkya007
Copy link
Member Author

The steam-shell.vim can now execute special characters which are entered as arguments to the steam-shell.pike script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants