dotfiles/fake_home/.ideavimrc

44 lines
1.0 KiB
Plaintext

set nocompatible " be iMproved, required
filetype off " required
set visualbell
set noerrorbells
set relativenumber
set number
set autoindent
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
inoremap jj <Esc>
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
nnoremap vv vi
nnoremap <C-E> <C-E><C-E>
nnoremap <C-Y> <C-Y><C-Y>
nnoremap dK <Esc>kdd
nnoremap dJ <Esc>jdd
nnoremap >f viwc<C-O>:set ri<CR><C-R>"<Esc>:set nori<CR>
vnoremap \f c<C-O>:set ri<CR><C-R>"<Esc>:set nori<CR>
let mapleader = " "
map <leader>bs :action BuildWholeSolutionAction<CR>
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview
set viewoptions-=options
set nohlsearch
command! DD action CloseAllEditorsButActive
command! Dd action CloseAllEditorsButActive
command! Qa action CloseAllUnmodifiedEditors
command! QA action CloseAllUnmodifiedEditors
" Save with sudo
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
set ideajoin