Last active
April 16, 2024 18:41
-
-
Save kmatt/06726b1574cd1e7329b15f2f0403379d to your computer and use it in GitHub Desktop.
MYVIMRC
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
"Linux: curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
"PowerShell: iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |` ni $HOME/vimfiles/autoload/plug.vim -Force | |
let g:pymode_python = 'python3' | |
let g:python3_host_prog = expand('C:\Users\mkeranen\Python\Python310\python.exe') | |
call plug#begin() | |
Plug 'mattn/vim-gist' | |
Plug 'mattn/webapi-vim' | |
Plug 'chrisbra/vim-diff-enhanced' | |
Plug 'dsolstad/vim-wombat256i' | |
Plug 'gabrielelana/vim-markdown' | |
Plug 'godlygeek/tabular' | |
Plug 'gryf/wombat256grf' | |
Plug 'itchyny/lightline.vim' | |
Plug 'jlanzarotta/bufexplorer' | |
Plug 'junegunn/fzf' | |
Plug 'lbrayner/vim-rzip' | |
Plug 'mtdl9/vim-log-highlighting' | |
Plug 'pprovost/vim-ps1' | |
Plug 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' } | |
Plug 'rickhowe/diffchar.vim' | |
Plug 'tpope/vim-fugitive' | |
Plug 'vim-python/python-syntax' | |
"Plug 'vimwiki/vimwiki' | |
Plug 'whiteinge/diffconflicts' | |
Plug 'yegappan/mru' | |
"Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } | |
"Plug 'tpope/vim-scriptease' | |
call plug#end() | |
let g:mapleader = "\<Space>" | |
let g:maplocalleader = ',' | |
nnoremap <silent> <leader> :<c-u>WhichKey '<Space>'<CR> | |
nnoremap <silent> <localleader> :<c-u>WhichKey ','<CR> | |
let g:lightline = { 'colorscheme': 'wombat', } | |
let g:DiffUnit = 'Char' | |
let g:gist_post_private = 1 | |
let g:gist_show_privates = 1 | |
let g:pymode_options_colorcolumn = 0 | |
let g:pymode_lint_ignore = ["C901","E115","E265","E401","E402", "E501","W0401"] | |
let g:python_highlight_all = 1 | |
let g:rzipPlugin_extra_ext = '*.twbx,*.tdsx' | |
syntax enable | |
colorscheme wombat256i | |
" vim-diff-enhanced | |
if &diff | |
colorscheme quiet | |
let &diffexpr='EnhancedDiff#Diff("git diff", "--diff-algorithm=patience")' | |
endif | |
filetype on | |
filetype indent on | |
filetype plugin on | |
set autoindent | |
set background=dark | |
set encoding=utf-8 | |
set go+=b | |
set hlsearch | |
set ignorecase | |
set incsearch | |
set laststatus=2 | |
set nocul | |
set nofoldenable | |
set noundofile | |
set nu | |
set paste | |
set smartcase | |
set switchbuf=useopen,usetab | |
set tabstop=4 softtabstop=4 shiftwidth=4 expandtab | |
set wrap | |
" Buffer nav | |
noremap <C-S-left> :bp<CR> | |
noremap <C-S-right> :bn<CR> | |
nnoremap <silent> <F12> :BufExplorer<CR> | |
" Trim trailing whitespace | |
nnoremap <Leader>sws :%s/\s\+$//e<CR> | |
" JSON format | |
"command! Jsonf :execute '%!python -m json.tool' | |
command! Jsonf :execute '%!jq .' | |
" Cursor modes (highlight does not override color scheme) | |
hi nCursor guifg=Black guibg=White | |
hi iCursor guifg=Black guibg=White | |
" When using vimdiff or diff mode | |
"highlight DiffAdd term=bold ctermbg=darkgreen ctermfg=white cterm=bold guibg=DarkGreen guifg=White gui=bold | |
"highlight DiffText term=reverse,bold ctermbg=darkred ctermfg=yellow cterm=bold guibg=DarkRed guifg=yellow gui=bold | |
"highlight DiffChange term=bold ctermbg=black ctermfg=white cterm=bold guibg=Black guifg=White gui=bold | |
"highlight DiffDelete term=none ctermbg=darkblue ctermfg=darkblue cterm=none guibg=DarkBlue guifg=DarkBlue gui=none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment