Last active
February 6, 2016 17:28
-
-
Save az-iar/417698c368ca1ae61576 to your computer and use it in GitHub Desktop.
vim config
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 enable | |
set number " Show line numbers | |
set showmatch " Highlight matching brace | |
set visualbell " Use visual bell (no beeping) | |
set hlsearch " Highlight all search results | |
set smartcase " Enable smart-case search | |
set ignorecase " Always case-insensitive | |
set incsearch " Searches for strings incrementally | |
set autoindent " Auto-indent new lines | |
set expandtab " Use spaces instead of tabs | |
set shiftwidth=4 " Number of auto-indent spaces | |
set smartindent " Enable smart-indent | |
set smarttab " Enable smart-tabs | |
set softtabstop=4 " Number of spaces per Tab | |
set t_CO=<t_CO> " Set terminal to use <t_CO> color | |
set ruler " Show row and column ruler information | |
set undolevels=1000 " Number of undo levels | |
set backspace=indent,eol,start " Backspace behaviour | |
set laststatus=2 | |
"------ Mappings ------" | |
nmap <Leader>ev :tabedit $MYVIMRC<cr> | |
"------ Auto-Commands ------" | |
augroup autosourcing | |
autocmd! | |
autocmd BufWritePost .vimrc source % | |
augroup END | |
"----- Plugins -----" | |
call plug#begin('~/.vim/plugged') | |
" vim-airline | |
Plug 'vim-airline/vim-airline' | |
" Add plugins to &runtimepath | |
call plug#end() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment