.vimrc added
parent
a78d417da4
commit
c85474115a
@ -0,0 +1,34 @@
|
|||||||
|
" general stuff
|
||||||
|
|
||||||
|
colorscheme delek
|
||||||
|
let g:mapleader = ","
|
||||||
|
|
||||||
|
syntax on
|
||||||
|
set ignorecase
|
||||||
|
set smartcase " Include only uppercase words with uppercase search term
|
||||||
|
set hlsearch
|
||||||
|
set tabstop=2
|
||||||
|
set shiftwidth=2
|
||||||
|
set softtabstop=2
|
||||||
|
set expandtab
|
||||||
|
set scrolloff=5 " Scroll 5 lines from top/bottom
|
||||||
|
set list " show tabs and EOL
|
||||||
|
set number " Show line numbers
|
||||||
|
|
||||||
|
" status line
|
||||||
|
set laststatus=2
|
||||||
|
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ [BUFFER=%n]\ %{strftime('%c')}
|
||||||
|
|
||||||
|
" WSL Yank support
|
||||||
|
let s:clip = '/mnt/c/Windows/System32/clip.exe'
|
||||||
|
if executable(s:clip)
|
||||||
|
augroup WSLYank
|
||||||
|
autocmd!
|
||||||
|
autocmd TextYankPost * if v:event.operator ==# 'y' | call system(s:clip, @0) | endif
|
||||||
|
augroup END
|
||||||
|
endif
|
||||||
|
|
||||||
|
map <silent> "=p :r !powershell.exe -Command Get-Clipboard<CR>
|
||||||
|
map! <silent> <C-r>= :r !powershell.exe -Command Get-Clipboard<CR>
|
||||||
|
noremap "+p :exe 'norm a'.system('/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -Command Get-Clipboard')<CR>
|
||||||
|
|
Loading…
Reference in New Issue