Skip to content

Instantly share code, notes, and snippets.

@Amwam
Created December 8, 2021 15:09
Show Gist options
  • Save Amwam/4088a4e98f39eb9684311886ceef78c2 to your computer and use it in GitHub Desktop.
Save Amwam/4088a4e98f39eb9684311886ceef78c2 to your computer and use it in GitHub Desktop.
Idea vim rc file
set ignorecase " Ignore case in search patters
set smartcase " Case sensitive when capital in search
set incsearch " Highlight as you search
set smartjoin " join via IDE
set number
set relativenumber
set visualbell
set gdefault
let mapleader = " "
"Show message on status line, for current mode
set showmode
" Highlight variables with *
nnoremap * yiw:let @/=@"<CR>:set hls<CR>zz
" Turn of highlighting by double tapping \\
nnoremap <leader><leader> :set hls!<CR>
" Use system clipboard
set clipboard=unnamed
" Vim-surround
set surround
set ideajoin
set easymotion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment