dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

idea.vimrc (1303B)


      1 " Settings
      2 set number
      3 set showmode
      4 set ignorecase
      5 set hlsearch
      6 set incsearch
      7 set smartcase
      8 set surround
      9 
     10 " Commands
     11 command! ListFileTypes echo glob($VIMRUNTIME . '/syntax/*.vim')
     12 command! CDC cd %:p:h
     13 command! Maketab set noet ts=2 | %retab!
     14 command! Diff w !diff % -
     15 command! Diffc w !git diff % -
     16 command! Fuckwindows %s/
//g
     17 
     18 " Abbreviations
     19 cnoreabbrev W! w!
     20 cnoreabbrev Q! q!
     21 cnoreabbrev Qall! qall!
     22 cnoreabbrev Wq wq
     23 cnoreabbrev Wa wa
     24 cnoreabbrev wQ wq
     25 cnoreabbrev WQ wq
     26 cnoreabbrev W w
     27 cnoreabbrev Q q
     28 cnoreabbrev Qall qall
     29 cnoreabbrev E Explore
     30 cnoreabbrev Colors XtermColorTable
     31 
     32 " Mappings
     33 let mapleader=","
     34 
     35 " Command mode
     36 cnoremap w!! w !sudo tee > /dev/null %
     37 
     38 " Normal mode
     39 nnoremap ; :
     40 nnoremap q: <Nop>
     41 nnoremap <leader>dif :Diff<cr>
     42 nnoremap <leader>/ :noh<cr>
     43 nnoremap <leader>b :ls<cr>:b<Space>
     44 nnoremap U :syntax sync fromstart<cr>:redraw!<cr>
     45 nnoremap <leader>qq mzggg?G`z
     46 nnoremap zh mzzt10<c-u>`z
     47 nnoremap <leader>dh :DeleteHiddenBuffers<cr>
     48 nnoremap <leader>s :b#<cr>
     49 nnoremap <leader>hs :set list!<cr>
     50 nnoremap <leader>mm :<C-u>marks<CR>:normal! `
     51 nnoremap <leader>ml :<C-u>marks a-z<CR>:normal! `
     52 nnoremap <expr> <silent> 0 col('.') == match(getline('.'),'\S')+1 ? '0' : '^'
     53 
     54 " Visual mode
     55 vnoremap < <gv
     56 vnoremap > >gv
     57 vnoremap J :m '>+1<cr>gv=gv
     58 vnoremap K :m '<-2<cr>gv=gv