1
0
mirror of https://github.com/artizirk/dotfiles.git synced 2024-07-03 13:20:10 +03:00
dotfiles/.config/nvim/init.vim

22 lines
698 B
VimL
Raw Normal View History

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
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 %