Last active
September 13, 2021 09:07
-
-
Save rendall/1a64b238d27352595a656ff83c3da80f to your computer and use it in GitHub Desktop.
Add /t => 4 spaces
This file contains hidden or 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 nocompatible " be iMproved, required | |
| " To enable project-specific vim settings: e.g. ./project/.vimrc | |
| set exrc | |
| set backspace=indent,eol,start | |
| let mapleader = ',' | |
| set number relativenumber " hybrid number lines | |
| " Use 2 spaces not tabs | |
| set tabstop=2 | |
| set softtabstop=2 | |
| set shiftwidth=2 | |
| set expandtab | |
| " Eliminate problematic behavior https://lee-phillips.org/badvim/ | |
| set nobackup | |
| set nowritebackup | |
| set noundofile | |
| set noswapfile " disable swap file | |
| "------- Code Folding Persistence -------" | |
| autocmd BufWinLeave *.* mkview | |
| autocmd BufWinEnter *.* silent loadview | |
| "------- Split Management -----" | |
| set splitbelow | |
| set splitright | |
| "------- Searching -----" | |
| set hlsearch " highlight all search results | |
| set ignorecase " do case insensitive search | |
| set incsearch " show incremental search results as you type | |
| nnoremap <Leader><space> :nohlsearch<cr> | |
| " ------ Word Wrapping -------" | |
| set wrap | |
| set linebreak | |
| set nolist " list disables linebreak | |
| set textwidth=0 | |
| set wrapmargin=0 | |
| set formatoptions-=t | |
| " ------ Enable 24bit true color | |
| " If you have vim >=8.0 or Neovim >= 0.1.5 | |
| if (has("termguicolors")) | |
| set termguicolors | |
| endif | |
| syntax enable | |
| " ------ Add nice colorscheme | |
| " Run these commands to get night-owl: | |
| " mkdir -p ~/.vim/colors | |
| " curl https://raw.githubusercontent.com/haishanh/night-owl.vim/master/colors/night-owl.vim > ~/.vim/colors/night-owl.vim | |
| colorscheme torte | |
| silent! colorscheme night-owl | |
| " ------ " | |
| " disable unsafe commands in project-specific .vimrc files | |
| set secure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment