Created
August 16, 2020 17:16
-
-
Save akulbe/ac7b1ab9a21a138a07219dc1392db92e to your computer and use it in GitHub Desktop.
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
syntax on | |
" " autocmd FileType * set autoindent set backspace=indent,eol,start set expandtab set shiftwidth=2 set softtabstop=2 | |
set backspace=indent,eol,start | |
set autoindent | |
set expandtab | |
set shiftwidth=2 | |
set softtabstop=2 | |
filetype indent plugin on | |
" " Load all package now | |
packloadall | |
" " Generate help tags from all packages and ignore errors | |
silent! helptags ALL | |
" " Enable fuzzy find | |
set rtp+=~/.fzf | |
" " With a map leader it's possible to do extra key combinations | |
" " like <leader>w saves the current file | |
let mapleader = "," | |
let g:mapleader = "," | |
" " Fast saving | |
nmap <leader>w :w!<cr> | |
" " fast editing of the .vimrc | |
map <leader>e :e! ~/.vimrc<cr> | |
" " fast editing of the .zshrc | |
map <leader>z :e! ~/.zshrc<cr> | |
" " Turn line numbers on | |
map <leader>n :set number<cr> | |
" " Turn line numbers off | |
map <leader>N :set nonumber<cr> | |
" " Fast access to fzf+ag | |
nmap ; :Buffers<cr> | |
nmap <leader>a :Ag<cr> | |
nmap <leader>f :Files<cr> | |
" " When vimrc is edited, reload it! | |
autocmd! bufwritepost vimrc source ~/.vimrc | |
" " airline config | |
let g:airline_powerline_fonts = 1 | |
let g:airline_theme='molokai' | |
set laststatus=2 | |
" Rainbow Parentheses | |
let g:rbpt_colorpairs = [ | |
\ ['brown', 'RoyalBlue3'], | |
\ ['Darkblue', 'SeaGreen3'], | |
\ ['darkgray', 'DarkOrchid3'], | |
\ ['darkgreen', 'firebrick3'], | |
\ ['darkcyan', 'RoyalBlue3'], | |
\ ['darkred', 'SeaGreen3'], | |
\ ['darkmagenta', 'DarkOrchid3'], | |
\ ['brown', 'firebrick3'], | |
\ ['gray', 'RoyalBlue3'], | |
\ ['black', 'SeaGreen3'], | |
\ ['darkmagenta', 'DarkOrchid3'], | |
\ ['Darkblue', 'firebrick3'], | |
\ ['darkgreen', 'RoyalBlue3'], | |
\ ['darkcyan', 'SeaGreen3'], | |
\ ['darkred', 'DarkOrchid3'], | |
\ ['red', 'firebrick3'], | |
\ ] | |
let g:rbpt_max = 16 | |
let g:rbpt_loadcmd_toggle = 0 | |
au VimEnter * RainbowParenthesisToggle | |
au Syntax * RainbowParenthesesLoadRound | |
au Syntax * RainbowParenthesesLoadSquare | |
au Syntax * RainbowParenthesesLoadBraces | |
" " Syntastic | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_loc_list_height = 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To be fair, the first time I set this up, it was a copypasta from someone else's setup that I liked. I typed this all in by hand though.
I'm running vim 8.2.1443, compiled from source and it opens in REPLACE mode every single time. I'm not sure why.