diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-10 18:10:23 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-10 18:10:23 +1200 |
commit | f4a26d28e26d5ec4de07781196acce6ccab2784b (patch) | |
tree | 11469020237e3618700b539247c31427a4bcf8de /vim/vimrc | |
parent | Merge branch 'hotfix/v5.34.1' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-37a42823883489d50b6adc19a058713467b0ec1d.tar.gz (sig) dotfiles-37a42823883489d50b6adc19a058713467b0ec1d.zip |
Merge branch 'release/v5.35.0'v5.35.0
* release/v5.35.0:
Set a Unicode-friendly font on Windows
Edit :PutDate command to support a range
Correct a comment describing PutDate()
Restore my French
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -658,7 +658,7 @@ else endif " Don't let your editor's options be configured by content in arbitrary files! -" Down with modelines! Purge them from your files! +" Down with modelines! Purge them from your files! Écrasez l'infâme! " " I think that modelines are Vim's worst misfeature, and that 'nomodeline' " should be the default. It's enabled pretty bad security vulnerabilities @@ -1169,9 +1169,9 @@ nnoremap <Leader>C xnoremap <Leader>C \ :<C-U>setlocal cursorcolumn! cursorcolumn?<CR>gv -" Print an RFC2822-compliant date string -command! PutDate - \ put =strftime('%a, %d %b %Y %T %z') +" Insert an RFC2822-compliant date string into the buffer +command! -range PutDate + \ <line1>put =strftime('%a, %d %b %Y %T %z') " Set up a quick command-function pair to run a command with the UTC timezone, " in this case, for my date-printing mappings. Is there a nicer way to do |