dotfiles/fake_home/.ideavimrc

39 lines
979 B
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 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