mouse scroll in vim

On May 12, 2009, in linux, linux commands, by mahesh
0


The vim editor has lot features be explored, it takes mouse scroll events and allows the content to be scrolled. This post will be incomplete as I discuss only scrolling in xterm, but will update periodicalling on other terminals also.

For xterm, to add mouse scroll support to vim use the following command.
set mouse=a

For putty terminal, from windows use
set ttymouse=xterm2

To type the above command in vim type shift+; then the command

Add the command to ~/.vimrc to add scrolling by default

Share
Tagged with:
 



groupadd — Create a new group

Summary

The groupadd command creates a new group account using the values
specified on the command line and the default values from the system.

Example

# groupadd newgrp — Create a new group

# groupadd -g 600 newgrp — Create newgrp with specified Group ID.

# groupadd -f newgrp – Force flag. Don’t show error message.

Share
Tagged with:
 



alias – Create alias name for a command.

Summary
alias is Bash build-in command. This is very useful to create a simple
alias for a complex/long/frequent commands. Once alias created, you
can use alias to call the original command. This alias are deleted
after closing the shell session. For the next session, you have create
it again. So to avoid this problem, you add it in your .bashrc file.

Example
$ alias — Prints all alias commands

$ alias cls=clear — Alias for new user from DOS world.

$ alias ls=”ls -F –color=always” — Alias long ls command.

$ alias mycd=’cd a/b/c/d/e/f/h’ — Shortcut for long CD.

$ alias ls — Print the alias’ original command.

$ \ls – Skip alias and run the original command.

Share
Tagged with: