"Peter Chr. Hansen" <[EMAIL PROTECTED]> on Tue, Mar 17, 1998 at 07:06:50PM
+0100:
> I have seen people using vim commands on the commandline like using esc k
> and then use j and k to go through the command history,
Interesting, I couldn't find out how to do this. I've always used the
arrow keys for the command line, and various other keys outlined in the
help files. No where does it mention using hjkl ok the command-line.
> I really hope that someone can help me. futhermore I would like to find a
> vim howto so that I can setup vi to beable to remember all commands and
> searches made in the editor.
Look in the vim help files, probably under the section `options' or
something. What you're looking for is the settings for the viminfo
file.
FWIW, here is my .vimrc, which admittedly still needs alot of work. And
note that it was written on a 132-column screen.
let bash_is_sh = 1
let highlight_balanced_quotes = 1
let highlight_function_name = 1
highlight notation cterm=bold ctermfg=cyan ctermbg=black
highlight error cterm=bold ctermfg=red ctermbg=black
highlight search cterm=none ctermfg=black ctermbg=white
highlight lastsearch cterm=none ctermfg=cyan ctermbg=black
highlight paging cterm=bold ctermfg=cyan ctermbg=black
highlight modetype cterm=bold ctermfg=magenta ctermbg=blue
highlight numbered cterm=bold ctermfg=green ctermbg=black
highlight question cterm=bold ctermfg=yellow ctermbg=black
highlight status cterm=bold ctermfg=green ctermbg=blue
highlight vismode cterm=bold ctermfg=blue ctermbg=magenta
highlight warning cterm=bold ctermfg=yellow ctermbg=black
set viminfo='50,f1,\"32760,:32760,/32760,n~/.viminfo
set autoindent
set background=dark
set backspace=2
set bioskey
set cindent
set cmdheight=1
set cpt=.,b,u
set cpoptions=aAceEFjr
set digraph
set errorbells
set noesckeys
set fileformats=unix,dos,mac
set
highlight=@:notation,e:error,i:search,l:lastsearch,m:paging,M:modetype,n:numbered,r:question,s:status,v:vismode,w:warning
set history=5000
set ignorecase
set incsearch
set infercase
set joinspaces
set laststatus=2
set maxmem=1024
set maxmemtot=24576
set modeline
set ruler
set scrolloff=9999
set showbreak=<--
set showcmd
set showmatch
set showmode
set smartcase
set smartindent
set textwidth=0
set nottybuiltin
set ttyfast
set undolevels=32760
set updatecount=80
set updatetime=20000
set verbose=0
set visualbell
set whichwrap=b,s,h,l
syntax on
""" mappings """"""""""""""""""""""""""""""""""""""
cmap killindent :set nosmartindent<CR>:set noautoindent<CR>:set nocindent<CR>:"indents
killed
cmap restoreindent :set smartindent<CR>:set autoindent<CR>:set cindent<CR>:"indents
restored
cmap spam :insert<CR>remove<CR><C-c>:x<CR>
ab ki :killindent
ab ri :restoreindent
--
Scott
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.