Mercurial > ec-dotfiles
comparison rc/vimrc @ 743:2b0112948102 default tip
[vim] better viminfo location
author | nanaya <me@nanaya.net> |
---|---|
date | Mon, 03 Feb 2025 18:34:55 +0900 |
parents | 18ddd90a9a1b |
children |
comparison
equal
deleted
inserted
replaced
742:3b001c615c36 | 743:2b0112948102 |
---|---|
151 autocmd BufRead,BufNewFile * setlocal formatoptions-=o | 151 autocmd BufRead,BufNewFile * setlocal formatoptions-=o |
152 endif | 152 endif |
153 | 153 |
154 if has('autocmd') | 154 if has('autocmd') |
155 "Restore cursor position | 155 "Restore cursor position |
156 set viminfo='50,\"1000,<1000,:100,%,h,n~/.viminfo | 156 set viminfo='50,\"1000,<1000,:100,%,h,n~/.local/state/vim/viminfo |
157 function! ResCur() | 157 function! ResCur() |
158 if line("'\"") <= line("$") | 158 if line("'\"") <= line("$") |
159 normal! g`" | 159 normal! g`" |
160 return 1 | 160 return 1 |
161 endif | 161 endif |