Skip to content

Instantly share code, notes, and snippets.

@abanoubha
Created April 29, 2024 13:34
Show Gist options
  • Save abanoubha/3ace670cf05b931368557e55872a0df2 to your computer and use it in GitHub Desktop.
Save abanoubha/3ace670cf05b931368557e55872a0df2 to your computer and use it in GitHub Desktop.
simple vim config
syntax on
":syntax on
set number relativenumber
set wildmode=longest,list,full
set splitbelow splitright
" spell cheking
"set spell
" set auto read
set autoindent
set smartindent
set shiftwidth=2
" flash screen instead of beep sound
"set visualbell
" change how vim represents characters on the screen
set encoding=utf-8
" set the encoding of files written
set fileencoding=utf-8
autocmd BufWritePre * %s/\s\+$//e
set undofile " maintain undo history between sessions
set undodir=~/.vim/undodir
"filetype plugin indent on
"set backspace=indent,eol,start
"let g:go_fmt_command = "goimports"
"let g:go_auto_type_info = 1
set autowrite
set clipboard=unnamed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment