Skip to content

Instantly share code, notes, and snippets.

@dpo
Created September 4, 2019 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpo/cead938935bad5fc2387f971f3213528 to your computer and use it in GitHub Desktop.
Save dpo/cead938935bad5fc2387f971f3213528 to your computer and use it in GitHub Desktop.
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-tbone'
Plug 'airblade/vim-gitgutter'
Plug 'junegunn/fzf', { 'do': 'yes \| ./install' } " fzf is a fuzzy file search
Plug 'junegunn/fzf.vim'
Plug 'tmux-plugins/vim-tmux'
Plug 'JuliaEditorSupport/julia-vim'
" Initialize plugin system
call plug#end()
" local customization
set expandtab " Replace all tabs by spaces.
set textwidth=0 " Do not limit the number of columns in general.
set shiftwidth=2 " Number of spaces to auto indent.
set tabstop=2 " Default width of a tab.
set shiftround " Use multiple of shiftwidth when indenting with '<' and '>'.
set scrolloff=3 " Keep 3 context lines above and below the cursor.
set linebreak " Don't wrap text in the middle of a word.
set number " Show line numbers.
autocmd BufEnter * silent! lcd %:p:h " automatically change to current file's dir
" highlight the current line
:hi CursorLine cterm=bold
:set cursorline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment