Author: tempforever Date: To: Devuan List Subject: Re: [DNG] Some minor annoyances
Edit your ~/.vimrc file.
For indentation, add
filetype indent on
this part was found in /usr/share/vim/vim90/defaults.vim
you can just copy it into ~/.vimrc also
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid, when inside an event handler
" (happens when dropping a file on gvim) and for a commit message (it's
" likely a different one than last time).
autocmd BufReadPost *
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
\ | exe "normal! g`\""
\ | endif
Walter Dnes wrote: > 2) On Gentoo, vim would return to the line where it had been when I left
> the previous edit session. In Devuan. vim always starts at the first
> line. Also, when editing a bash script, if a line is indented, hitting
> {RETURN} will result in the new line indented; not on Devuan. How do I
> get that back?
>
>