Skip to content

Instantly share code, notes, and snippets.

@devsdmf
Created May 19, 2018 22:04
Show Gist options
  • Save devsdmf/c6b4cf2c2c50b13df27f3366e94bed6e to your computer and use it in GitHub Desktop.
Save devsdmf/c6b4cf2c2c50b13df27f3366e94bed6e to your computer and use it in GitHub Desktop.
My Vim configuration file
" setting up plugin manager
call plug#begin('~/.vim/plugged')
" basic linux commands inside editor
Plug 'tpope/vim-eunuch'
" auto close parenthesis, brackets, quotes, etc...
Plug 'jiangmiao/auto-pairs'
" show indentation in editor
Plug 'nathanaelkane/vim-indent-guides'
" tree viewer
Plug 'scrooloose/nerdtree'
" emmet plugin
Plug 'mattn/emmet-vim'
" show changed lines in a file on a git repository
Plug 'airblade/vim-gitgutter'
" file finder (requires fzf installed)
Plug '/usr/local/opt/fzf'
Plug 'junegunn/fzf.vim'
call plug#end()
" setting up line numbers
:set nu
" setting up indentation
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
" setting up backspace to work as usual
"set backspace=indent,eol,start
" Custom Plugins Settings
" nathanaelkane/vim-indent-guides'
let g:indent_guides_enable_on_vim_startup = 1
" scrooloose/nerdtree
" setting shortcut to Ctrl O to open tree viewer
map <C-o> :NERDTreeToggle<CR>
" junegunn/fzf.vim
map ; :Files<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment