LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs > omgiamlinux
User Name
Password

Notices

Rate this Entry

Day 3: VIM and buffers!

Posted 10-27-2011 at 08:40 PM by omgiamlinux

ref: http://www.worldtimzone.com/res/vi.html

With buffers, vim makes it easy to switch between multiple files.

Code:
:e filename  - open a file in a new buffer

:ls   - list buffers


:b 1  - switch to the first buffer

:b name - switch to a buffer whose name begins with /name/

:b#   - switch to the previously edited buffer

:bd   - delete a buffer (close file)


:sp filename  - Open a file in a new buffer and split window

ctrl+ww       - switch between windows
ctrl+wq       - quit a window


ctrl+L, ctrl+G  - redraw screen, show filename and position
Posted in VIM dedication
Views 402 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:38 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration