Last active
November 21, 2018 13:30
-
-
Save stlehmann/9961537 to your computer and use it in GitHub Desktop.
My default .vimrc file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To install the vim-plug package manager do: