Last active
January 3, 2018 09:14
-
-
Save stef-k/2a83c37d037152a9fec3d6aa5aa4cbe8 to your computer and use it in GitHub Desktop.
Vim config file
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
set tabstop=4 softtabstop=4 shiftwidth=4 expandtab autoindent | |
" Auto indent | |
set ai | |
" Smart indent | |
set si | |
" Enable syntax highlight | |
syntax enable | |
" Show current position | |
set ruler | |
" Do not take backups of current file | |
set nobackup | |
" Show line numbers disable it with set :nonumber | |
set number | |
" Show currently typed command | |
set showcmd | |
" Command line height = 2 lines | |
set ch=2 | |
try | |
" Color scheme | |
colo molokai | |
endtry | |
" Editor background | |
set background=dark | |
" Enable bottom menu | |
set wildmenu | |
" Enable magic regex | |
set magic | |
" Highlight current line | |
set cursorline | |
" Recursively add current directory in path | |
set path+=** | |
" Searching ******************************************************************* | |
set hlsearch " highlight search | |
set incsearch " Incremental search, search as you type | |
set ignorecase " Ignore case when searching | |
set smartcase " Ignore case when searching lowercase | |
" Enable filetype plugins | |
filetype plugin on | |
filetype indent on | |
" Set to auto read when a file is changed from the outside | |
set autoread | |
" Configure backspace so it acts as it should act | |
set backspace=eol,start,indent | |
set whichwrap+=<,>,h,l | |
" Show matching brackets when text indicator is over them | |
set showmatch | |
" No annoying sound on errors | |
set noerrorbells | |
set novisualbell | |
set t_vb= | |
set tm=500 | |
" Set utf8 as standard encoding and en_US as the standard language | |
set encoding=utf8 | |
" Use Unix as the standard file type | |
set ffs=unix,dos,mac | |
"""""""""""""""""""""""""""""" | |
" => Status line | |
"""""""""""""""""""""""""""""" | |
" Always show the status line | |
set laststatus=2 | |
" Format the status line | |
set statusline=\%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l | |
vmap <TAB> >gv | |
vmap <S-TAB> <gv | |
" Disable bells | |
set visualbell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment