Aryeh M. Friedman, 2010-05-22 06:11:
> When I installed vim on my gentoo system it came with three defaults I 
> can't figure out how to turn off:
> 
>     1. Search highlighting

In /etc/vim/vimrc:
  set hlsearch

>     2. The above remembered from session to session

Do you mean the pattern or the highlighting is remembered? The
highlighting is gone after disabling it in 1.

>     3. Automatically moving me to the last edit in a file (if there is 
> one) when I open it

In /etc/vim/vimrc:
  " When editing a file, always jump to the last cursor position
  autocmd BufReadPost *
        \ if ! exists("g:leave_my_cursor_position_alone") |
        \     if line("'\"") > 0 && line ("'\"") <= line("$") |
        \         exe "normal g'\"" |
        \     endif |
        \ endif

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to