Last active
August 11, 2020 19:05
-
-
Save Mimickal/50dd33460ac5675a63b64dc5fcc1eb97 to your computer and use it in GitHub Desktop.
My personal .vimrc with that neat line warning
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
" Use a color scheme that works with flux | |
syntax on | |
colorscheme zellner | |
" Use a not-dumb tab size | |
set tabstop=4 | |
" Show tabs as something cool | |
set list | |
set listchars=tab:>- | |
" Show line numbers | |
set number | |
" Show trailing whitespace | |
set hlsearch | |
highlight TrailingSpace ctermbg=DarkMagenta ctermfg=Black | |
call matchadd('TrailingSpace', '\s\+$', -1) | |
" Show warnings for long lines (at 80 and 100) | |
highlight LengthWarn ctermbg=DarkBlue | |
call matchadd('LengthWarn', '\%<101v.\%>81v', -2) | |
highlight LengthLong ctermbg=DarkRed | |
call matchadd('LengthLong', '\%101v.\+', -2) | |
set colorcolumn=101 | |
" Set auto-text wrap | |
set textwidth=80 | |
" Don't select line numbers when copying (doesn't work in tmux though) | |
se mouse+=a | |
set rtp+=~/.fzf | |
" Because we need to manually enable backspace, like cave men | |
set backspace=indent,eol,start | |
call plug#begin('~/.vim/plugged') | |
Plug 'moll/vim-node' | |
Plug 'pangloss/vim-javascript' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
" Also need to apt install universal-ctags | |
Plug 'universal-ctags/ctags' | |
Plug 'majutsushi/tagbar' | |
call plug#end() | |
" Stop that annoying auto-indent bullshit | |
filetype plugin indent off | |
nmap <F8> :TagbarToggle<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment