|
|
@@ -24,6 +24,19 @@ endif
|
|
|
" Source the vimrc file after saving it
|
|
|
autocmd! bufwritepost .vimrc source $MYVIMRC
|
|
|
|
|
|
+" Remember last location in file
|
|
|
+" Only do this part when compiled with support for autocommands
|
|
|
+if has("autocmd")
|
|
|
+ augroup redhat
|
|
|
+ " 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
|
|
|
+ augroup END
|
|
|
+endif
|
|
|
|
|
|
""""""""
|
|
|
"" Formatting
|
|
|
@@ -58,7 +71,6 @@ endif
|
|
|
|
|
|
set number "show line numbers
|
|
|
set ruler "show row,col count in status line
|
|
|
-set rulerformat=%20(%2*%<%f%=\ %m%r\ %3l\ %c\ %p%%%)>)
|
|
|
set laststatus=2 "always show a status line
|
|
|
|
|
|
if version >= 730
|