Last active
April 9, 2024 03:39
-
-
Save navitux/9d64e665e9238f8b97e79bcedd12c6ca to your computer and use it in GitHub Desktop.
ivan .vimrc
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
syntax on | |
set number | |
set t_Co=256 | |
set updatetime=300 | |
filetype indent on | |
set colorcolumn=79 | |
colorscheme evening | |
" config from https://stackoverflow.com/questions/1878974/redefine-tab-as-4-spaces | |
set tabstop=4 " Size of a hard tabstop (ts). | |
set shiftwidth=4 " Size of an indentation (sw). | |
set expandtab " Always uses spaces instead of tab characters (et). | |
set softtabstop=4 " Number of spaces a <Tab> counts for. When 0, featuer is off (sts). | |
set autoindent " Copy indent from current line when starting a new line. | |
set smarttab " Inserts blanks on a <Tab> key (as per sw, ts and sts). | |
" enabling auto save | |
" source: https://vi.stackexchange.com/questions/74/is-it-possible-to-make-vim-auto-save-files | |
autocmd TextChanged,TextChangedI <buffer> silent write | |
" bakups | |
set backup " make backup files | |
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp | |
" make spaces visibles: https://stackoverflow.com/questions/1675688/make-vim-show-all-white-spaces-as-a-character | |
set listchars+=eol:¬,tab:>·,trail:~,space:␣ | |
" xterm 256 colors fg: https://misc.flogisoft.com/_media/bash/colors_format/256_colors_fg.png | |
" ANSI/VT100 color control sequences reference: https://misc.flogisoft.com/bash/tip_colors_and_formatting | |
highlight NonText cterm=NONE ctermfg=240 ctermbg=NONE | |
highlight SpecialKey cterm=NONE ctermfg=240 ctermbg=NONE | |
set list | |
" to turn it off: | |
" set nolist | |
" Powerline | |
let g:powerline_pycmd="py3" | |
set rtp+=/usr/share/powerline/bindings/vim | |
set laststatus=2 | |
" Plug Installation: | |
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
" | |
" to install plugins declared in ~/.vimrc: | |
" :w | |
" :so % | |
" :PlugInstall | |
" | |
" Plug Extensions begins | |
call plug#begin('~/.vim/plugged') | |
" Plug 'w0rp/ale' | |
Plug 'mattn/emmet-vim' | |
call plug#end() | |
let g:ale_fixers = { | |
\ 'javascript': ['eslint'] | |
\ } | |
" Plug Extensions ends | |
let g:ale_sign_error = '❌' | |
let g:ale_sign_warning = '⚠️' | |
let g:ale_fix_on_save = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment