Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Vim tips and tricks


Login or Register to Reply

 
Thread Tools Search this Thread
# 30  
Quote:
Originally Posted by Howie Vahedi
Now I have to figure out how to switch from Insertion Mode to Command Mode Smilie
It is simple; just hit the escape key.
# 31  
Just another usefull vim tip, to customize your own skin :

To just view the setting, just use it with no argument :
Code:
:highlight

also shortened as
Code:
:hi

This will display the current settings.

To display the current setting of the Comment class, just enter:
Code:
:hi Comment

For example, if your comment lines appear in a Dark blue and you expect a lightblue instead (0,255,255) or #00ffff try :

Code:
:hi Comment ctermfg=6

You could then set your own settings in your $HOME/.vimrc ... activate :set syntax=on if necessary)

The different classes (Comment, Title, Constant, Special, ...) and much more, are documented at :
Vim documentation: syntax

Just play with the :highlight command , get use to it and enjoy !

Last edited by ctsgnb; 02-02-2017 at 06:54 AM..
# 32  
Quote:
Originally Posted by ctsgnb
cW:change the Whole line from the current cursor position (same as C )
not quite: The difference is what "word" means. "cw" (or any other command using "w" as a range assignment) will treat special characters as the end of the word, whereas "cW" will treat only whitespace (or line ends) as word delimiters. In the following text:

Code:
typeset foo=bar        # comment

if the cursor is under the "f" of "foo", then "cw" will replace "foo" with what you type afterwards, whereas "cW" will replace "foo=bar". To change the line from the cursor position to the line end use "C".

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 33  
Ok fixed ... Thanks bakunin for noticing this point Smilie
# 35  
in vim
set
:set ic
switch (toggle)
:set ic!
unset
:set noic

--- Post updated at 08:39 ---

I always use only one command (toggle), for example
:set nu!
Print line numbers
:set nu!
Print line nonumbers
This User Gave Thanks to nezabudka For This Post:
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Basic VI tricks
cokedude
I found a decent guide of VI basic tricks. This guide does expect you to have a decent understanding of VI. It does not go over very much beginner related. vi Manual... UNIX for Advanced & Expert Users
3
UNIX for Advanced & Expert Users
Very Importan - Vim Settings - Error while opening a File using vim
girija
I downloaded vim.7.2 and compiled the vim source . Added the vim binary path to PATH (Because iam not the root of the box) when i load the file using vim it throws me an error Error detected while processing /home2/e3003091/.vimrc: line 2: E185: Cannot find color scheme darkblue line...... Solaris
0
Solaris
Solaris tips and tricks
solaris_user
What do you think could we open new top topic with tips and tricks and to show to other users some tricks what do we know like dtrace , new virtual server , how to add new users etc. This is only suggestion... Post Here to Contact Site Administrators and Moderators
1
Post Here to Contact Site Administrators and Moderators

Featured Tech Videos