1
0
mirror of https://github.com/artizirk/dotfiles.git synced 2024-11-14 21:20:59 +02:00
dotfiles/.config/nvim/init.vim

40 lines
1.0 KiB
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
2020-04-21 15:03:26 +03:00
" Python formating
autocmd FileType python set tabstop=4 shiftwidth=4 softtabstop=4 expandtab
2020-04-21 15:03:26 +03:00
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 %
2020-01-06 10:06:02 +02:00
" F5 to save and make
:map <f5> :w \| :make<CR>
2020-04-21 15:53:12 +03:00
" show special chars
set list
2020-04-21 18:50:36 +03:00
set listchars=tab:\ \ ,trail,nbsp:⎵
2020-04-21 15:53:12 +03:00
" TODO: toggle between listchars to show tabs and new lines
2020-05-13 12:56:28 +03:00
" spellcheck
set spelllang=en
" enable via set spell
2021-05-18 15:20:48 +03:00
set mouse=a