Skip to content

Instantly share code, notes, and snippets.

@stlehmann
Last active November 21, 2018 13:30
Show Gist options
  • Save stlehmann/9961537 to your computer and use it in GitHub Desktop.
Save stlehmann/9961537 to your computer and use it in GitHub Desktop.
My default .vimrc file
" Vim Plug Package Manager and minimal packages
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'sickill/vim-monokai'
call plug#end()
" Colorscheme
colorscheme monokai
" Common tweaks
set nobackup
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set number
set cursorline
set nowrap
set colorcolumn=88
set noswapfile
set splitbelow
set splitright
" Remaps
map <C-n> :NERDTreeToggle<CR>
inoremap jk <ESC>
nnoremap <Tab> :bn<CR>
nnoremap <S-Tab> :bp<CR>
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" search settings
set ignorecase
set smartcase
@stlehmann
Copy link
Author

To install the vim-plug package manager do:

$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment