LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

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 397 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 332 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 314 Comments 0 omgiamlinux is offline
Old

HR webserver setup for deploying rails on my shared webhost

Posted 10-27-2011 at 08:18 PM by omgiamlinux
Updated 10-27-2011 at 08:22 PM by omgiamlinux

Executive Summary:
I. To install
a) Add the line [inline]gem 'thin'[/inline] to your Gemfile
b) And setup the restart script.

II. To start (must use your real port number)
Code:
 $  bundle exec thin start -e production -p 1**** -d
III. To stop
Code:
 $  bundle exec thin stop
IV. To restart
Code:
 $  ~/./script/restart-thin.sh





1) Designate an application port
...
LQ Newbie
Views 282 Comments 0 omgiamlinux is offline
Old

installed git on webhost

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

I installed git on my webhost using the below suggestions.

Here's how to install git on a webhost.
LQ Newbie
Views 179 Comments 0 omgiamlinux is offline

  



All times are GMT -5. The time now is 11:28 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