How to use marks in Vim

来源:互联网 发布:python ascii转字符 编辑:程序博客网 时间:2024/05/17 23:44

http://vim.wikia.com/wiki/Using_marks

CommandDescriptionmaset mark a at current cursor location'ajump to line of mark a (first non-blank character in line)`ajump to position (line and column) of mark ad'adelete from current line to line of mark ad`adelete from current cursor position to position of mark ac'achange text from current line to line of mark ay`ayank text to unnamed buffer from cursor to position of mark a:markslist all the current marks:marks aBlist marks aB

CommandDescription]'jump to next line with a lowercase mark['jump to previous line with a lowercase mark]`jump to next lowercase mark[`jump to previous lowercase mark
CommandDescription`.jump to position where last change occurred in current buffer`"jump to position where last exited current buffer`0jump to position in last file edited (when exited Vim)`1like `0 but the previous file (also `2 etc)''jump back (to line in current buffer where jumped from)``jump back (to position in current buffer where jumped from)`[ or `]jump to beginning/end of previously changed or yanked text`< or `>jump to beginning/end of last visual selection
CommandDescription:delmarks adelete mark a:delmarks a-ddelete marks abcd:delmarks abxydelete marks abxy:delmarks aAdelete marks aA:delmarks!delete all lowercase marks for the current buffer (a-z)
0 0
原创粉丝点击