OT: vim vyreseno
Pavel Lisy
pali na tmapy.cz
Úterý Červen 4 15:28:01 CEST 2002
On Út, 2002-06-04 at 15:14, Peter Surda wrote:
> On Tue, Jun 04, 2002 at 02:51:14PM +0200, Pavel Lisy wrote:
> > Nevite nekdo jak se ve vimu nastavi, aby se pri otevirani souboru
> > skocilo na naposledy editovane misto, nejak to v dokumentaci nemohu
> > najit.
> Hmm neviem, mne to robi automaticky (RH 7.x).
>
> > Diky
> >
> > Pavel
> Bye,
>
Tak uz jsem to nasel: ve /usr/share/vim/vim60/macros/vimrc jsou to radky
if has("autocmd")
" In text files, always limit the width of text to 78 characters
autocmd BufRead *.txt set tw=78
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif
endif
konktretne exe "normal g'\""
diky za snahu
Pavel
--
Pavel Lisy <pali na tmapy.cz>
T-MAPY spol. s r.o., http://www.tmapy.cz
Nezvalova 850, Hradec Kralove, 50003
tel: +420-49-5513335 fax: +420-49-5513371
O mapach vime vse: http://www.tmapserver.cz
Další informace o konferenci Linux