
-----------------------------------
Martin
Thu Mar 30, 2006 9:16 pm

ViM or EMACS?
-----------------------------------
If there's a debate on the internet more heated than ninjas versus pirates, it is ViM versus EMACS. For those not familiar with what I'm talking about, ViM is an incredibly powerful text editor and EMACS is probably the worst program ever written. EMACS Makes All Computing Slow.

But seriously, if you use either post your config file here for the world to see.

My ~/.vimrc
syntax on              "Syntax highlighting
set number             "Show line numbers
set nobackup           "Stop making the ~ files
set nocompatible       "No, we don't want it to be like vi
set noerrorbells       "Beeping sucks
set expandtab          "Use spaces instead of tabs
set tabstop=4          "4 spaces per tab 
set fileformat=unix    "Choice of EOL format
set magic              "Use extended regex
set report=0           "Report when N lines are changed (ie. all)
set showmatch          "Show matching ( )
set nowrap             "Don't wrap text that's too long
set ruler              "Show line number information on the bottom
set autoindent         "Keep indentation at a the same level

"Here we make backspace and delete work properly
noremap Bs Del
noremap Del Bs
noremap!Bs Del
noremap!Del Bs
set bs=2

-----------------------------------
timmytheturtle
Fri Mar 31, 2006 12:18 am


-----------------------------------
here's my ~/.vimrc




I use nano

-----------------------------------
md
Fri Mar 31, 2006 8:35 am


-----------------------------------
I too prefer nano. I even installed a copy on the UW server so I wouldn't have to deal with vim or emacs.

When I do have to choose though I definitely prefer vim to emacs.

[edit] It seems that many people are missing out on the bliss that is *nix command line text editors...

-----------------------------------
Martin
Tue Jun 06, 2006 1:20 am


-----------------------------------
update

syntax on
set number
set nobackup
set nocompatible
set noerrorbells
set expandtab
set tabstop=2
set shiftwidth=2
set fileformat=unix
set magic
set report=0
set showmatch
set nowrap
set ruler
set autoindent
set smartindent
set vb t_vb=
set virtualedit=all
set mouse=a
set ignorecase
set smartcase
set incsearch
set showmode

filetype on

noremap Bs Del
noremap Del Bs
noremap!Bs Del
noremap!Del Bs
set bs=2


-----------------------------------
Dan
Tue Jun 06, 2006 1:31 am


-----------------------------------
I use pico for some reason.....

-----------------------------------
OneOffDriveByPoster
Fri Apr 11, 2008 5:10 pm

Re: ViM or EMACS?
-----------------------------------
Looks like no one here likes Esc-Meta-Alt-Shift.

My ~/.vimrc:set nu sw=4 ts=8 ai sta si ru
if &term =~ "xterm"
    set t_Co=256
    set t_AF=1%dm
    set t_AB=1%dm
endif
colorscheme elflord
syntax on... and now someone does...

-----------------------------------
haskell
Fri Apr 11, 2008 5:18 pm

RE:ViM or EMACS?
-----------------------------------
Psssh... I run my world with EMACS. Who needs the shell, IM clients, IRC, web browsers, games, code editors, etc... when you have EMACS, which runs them all in it? Not to mention SLIME for the LISP user...


(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(case-fold-search t)
 '(current-language-environment "Latin-1")
 '(default-input-method "latin-1-prefix")
 '(global-font-lock-mode t nil (font-lock))
 '(show-paren-mode t nil (paren))
 '(transient-mark-mode t))
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 )

;; Superior LISP Interaction Mode(SLIME)
(setq inferior-lisp-program "C:/clisp-2.41/clisp.exe")
(add-to-list 'load-path "C:/emacs-21.3/modes/slime")
(require 'slime)
(slime-setup)

;; Cc-Mode
(autoload 'awkmode "cc-mode" nil t)

;; Clean-Mode
(setq load-path (cons "C:/emacs-21.3/modes/clean-mode" load-path))
(setq auto-mode-alist
      (append auto-mode-alist
              '(("\\.icl$"  . clean-mode)
                ("\\.dcl$"  . clean-mode))))
(autoload 'clean-mode "clean-mode" t)

;; Haskell-Mode
(load "C:/emacs-21.3/modes/haskell-mode-2.1/haskell-site-file")
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)

;; Python-Mode
(setq load-path (cons "C:/emacs-21.3/modes/python-mode" load-path))
(setq auto-mode-alist
      (append auto-mode-alist
              '(("\\.py$"  . python-mode)
                ("\\.pyw$"  . python-mode))))
(autoload 'python-mode "python-mode" t)

;; Ruby-Mode
(setq load-path (cons "C:/emacs-21.3/modes/ruby-mode" load-path))
(setq auto-mode-alist
      (append auto-mode-alist
              '(("\\.rb$"  . ruby-mode)
                ("\\.rbw$"  . ruby-mode))))
(autoload 'ruby-mode "ruby-mode" t)

;; O'Caml-Mode
(setq auto-mode-alist
          (cons '("\\.ml

-----------------------------------
OneOffDriveByPoster
Fri Apr 11, 2008 5:21 pm

Re: ViM or EMACS?
-----------------------------------
LISP!  Gah!  My eyes!  EMACS is "emacs -batch -l dunnet" to me.

-----------------------------------
btiffin
Fri Apr 11, 2008 5:57 pm

Re: ViM or EMACS?
-----------------------------------
Cygwin Settings for rxvt;
set term=cons25

If I ever meet Richard Stallman, I'll shake his hand and thank him ... then give him the great big raspberry for Emacs.
If I ever meet Bill Joy, I'll shake his hand and thank him.

But, everyone should know Lisp ... just because ... it's old and needs special care.
Cheers

-----------------------------------
jernst
Fri Apr 11, 2008 8:27 pm


-----------------------------------
I too prefer nano. 

ah nano 