LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs > omgiamlinux
User Name
Password

Notices

VIM dedication A place where a windows user keeps notes on how he struggles to command VIM to better his or her life.
Old

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)
...
LQ Newbie
Posted in VIM dedication
Views 377 Comments 0 omgiamlinux is offline
Old

Day 2: Getting jiggy with it (VIM)

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

ref: http://ss64.com/vi.html



VIM CODE FOLDING http://smartic.us/2009/04/06/code-folding-in-vim/
$ vim ~/.vimrc
Code:
"folding settings
set foldmethod=indent   "fold based on indent
set foldnestmax=10      "deepest fold is 10 levels
set nofoldenable        "dont fold by default
set foldlevel=1         "this is just what i use
za - fold/unfold the entire...
LQ Newbie
Posted in VIM dedication
Views 317 Comments 0 omgiamlinux is offline
Old

Day 1: My very first (and most terrible) VI notes

Posted 10-27-2011 at 08:29 PM by omgiamlinux
Updated 10-27-2011 at 08:37 PM by omgiamlinux

Notes: VI is a very slow thing to learn, but it's well worth taking the time learning it. It makes working on code, almost like a very fun logic game. It's also the fastest way to program in any language (well... faster than 'notepad' style text editors hands down anyway). The only reason everyone doesn't use VIM and EMACS is because the software really does take quite a while to get the hang of. Anyway, each blog entry I make on VIM, you should mul over a lot and practice until you get the...
LQ Newbie
Posted in VIM dedication
Views 302 Comments 0 omgiamlinux is offline

  



All times are GMT -5. The time now is 05:22 AM.

Main Menu

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