From b27c41a75b526452937b36b403b7c3e834b0941c Mon Sep 17 00:00:00 2001 From: surdeus Date: Wed, 14 Jun 2023 19:47:23 +0300 Subject: [PATCH] No swap files for vim. --- dot/file/vimrc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dot/file/vimrc b/dot/file/vimrc index ecb98b4..de9584c 100644 --- a/dot/file/vimrc +++ b/dot/file/vimrc @@ -8,6 +8,7 @@ set mouse=a endif " Set. + set noswapfile set nowrap set number set autoindent @@ -41,8 +42,8 @@ " Syntax. syntax on " Backup. - set swapfile - set dir=~/tmp + " set swapfile + " set dir=~/tmp " Maps. " Folds. noremap <2-LeftMouse> za @@ -93,9 +94,9 @@ " When editing a file, always jump to the last known cursor position. " Don't do it when the position is invalid or when inside an event handler " (happens when dropping a file on "gvim"). - autocmd BufReadPost * - \ if line("'\"") > 0 && line("'\"") <= line("$") | - \ exe "normal g`\"" | - \ endif + " autocmd BufReadPost * + " \ if line("'\"") > 0 && line("'\"") <= line("$") | + " \ exe "normal g`\"" | + " \ endif " Encoding. set encoding=utf-8