Skip to content

Instantly share code, notes, and snippets.

@gzmask
Created December 29, 2016 02:10
Show Gist options
  • Save gzmask/ec4134cd3774703c57d522f71add7142 to your computer and use it in GitHub Desktop.
Save gzmask/ec4134cd3774703c57d522f71add7142 to your computer and use it in GitHub Desktop.
set gdefault
" colorscheme
set cuc cul
hi CursorColumn ctermbg=17
hi CursorLine cterm=none ctermbg=17
if has("gui_running")
colorscheme torte
set transparency=15
endif
" usability
let mapleader = ","
set viminfo= " dont' use or save viminfo file
set expandtab
set lazyredraw
set shiftwidth=2
set softtabstop=2
set autoindent smartindent
set showcmd
set nobackup
set noswapfile
set ruler
set number
set incsearch
set ignorecase
set nocompatible
set scrolloff=5 " keep at least 5 lines above/below
set sidescrolloff=5 " keep at least 5 lines left/right
set wildmenu " :e <Tab> wildmenu
set wildmode=list:longest "set wildmenu to list choice
autocmd BufEnter * silent! lcd %:p:h " set working dir to current file
" ideaVIM
" list of actions https://gist.github.com/zchee/9c78f91cc5ad771c1f5d
nnoremap <leader>d :action QuickJavaDoc<CR>
nnoremap <leader>e :action RecentFiles<CR>
nnoremap <leader>k :action FileStructurePopup<CR>
nmap <leader>r :source ~/.ideavimrc<CR>
nnoremap <leader>f :action Find<CR>
nnoremap <leader>u :action GotoSuperMethod<CR>
nnoremap <leader>b :action GotoDeclaration<CR>
nnoremap <leader>i :action ImplementMethods<CR>
nnoremap <leader>p :action ParameterInfo<CR>
nnoremap <leader>w :action EditorSelectWord<CR>
nnoremap <leader>l :action ReformatCode<CR>
nnoremap <leader><F7> :action FindUsages<CR>
nnoremap <leader>a :action GotoAction<CR>
nnoremap <leader>h :action TypeHierarchy<CR>
nnoremap <leader><tab> :action MoveEditorToOppositeTabGroup<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment