Browse Source

removed ruler formatting

cinaeco 14 years ago
parent
commit
2b93df2296
1 changed files with 13 additions and 1 deletions
  1. 13 1
      vim/vimrc

+ 13 - 1
vim/vimrc

@@ -24,6 +24,19 @@ endif
 " Source the vimrc file after saving it
 " Source the vimrc file after saving it
 autocmd! bufwritepost .vimrc source $MYVIMRC
 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
 "" Formatting
@@ -58,7 +71,6 @@ endif
 
 
 set number "show line numbers
 set number "show line numbers
 set ruler "show row,col count in status line
 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
 set laststatus=2 "always show a status line
 
 
 if version >= 730
 if version >= 730