Skip to content

Commit

Permalink
Turn off vim swap file
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Metzner committed Oct 7, 2024
1 parent 2011be4 commit 205eb48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dot_vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ set softtabstop=2 "tab is 2 spaces
set scrolloff=3 "show 3 lines of context around cursor
set laststatus=2 "always display statusline
set nocompatible "disable the legazy
set noswapfile "disable swap files



" syntax enable "syntax colors
" filetype plugin indent on "indentation by filetype
Expand Down Expand Up @@ -61,9 +64,6 @@ set clipboard^=unnamedplus
:command W w
:command Q q

" disable swap files
" set noswapfile

" strip whitespaces
:nnoremap <silent> <F5> :let _s=@/ <Bar> :%s/\s\+$//e <Bar> :let @/=_s <Bar> :nohl <Bar> :unlet _s <CR>

Expand Down

0 comments on commit 205eb48

Please sign in to comment.