Mercurial > vim
comparison runtime/doc/eval.txt @ 11518:63b0b7b79b25
Update runtime files.
commit https://github.com/vim/vim/commit/3ec574f2b549f456f664f689d6da36dc5719aeb9
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 13 18:12:01 2017 +0200
Update runtime files.
Includes changing &sw to shiftwidth() for all indent scripts.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 13 Jun 2017 18:15:04 +0200 |
parents | 46bbef0ee9a6 |
children | 57c452316da1 |
comparison
equal
deleted
inserted
replaced
11517:01330ca5f7f8 | 11518:63b0b7b79b25 |
---|---|
1 *eval.txt* For Vim version 8.0. Last change: 2017 Jun 05 | 1 *eval.txt* For Vim version 8.0. Last change: 2017 Jun 13 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
5463 line("'t") line number of mark t | 5463 line("'t") line number of mark t |
5464 line("'" . marker) line number of mark marker | 5464 line("'" . marker) line number of mark marker |
5465 < *last-position-jump* | 5465 < *last-position-jump* |
5466 This autocommand jumps to the last known position in a file | 5466 This autocommand jumps to the last known position in a file |
5467 just after opening it, if the '" mark is set: > | 5467 just after opening it, if the '" mark is set: > |
5468 :au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif | 5468 :au BufReadPost * |
5469 \ if line("'\"") > 1 && line("'\"") <= line("$") && &ft !~# 'commit' | |
5470 \ | exe "normal! g`\"" | |
5471 \ | endif | |
5469 | 5472 |
5470 line2byte({lnum}) *line2byte()* | 5473 line2byte({lnum}) *line2byte()* |
5471 Return the byte count from the start of the buffer for line | 5474 Return the byte count from the start of the buffer for line |
5472 {lnum}. This includes the end-of-line character, depending on | 5475 {lnum}. This includes the end-of-line character, depending on |
5473 the 'fileformat' option for the current buffer. The first | 5476 the 'fileformat' option for the current buffer. The first |