Skip to content

Instantly share code, notes, and snippets.

@hbackman
Created May 3, 2021 14:07
Show Gist options
  • Save hbackman/4bff87462907ad2290c873089aa56a74 to your computer and use it in GitHub Desktop.
Save hbackman/4bff87462907ad2290c873089aa56a74 to your computer and use it in GitHub Desktop.
My personal vim configuration
set encoding=utf8
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
set rtp+=/usr/local/opt/fzf
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
" Plugins
Plugin 'preservim/nerdtree'
Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'
" Syntax Highlighting
Plugin 'posva/vim-vue'
Plugin 'pangloss/vim-javascript'
Plugin 'StanAngeloff/php.vim'
Plugin 'vim-ruby/vim-ruby'
" Auto Completion
call vundle#end()
"""""""""""""""""""""""""""""""""""""
" Configuration "
"""""""""""""""""""""""""""""""""""""
" On pressing tab, insert 2 spaces
set expandtab
" Show existing tab with 2 spaces width
set tabstop=2
set softtabstop=2
" When indenting with '>', use 2 spaces width
set shiftwidth=2
" Always display status line
set laststatus=2
" Show line numbers
set number
" Highlight current line
set cursorline
" Theme
syntax on
" Mappings
map <C-M> :tabn<CR>
map <C-N> :tabp<CR>
map <C-t> :tabnew<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment