No swap files for vim.
This commit is contained in:
parent
71962a71c5
commit
b27c41a75b
1 changed files with 7 additions and 6 deletions
|
@ -8,6 +8,7 @@
|
||||||
set mouse=a
|
set mouse=a
|
||||||
endif
|
endif
|
||||||
" Set.
|
" Set.
|
||||||
|
set noswapfile
|
||||||
set nowrap
|
set nowrap
|
||||||
set number
|
set number
|
||||||
set autoindent
|
set autoindent
|
||||||
|
@ -41,8 +42,8 @@
|
||||||
" Syntax.
|
" Syntax.
|
||||||
syntax on
|
syntax on
|
||||||
" Backup.
|
" Backup.
|
||||||
set swapfile
|
" set swapfile
|
||||||
set dir=~/tmp
|
" set dir=~/tmp
|
||||||
" Maps.
|
" Maps.
|
||||||
" Folds.
|
" Folds.
|
||||||
noremap <2-LeftMouse> za
|
noremap <2-LeftMouse> za
|
||||||
|
@ -93,9 +94,9 @@
|
||||||
" When editing a file, always jump to the last known cursor position.
|
" 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
|
" Don't do it when the position is invalid or when inside an event handler
|
||||||
" (happens when dropping a file on "gvim").
|
" (happens when dropping a file on "gvim").
|
||||||
autocmd BufReadPost *
|
" autocmd BufReadPost *
|
||||||
\ if line("'\"") > 0 && line("'\"") <= line("$") |
|
" \ if line("'\"") > 0 && line("'\"") <= line("$") |
|
||||||
\ exe "normal g`\"" |
|
" \ exe "normal g`\"" |
|
||||||
\ endif
|
" \ endif
|
||||||
" Encoding.
|
" Encoding.
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
|
|
Loading…
Reference in a new issue