Skip to content

Instantly share code, notes, and snippets.

@baflo
Last active May 15, 2018 12:50
Show Gist options
  • Save baflo/f07d1ae00999e41f81472fde4c911818 to your computer and use it in GitHub Desktop.
Save baflo/f07d1ae00999e41f81472fde4c911818 to your computer and use it in GitHub Desktop.
VIM default .vimrc
" Add command Rdate inserting the current date in format YYYY-MM-DD
:command Rdate exec 'normal i'.substitute(" ".system("date +%Y-%m-%d"),"[\n]*$","","")
map <F2> :Rdate<CR>
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
Plug 'crusoexia/vim-monokai'
Plug 'scrooloose/nerdcommenter'
Plug 'tpope/vim-speeddating'
" Initialize plugin system
call plug#end()
filetype plugin on
colorscheme monokai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment