Vim: Difference between revisions

From DWIKI
No edit summary
mNo edit summary
Line 1: Line 1:
=== links ===
== links ==
* [http://www.vim.org/ http://www.vim.org/] - vim homepage
* [http://www.vim.org/ http://www.vim.org/] - vim homepage
* [http://vimdoc.sourceforge.net/ http://vimdoc.sourceforge.net/] - the online source for Vim documentation
* [http://vimdoc.sourceforge.net/ http://vimdoc.sourceforge.net/] - the online source for Vim documentation


=== tips ===
== tips and tricks==
Commands are entered by hitting the Esc button then ":" and the setting, function, command etc.
Commands are entered by hitting the Esc button then ":" and the setting, function, command etc.


Enable/Disable line numbering:
===Enable/Disable line numbering===


   set nu!
   set nu!


Importing the output of '''ls -l''' into the current buffer:
===Importing the output of '''ls -l''' into the current buffer===


   r !ls -l
   r !ls -l


Sort lines 50 to 76 ussing the unix '''sort''' command:
===Sort lines 50 to 76 ussing the unix '''sort''' command===


   50,76 !sort
   50,76 !sort


Change syntax colours: find syncolor.vim
===Change syntax colours===
find syncolor.vim
 
===End highlighting search results
<f9> <esc>:nohlsearch<cr>

Revision as of 16:25, 27 March 2008

links

tips and tricks

Commands are entered by hitting the Esc button then ":" and the setting, function, command etc.

Enable/Disable line numbering

 set nu!

Importing the output of ls -l into the current buffer

 r !ls -l

Sort lines 50 to 76 ussing the unix sort command

 50,76 !sort

Change syntax colours

find syncolor.vim

===End highlighting search results

<f9> <esc>:nohlsearch<cr>