Last active
May 13, 2023 20:04
-
-
Save Postrediori/eeb89817168bd0cb03391acc4b54f412 to your computer and use it in GitHub Desktop.
Config for Vim editor
This file contains 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
" This is for vim, may not be compatible with vi | |
" Remove ^M characters in Linux with dos2unix: | |
" dos2unix .vimrc | |
" Line numeration | |
set nu | |
" Enable syntax highlighting | |
syntax on | |
" Contrast syntax scheme for dark consoles | |
color slate | |
" Always switch to dir with active file | |
set autochdir | |
" Set tab width | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set smarttab | |
set autoindent | |
set expandtab | |
" Don't create temporary files | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
" Set font and encoding for GUI mode | |
" Choose custom font: | |
" 1. Select font using GUI menu | |
" 2. Check font description with ':set guifont?' command | |
set guifont=DejaVu\ Sans\ Mono\ 12 | |
" Setup for Windows 8.1 | |
" set guifont=Liberaion\ Mono:h12 | |
" Setup for MacVim | |
" set guifont=Menlo:h16 | |
" Other options: | |
" set guifont=Bitstream\ Vera\ Sans\ Mono\ 12 | |
" set guifont=Lucida\ Sans\ Typewriter\ Regular\ 12 | |
" Don't wrap long lines | |
set nowrap | |
" Display bottom scroll bar in UI mode | |
set go+=b | |
" Set invisible characters style and toggle them on | |
set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:< | |
set list | |
" Use UTF-8 for new files by default | |
set encoding=utf-8 | |
" Disable beep | |
set vb t_vb= | |
" Set custom file types | |
au BufNewFile,BufRead *.fs,*.ft,*.f,*.spf,*.fth setf forth | |
au BufNewFile,BufRead *.glsl,*.frag,*.vert setf c | |
" Additional setup for toolbars | |
" Set toolbar icon size | |
" set toolbariconsize=huge | |
" set toolbariconsize=small | |
" Remove toolbar | |
" set guioptions-=T |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment