No edit summary |
(Change <tt> to <code>, perhaps also minor tweak.) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{review}} |
{{review}} |
||
+ | {{TipImported |
||
− | {{Tip |
||
|id=293 |
|id=293 |
||
+ | |previous=290 |
||
− | |title=remember where you had ended reading help |
||
+ | |next=294 |
||
− | |created= |
+ | |created=2002 |
|complexity=basic |
|complexity=basic |
||
|author=Max Ischenko |
|author=Max Ischenko |
||
|version=5.7 |
|version=5.7 |
||
|rating=2/2 |
|rating=2/2 |
||
+ | |category1= |
||
− | |text= |
||
+ | |category2= |
||
⚫ | |||
⚫ | |||
+ | <pre> |
||
⚫ | |||
+ | </pre> |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | ==References== |
||
− | .vimrc file: |
||
+ | *{{help|viminfo}} |
||
+ | *{{help|viminfo-file-marks}} |
||
⚫ | |||
− | |||
− | |||
⚫ | |||
− | |||
− | |||
− | |||
⚫ | |||
− | |||
− | |||
− | |||
⚫ | |||
− | |||
− | See [http://vimplugin.sf.net/cgi-bin/help?tag={{urlencode:'viminfo'}} :help 'viminfo'] and :help file-marks for more information. |
||
− | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
Perhaps a modification to allow 'H to open another window if a help window doesn't already exist might be useful here. Basically, the problem I had with this was that if i I hit 'H while editing a buffer, it replaced the buffer with the help file (though it DID take me to the right location, as you suggested it would) instead of opening a new window. |
Perhaps a modification to allow 'H to open another window if a help window doesn't already exist might be useful here. Basically, the problem I had with this was that if i I hit 'H while editing a buffer, it replaced the buffer with the help file (though it DID take me to the right location, as you suggested it would) instead of opening a new window. |
||
− | salmanhalim--AT--hotmail.com |
||
− | , July 30, 2002 11:56 |
||
---- |
---- |
||
− | What about |
+ | What about |
+ | <pre> |
||
− | nmap |
+ | nmap <F1> <C-W>s'H |
− | |||
+ | </pre> |
||
− | Max Ischenko |
||
− | , July 30, 2002 23:17 |
||
---- |
---- |
||
− | <!-- parsed by vimtips.py in 0.464771 seconds--> |
Latest revision as of 05:23, 13 July 2012
Tip 293 Printable Monobook Previous Next
created 2002 · complexity basic · author Max Ischenko · version 5.7
You could jump to the last place you had been while reading Vim help files if you add this to your vimrc file:
au BufLeave * if &ft == "help" | mark H | endif
Then use 'H
to go to the mark H.
To work between Vim runs 'viminfo' option should be setup to save file marks.
References[]
Comments[]
Perhaps a modification to allow 'H to open another window if a help window doesn't already exist might be useful here. Basically, the problem I had with this was that if i I hit 'H while editing a buffer, it replaced the buffer with the help file (though it DID take me to the right location, as you suggested it would) instead of opening a new window.
What about
nmap <F1> <C-W>s'H