Computer Science Canada

ViM or EMACS?

Author:  Martin [ Thu Mar 30, 2006 9:16 pm ]
Post subject:  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
code:
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

Author:  timmytheturtle [ Fri Mar 31, 2006 12:18 am ]
Post subject: 

here's my ~/.vimrc

Quote:



I use nano

Author:  md [ Fri Mar 31, 2006 8:35 am ]
Post subject: 

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...

Author:  Martin [ Tue Jun 06, 2006 1:20 am ]
Post subject: 

update

code:
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

Author:  Dan [ Tue Jun 06, 2006 1:31 am ]
Post subject: 

I use pico for some reason.....

Author:  OneOffDriveByPoster [ Fri Apr 11, 2008 5:10 pm ]
Post subject:  Re: ViM or EMACS?

Looks like no one here likes Esc-Meta-Alt-Shift.

My ~/.vimrc:
code:
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...

Author:  haskell [ Fri Apr 11, 2008 5:18 pm ]
Post subject:  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...

Lisp:

(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[iyl]?$" .  caml-mode) auto-mode-alist))

;; you should probably comment the next line or replace ~remy by another path
(setq load-path (cons "C:/emacs-21.3/modes/ocaml-mode" load-path))

(autoload 'caml-mode "ocaml" (interactive)
  "Major mode for editing Caml code." t)
(autoload 'camldebug "camldebug" (interactive)
  "Debug caml mode")

;; Emacs IRC Client
(add-to-list 'load-path "C:/emacs-21.3/modes/erc-5.1.2")
(require 'erc)

;; W3M-Mode
(add-to-list 'load-path "C:/site-lisp/w3m")
(add-to-list 'exec-path "C:/site-lisp/w3m")
(require 'w3m-load)

Author:  OneOffDriveByPoster [ Fri Apr 11, 2008 5:21 pm ]
Post subject:  Re: ViM or EMACS?

LISP! Gah! My eyes! EMACS is "emacs -batch -l dunnet" to me.

Author:  btiffin [ Fri Apr 11, 2008 5:57 pm ]
Post subject:  Re: ViM or EMACS?

Cygwin Settings for rxvt;
code:
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

Author:  jernst [ Fri Apr 11, 2008 8:27 pm ]
Post subject: 

md @ Fri Mar 31, 2006 8:35 am wrote:
I too prefer nano.


ah nano <3

Author:  md [ Fri Apr 11, 2008 10:15 pm ]
Post subject:  RE:ViM or EMACS?

Man this is an old thread...

I still use nano Wink

Author:  apomb [ Tue May 27, 2008 11:19 pm ]
Post subject:  RE:ViM or EMACS?

I know this is an old thread, but i have to say nano, or in OpenVMS edit.

Author:  rizzix [ Tue May 27, 2008 11:22 pm ]
Post subject:  RE:ViM or EMACS?

Vim.

Author:  Unforgiven [ Tue Nov 18, 2008 11:44 pm ]
Post subject:  RE:ViM or EMACS?

Between those two, Vim without a question. I don't have anything against EMACS myself, just not my thing.


: