Fixes for windows.
This commit is contained in:
15
vim/vimrc
15
vim/vimrc
@@ -23,7 +23,7 @@ let g:netrw_browse_split = 3 " open in a tab
|
||||
|
||||
" In many terminal emulators the mouse works just fine, thus enable it.
|
||||
if has('mouse')
|
||||
set mouse=a
|
||||
set mouse=a
|
||||
endif
|
||||
|
||||
" a copy-past from my linux vimrc
|
||||
@@ -48,28 +48,31 @@ endif
|
||||
" for keeping undo history after closing Vim entirely. Vim will complain if you
|
||||
" try to quit without saving, and swap files will keep you safe if your computer
|
||||
" crashes.
|
||||
if has('hidden')
|
||||
if exists('&hidden')
|
||||
set hidden
|
||||
endif
|
||||
|
||||
" Instead of failing a command because of unsaved changes, instead raise a
|
||||
" dialogue asking if you wish to save changed files.
|
||||
if has('confirm')
|
||||
if exists('&confirm')
|
||||
set confirm
|
||||
endif
|
||||
|
||||
" Use visual bell instead of beeping when doing something wrong
|
||||
if has('visualbell')
|
||||
if exists('&visualbell')
|
||||
set visualbell
|
||||
endif
|
||||
|
||||
" Display line numbers on the left
|
||||
if has('number')
|
||||
if exists('&number')
|
||||
set number
|
||||
endif
|
||||
|
||||
" Modelined are used to configure files.
|
||||
set modeline
|
||||
if exists('&modeline')
|
||||
set modeline
|
||||
set modelines=10
|
||||
endif
|
||||
|
||||
" Only do this part when compiled with support for autocommands.
|
||||
if has("autocmd")
|
||||
|
||||
Reference in New Issue
Block a user