2019-04-05 14:49:19 +03:00
|
|
|
" show some context lines up/down of the cursor
|
2019-05-23 16:04:13 +03:00
|
|
|
set scrolloff=3
|
|
|
|
set ignorecase
|
2019-08-12 11:47:35 +03:00
|
|
|
set cursorline
|
2019-08-21 13:48:25 +03:00
|
|
|
hi cursorline cterm=none term=none
|
|
|
|
autocmd WinEnter * setlocal cursorline
|
|
|
|
autocmd WinLeave * setlocal nocursorline
|
|
|
|
highlight CursorLine guibg=#303000 ctermbg=234
|
2019-10-11 15:26:30 +03:00
|
|
|
"highlight CursorLine guibg=#303000 ctermbg=lightgray
|
2019-08-12 11:47:35 +03:00
|
|
|
|
2019-10-11 15:26:30 +03:00
|
|
|
" configure reasonable swap file
|
2019-08-12 11:47:35 +03:00
|
|
|
" https://begriffs.com/posts/2019-07-19-history-use-vim.html?hn=3#backups-and-undo
|
|
|
|
runtime swap.vim
|
2019-11-12 17:35:37 +02:00
|
|
|
|
2019-12-02 22:30:07 +02:00
|
|
|
" enable <C-X><C-O> omni completion
|
|
|
|
set omnifunc=syntaxcomplete#Complete
|
|
|
|
" more advanced deoplete completion
|
2019-11-12 17:35:37 +02:00
|
|
|
let g:deoplete#enable_at_startup = 1
|
|
|
|
|
|
|
|
" Allow saving of files as sudo when I forgot to start vim using sudo.
|
|
|
|
cmap w!! w !sudo tee > /dev/null %
|
2020-01-06 10:06:02 +02:00
|
|
|
|
|
|
|
" F5 to save and make
|
|
|
|
:map <f5> :w \| :make<CR>
|