LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-04-2018, 08:38 AM   #1
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,927
Blog Entries: 45

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Arrow Turn your vim editor into a productivity powerhouse


Hi,

Turn your vim editor into a productivity powerhouse
Quote:

EDIT Editor's note: The headline and article originally referred to the "vi editor." It has been updated to the correct name of the editor: "vim."
03 Sep 2018 Girish Managoli

A versatile and powerful editor, vi includes a rich set of potent commands that make it a popular choice for many users. This article specifically looks at commands that are not enabled by default in vi but are nevertheless useful. The commands recommended here are expected to be set in a vi configuration file. Though it is possible to enable commands individually from each vi session, the purpose of this article is to create a highly productive environment out of the box.
Hope this helps.
Have fun & enjoy!

Last edited by onebuck; 09-10-2018 at 07:19 AM. Reason: typo and correction note
 
Old 09-06-2018, 01:44 PM   #2
dopocaffe
LQ Newbie
 
Registered: Jan 2017
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by onebuck View Post
Hi,

Turn your vi editor into a productivity powerhouse
Hope this helps.
Have fun & enjoy!
I just took a look and implemented a few of the ideas, thanks for submitting!
 
Old 09-07-2018, 08:40 AM   #3
Beryllos
Member
 
Registered: Apr 2013
Location: Massachusetts
Distribution: Debian
Posts: 529

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
I was "forced" to learn vi in the 1990s and I wasn't very happy about it at the time. Today I'm glad I learned it, and of course I still use it, as the need arises.

Thanks for posting the great article.
 
Old 09-07-2018, 08:56 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,249

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
Every vimrc should start with the following these days:

Code:
scriptencoding utf-8

if filereadable(expand('$VIMRUNTIME/defaults.vim'))
    unlet! g:skip_defaults_vim
    source $VIMRUNTIME/defaults.vim
endif
That starts you with the new default settings.
 
1 members found this post helpful.
Old 09-07-2018, 08:01 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,927

Original Poster
Blog Entries: 45

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,
Thanks for pointing that out. I think new users of Gnu/Linux need input from experienced users. Any input to new users is a positive and we as experienced user have a tendency to forget our early years and fail to provide such by over looking our previous experiences.

Hope this helps.
Have fun & enjoy!
 
Old 09-10-2018, 03:46 AM   #6
YesItsMe
Member
 
Registered: Oct 2014
Posts: 916

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
The headline is wrong (and fixed in the original article). The number of people here who use vi instead of Vim or (the amazing) nvi would be limited anyway.
 
Old 09-10-2018, 07:25 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,927

Original Poster
Blog Entries: 45

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

Thanks!

Corrected.

I still use vi and it can be found on most Gnu/Linux or UNIX. Moving between vi and vim should be transparent.
 
1 members found this post helpful.
Old 09-10-2018, 07:33 AM   #8
YesItsMe
Member
 
Registered: Oct 2014
Posts: 916

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
More or less. If you plan to move from one to the other (which makes sense in both directions), Vim has a vi mode to make it easier:

Code:
:set compatible
 
  


Reply

Tags
commands, editor, vi, vim, vimrc



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Turn your vi editor into a productivity powerhouse LXer Syndicated Linux News 0 09-03-2018 01:00 PM
The PowerHouse, that is Linux! Hitboxx General 3 04-26-2008 07:16 PM
LXer: Asterisk: More Than 'Just' a PBX Powerhouse? LXer Syndicated Linux News 0 04-10-2008 03:30 PM
LXer: Turn your SOHO router into a powerhouse with DD-WRT LXer Syndicated Linux News 0 09-27-2006 01:33 AM
LXer: Turning your PC into a multimedia powerhouse LXer Syndicated Linux News 1 12-10-2005 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration