vim: Handy shortcuts
This commit is contained in:
parent
e3e16b7b2b
commit
1050c4dd7b
25
_vimrc
25
_vimrc
@ -81,7 +81,7 @@ filetype plugin indent on
|
|||||||
" remap <ESC>
|
" remap <ESC>
|
||||||
inoremap jk <ESC>
|
inoremap jk <ESC>
|
||||||
" leader key
|
" leader key
|
||||||
let mapleader = " "
|
let mapleader = "\<Space>"
|
||||||
|
|
||||||
" modeline
|
" modeline
|
||||||
set modeline
|
set modeline
|
||||||
@ -92,9 +92,30 @@ set shiftwidth=2
|
|||||||
|
|
||||||
" {{{ Shortcuts
|
" {{{ Shortcuts
|
||||||
" clear search
|
" clear search
|
||||||
nnoremap <silent> <buffer> <leader>l :nohl<cr>
|
nnoremap <Leader>l :nohl<cr>
|
||||||
|
" NERdTree
|
||||||
|
nnoremap <Leader>o :NERDTree<cr>
|
||||||
|
" save
|
||||||
|
nnoremap <Leader>w :w<CR>
|
||||||
|
" copy/paste system clipboard
|
||||||
|
vmap <Leader>y "+y
|
||||||
|
vmap <Leader>d "+d
|
||||||
|
nmap <Leader>p "+p
|
||||||
|
nmap <Leader>P "+P
|
||||||
|
vmap <Leader>p "+p
|
||||||
|
vmap <Leader>P "+P
|
||||||
|
" enter visual mode
|
||||||
|
nmap <Leader><Leader> V
|
||||||
|
" Automatically jump to end of text you pasted
|
||||||
|
vnoremap <silent> y y`]
|
||||||
|
vnoremap <silent> p p`]
|
||||||
|
nnoremap <silent> p p`]
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
|
" Stop that stupid window from popping up
|
||||||
|
map q: :q
|
||||||
|
|
||||||
" {{{ Vundle
|
" {{{ Vundle
|
||||||
" All of your Plugins must be added before the following line
|
" All of your Plugins must be added before the following line
|
||||||
call vundle#end() " required
|
call vundle#end() " required
|
||||||
|
Loading…
Reference in New Issue
Block a user