Last active
February 3, 2021 19:17
-
-
Save nilscc/ffebea2ae577f028284c6b6c42b2d007 to your computer and use it in GitHub Desktop.
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
set mouse=a | |
set number | |
set encoding=utf-8 | |
set autoindent | |
set smartcase " or: ignorecase | |
set ruler | |
" Expand tabs to 2 spaces | |
set expandtab | |
set ts=4 | |
set sw=4 | |
"set bs=4 " backspace deletes over eol,indent and start | |
set bs=indent,eol,start | |
set completeopt=menu,menuone,longest | |
" | |
" vim-plug section | |
" | |
" see: https://github.com/junegunn/vim-plug | |
" | |
call plug#begin() | |
Plug 'preservim/nerdtree' | |
Plug 'tjammer/focusedpanic.vim' | |
Plug 'koryschneider/vim-trim' | |
call plug#end() | |
" | |
" Plugin Config | |
" | |
noremap <C-t> :NERDTreeToggle<CR> | |
set t_Co=256 " force 256 terminal colors | |
colorscheme focusedpanic | |
" trim all whitespace before saving | |
autocmd BufWritePre *.h,*.hpp,*.c,*.cpp,*.py,*.js,*.html,*.hs,*.txt,*.md :Trim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment