Created
April 29, 2024 13:34
-
-
Save abanoubha/3ace670cf05b931368557e55872a0df2 to your computer and use it in GitHub Desktop.
simple vim config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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