diff options
| author | Martial Simon <msimon_fr@hotmail.com> | 2023-05-17 00:09:51 +0200 |
|---|---|---|
| committer | Martial Simon <msimon_fr@hotmail.com> | 2023-05-17 00:09:51 +0200 |
| commit | 5d3c0b24405381a41bd13a3135fa2969c2b47a48 (patch) | |
| tree | c59a2521159b90daac9e139e5ebaeaf24dd3fa0f /nvim/basics.vim | |
| parent | 436159f3542d4e11c81ff927ab6b22f5ad2619e0 (diff) | |
| parent | ca1fba1ef518b2f55bc168e9782b500dfec67c16 (diff) | |
Merge branch 'main' of https://github.com/Laitram31/config
Diffstat (limited to 'nvim/basics.vim')
| -rw-r--r-- | nvim/basics.vim | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/nvim/basics.vim b/nvim/basics.vim new file mode 100644 index 0000000..bf1706e --- /dev/null +++ b/nvim/basics.vim @@ -0,0 +1,38 @@ +" Indent +set autoindent smartindent +set tabstop=8 " n of whitespace in \t +set shiftwidth=8 " n of whitespace for indent +set softtabstop=8 " n of whitespace to delete with backspace +"set expandtab " \t -> whitespaces +"set list +"set lcs=tab:\|\ ,space:⋅,eol:$ "↴ + +" Disable the mouse, btw use shift for highlighting +"set mouse= +map <Middlemouse> <Nop> +imap <Middlemouse> <Nop> +aunmenu PopUp + +" better <C-d> and <C-u> +nnoremap <C-d> <C-d>zz +nnoremap <c-u> <c-u>zz + +" Autocorrect +abbr hte the + +" Misc +set nu rnu +set cc=80 +set tw=79 +set title +set nohls +set tgc +set clipboard+=unnamedplus +autocmd FileType * setl fo-=ro fo+=tc + +" Language specific +autocmd FileType python setl ts=4 sw=4 sts=4 expandtab +autocmd FileType lisp,html setl ts=2 sw=2 sts=2 expandtab +autocmd FileType html,markdown setl spell +autocmd FileType tex setl spell spl=fr +autocmd BufWritePost *.c silent! !astyle -A3 -t8 -p -xg -H -xB -n %:p |
