vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   General Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=189)
-   -   Learning the vi Editor (https://vborg.vbsupport.ru/showthread.php?t=49955)

amykhar 03-10-2003 10:00 PM

Learning the vi Editor
 
Sometimes, it becomes necessary to create a cron script or tinker with files on the server slightly. Most linux servers have an editor called vim that you can use. It is a decent text editor, but if you have never used it before, it can be overwhelming. In fact, I have had my board for 2 years now, and I have just now got brave enough to play with vim.

On some systems, at the shell you can type vimtutor and take a quick tutorial on how to use the editor. However, not all systems have the tutorial set up correctly, and not everybody wants to take a tutorial "long-distance" as it were.

The nice thing is, vim is available for Windows and can be downloaded here:

http://www.vim.org/download.php

There is an installation .exe file which sets vim up in a heartbeat on your PC. It also sets up a GUI version, but you will want to practice using the command line version.

By default, it is installed in the c:\vim directory. The tutorial is found in the c:\vim\vim61 directory. So, at a dos prompt, change to that directory and then type vimtutor. It's that simple. In a matter of minutes, you will learn how to open files, save files, quit without saving, insert and delete characters, and more. Then, after practicing on your local machine, you are ready to edit any files you need on your server.

Give it a shot. It's really not that hard once you learn the commands.

Amy

bharvey42 03-11-2003 02:56 PM

what about pico?

amykhar 03-11-2003 03:01 PM

Quote:

Originally posted by bharvey42
what about pico?
Haven't tried it. Normally on unix machines I would use emacs, but that doesn't seem to be a default app installed on most hosts.

Amy

filburt1 03-11-2003 03:04 PM

[high]* filburt1 bows down to Pico while mooning vi in the process ;)[/high]

amykhar 03-11-2003 03:10 PM

Off to download pico and play :D I'll be back with an informed opinion later. ;)

Amy


All times are GMT. The time now is 01:17 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01305 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete