Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Formatting from Notepad++ to Vi Post 302703041 by horhif on Wednesday 19th of September 2012 09:35:17 AM
Old 09-19-2012
Formatting from Notepad++ to Vi

Hi,

just quick question, I currently type up my scripts in Notepad++ and then copy them into my file (in VI).

However, i've noticed that all the lines get messed up and it becomes difficult to read the script.

so i've to spend time then using '\' at the end of lines etc and re-formatting the file to make it look presentable.

what does everyone else use?

i've now set Notepad++ to show a line that i think matches the width of my Vi file (settings - preferences - editing - show vertical line - line mode - show vertical line.....and set that to about 124)

anyone recommend anything else?

thanks
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Strange Characters After Using Notepad

Hello all, I'm new to UNIX and new to this forum, so forgive my lack of knowledge. I'm new with editing in vi so I FTP scripts to a Windows machine and edit the script in notepad (when I need to do something quickly). Sometimes when I FTP the script back to the UNIX box, strange characters... (4 Replies)
Discussion started by: dgower2
4 Replies

2. UNIX Desktop Questions & Answers

Wordpad or Notepad?

I am new to using UNIX and after uploading a new script to UNIX from Windows using FTP, the script doesn't always work. It seems this depends on the text editor I use and the transfer type. I understand all scripts should be transferred using ASCII, but can you advise which is the best text editor... (12 Replies)
Discussion started by: Heidi.Ebbs
12 Replies

3. UNIX for Dummies Questions & Answers

Output of the script in notepad

Hi All, I want to show my output for the script to notepad.Anybody know what is the command to do this... Thanks.. (7 Replies)
Discussion started by: mastercar
7 Replies

4. Windows & DOS: Issues & Discussions

PERL: Running script from Notepad++

I'm not sure if this forum covers PERL issues but here I go: I'm trying to run a PERL script from Notepadd++. I've entered the path of the script from the run command but it is only opening a blank window. Is there anything else that needs to be done when using the 'RUN' feature of Notepad++? (2 Replies)
Discussion started by: millsy5
2 Replies

5. Windows & DOS: Issues & Discussions

UNIX and notepad++

I connect to my office server using ftp option in notepad++ I am not able to open directory's with out setting my clear case view in the notepad++ Hence pls help me in setting the view in notepad++ so that it can read all the files and directorys (6 Replies)
Discussion started by: Syed Imran
6 Replies
TOMATOES(6)															       TOMATOES(6)

NAME
tomatoes - Tomatoes smashing game SYNOPSIS
tomatoes SYNOPSIS
I Have No Tomatoes is an extreme leisure time activity idea of which culminates in the following question: How many tomatoes can you smash in ten short minutes? If you have the time to spare, this game has the vegetables just waiting to be eliminated! NOTES
Before starting the game, you should know that the game uses OpenGL for hardware accelerated 2d & 3d graphics. This means that you must have fully OpenGL compatible graphics card in your PC. Your card also needs to be able to use 512x512 textures, and this rules out Voodoo 1, 2 and 3 (limited to 256x256 textures). As for the CPU and memory requirements, I'd recommend something along the lines of Pentium II (or an AMD equivalent) and 64MB. The game works on much slower systems as well, as the game skips frames if the system can't keep up with the 60 FPS rate; this ensures that the game runs at the right speed, you just don't get very smooth animation. This game features solid game play with beautiful OpenGL API driven isometric 3d graphics and nice music. It also includes a MOD player, and you can use your own MOD-type music in the game background. Just copy your XM/S3M/IT/MOD - files to the music subdirectory of I Have No Tomatoes and the game plays them. You can press F1 to skip a song when ingame. There's room for 128 MODs. Btw, if you don't have any MOD music, ModArchive (www.modarchive.com <URL:www.modarchive.com>) is a good place to download some. CONFIGURATION
You may also want to set some options, such as the screen resolution and color depth. By default, I Have No Tomatoes starts fullscreen in 800x600 resolution, 32bpp. To fine-tune the preferences to suit your PC better, open the file config.cfg in a text editor (Notepad will do). Under Unix this file is stored in ~/.tomatoes/. Most likely you'll be interested in these lines: o video_mode = 800 x 600 o video_mode_color_depth = 32 o video_mode_fullscreen = 1 o sound_enabled = 1 To set the resolution, change the video_mode - line (some common resolutions include 640 x 480, 800 x 600, 1024 x 768). Most common color depths are 16 and 32, and sometimes 24. video_mode_fullscreen controls whether the game starts in fullscreen or in a window. When running in windowed mode, you can use any resolution you want (the 4:3 aspect ratio modes are still preferred). If you don't have a sound card (or want to turn the sounds off), set sound_enabled to 0 (zero). Finally, if you want to know how many frames your system draws per second (FPS), set show_fps to 1. FPS should be over 60 for smooth anima- tion. The default keys can be changed from the Options menu in game, so no need change them here. When you're satisfied with the config.cfg settings, by all means, proceed to start the game :) AUTHOR
You can contact the author by email at <lsoft@mbnet.fi>. Notice that since 12th of July, 2004 I've been in the army, so don't expect imme- diate responses. Be patient :) This man page was compiled by Helge Kreutzmann <debian@helgefjell.de> for the GNU/Linux project but it may be used by everybody else as well. SEE ALSO
Tomates homepage: http://tomatoes.sourceforge.net <URL:http://tomatoes.sourceforge.net> tomatoes 23 May 2012 TOMATOES(6)
All times are GMT -4. The time now is 04:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy