--- > You might be a notepad (emacs) user if... On October 21, we will take a humorous look at the deficiencies of inferior editors and throw into sharp relief the indisputable superiority of Vim. Along the way, we will expose the inadequate habits of programmers that use inferior editors and learn how to purge such habits with Vim's help. Disclaimer: after attending this meeting you may discover that you are never satisfied with any other editor. You will be torn between the eye-candy and pet features of IDEs and the power of a general purpose editor at every turn until you finally embrace the truth and shun other editors unilaterally. BYU, the UNIX User's Group, and/or I cannot be held responsible for any damages to your psyche that you may claim due to the inability to tolerate IDEs and inferior editors. We will however accept cookies. Flame retardant: Did I say above that emacs was an inferior editor? Did I? Think about that before you flame. ;-) I won't deny I will have a few emacs jokes handy... --- - You might be a notepad (pico) user if... - configuration - http://hans.fugal.net/vim - http://vim.org - :help - syntax highlighting - :syn on - :colo desert - navigation - hjkl - marks - tags - folding - automation - abbreviations - :abbr puts System.out.println - :abbr ,main public static void main(String[] args) - mappings - tab completion - | " InsertTabWrapper " (tab completion) " function! InsertTabWrapper(direction) let col = col('.') - 1 if !col || getline('.')[col - 1] !~ '\k' return "\" elseif "backward" == a:direction return "\" else return "\" endif endfunction inoremap =InsertTabWrapper ("backward") inoremap =InsertTabWrapper ("forward") - macros - You might be an emacs user if... - you think vim == vi - vimscript/perl/ruby/tcl/whatever vs. lisp - economy of screen - modal editing - ctrl-[, map ctrl to caps (and don't make the mcnabb mistake) - you don't have a ~/.inputrc - | set show-all-if-ambiguous on set completion-query-items 100 set editing-mode vi set horizontal-scroll-mode on - You might be a Visual Studio (IDE) user if... - cscope - ctags - You might be a vi user if... - visual mode - buffers, split - number prefixes - gvim --- | # ~/.vim/plugin/cscope_maps.vim if has("cscope") set cscopetag set nocscopeverbose " add any database in current directory if filereadable("cscope.out") cs add cscope.out " else add database pointed to by environment elseif $CSCOPE_DB != "" cs add $CSCOPE_DB endif set cscopeverbose set csqf=s-,g-,d-,c-,t-,e-,f-,i- map s :cs find s =expand("") map g :cs find g =expand("") map d :cs find d =expand("") map c :cs find c =expand("") map t :cs find t =expand("") map e :cs find e =expand("") map f :cs find f =expand("") map i :cs find i =expand("") endif