Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My idea vimrc setup
"" Source your .vimrc
"source ~/.vimrc
"" -- Suggested options --
" Show a few lines of context around the cursor. Note that this makes the
" text scroll if you mouse-click near the start or end of the window.
"set number relativenumber
set idearefactormode=keep
set ideajoin
set incsearch
set ignorecase smartcase
let mapleader = " "
"noremap <Esc> <nop>
"nmap <S-Enter> O<Esc>
"nmap <CR> o<Esc>
nnoremap <C-j> :m +1<CR>
nnoremap <C-k> :m -2<CR>
inoremap <C-j> <Esc>:m +1<CR>gi
inoremap <C-k> <Esc>:m -2<CR>gi
" system clipboard
vmap <leader>y "+y
vmap <leader>d "+d
nmap <leader>y "+yy
nmap <leader>p "+p
nmap <leader>P "+P
vmap <leader>p "+p
vmap <leader>P "+P
" scrolling
nmap <leader>d <C-d>
nmap <leader>u <C-u>
vmap <leader>d <C-d>
vmap <leader>u <C-u>
nmap <leader>h :action PreviousTab<CR>
nmap <leader>l :action NextTab<CR>
nmap <leader>bd :action CloseEditor<CR>
nnoremap <leader><leader> <C-Tab>
" extensions
set surround
set NERDTree
let g:NERDTreeMapActivateNode='l'
let g:NERDTreeMapJumpParent='h'⏎
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment