" File: likepico.vim " Last update: Thu Feb 04 04:04:04 CET 1999 " Availability: This file is available as " " (mirror) " Size: "small" :-) " Purpose: Setup file for the editor Vim (Vi IMproved) " Emulate commands from the editor "pico" " Usage: From within Vim use the command ":source likepico.vim". " Author: Sven Guckes guckes@vim.org (guckes@math.fu-berlin.de) " " See also: http://www.math.fu-berlin.de/~guckes/pico/ " ======================== map 0 map $ " map :wq map :x " " Formatting the current paragraph according to " the current 'textwidth' with ^J (control-j): imap gqip map gqip " Some people may prefer "gqap" instead of "gqip". " The difference is that with "gqap" the following block of " empty lines also get "squeezed" to just one empty line. " " Uncomment the following autocommands to simulate further pico features: " Set the formatoptions and disallow modelines to be executed: " autocmd! BufRead /tmp/pico.* set fo=tcq2 mls=0 " Start in insert mode: " autocmd BufRead /tmp/pico.* norm i " " TODO: " ^T to "send" data through/to a program (aka "filtering" and "piping") " ^X to invoke spell checker. " I might tackle these when I get *really* bored. ;-) sp %:p:h/pico.help se ro :exe "normal " . line("$") . "\_" :exe "normal " "EOF