VIM: Change some keyboard Shortcuts
. Split mevement w/ ALT . Paste below w/ p . Toggle NerdTree w/ F7
This commit is contained in:
parent
a1a6a1428f
commit
fc7192dc6b
1 changed files with 11 additions and 9 deletions
|
@ -121,15 +121,15 @@ nmap <leader>lr :set relativenumber!<cr>
|
||||||
nmap <leader>cc :set cursorcolumn!<cr>
|
nmap <leader>cc :set cursorcolumn!<cr>
|
||||||
nmap <leader>cl :set cursorline!<cr>
|
nmap <leader>cl :set cursorline!<cr>
|
||||||
|
|
||||||
" Better split switching
|
" Better split switching with alt
|
||||||
map <C-j> <C-W>j
|
map <M-j> <C-W>j
|
||||||
map <C-k> <C-W>k
|
map <M-k> <C-W>k
|
||||||
map <C-h> <C-W>h
|
map <M-h> <C-W>h
|
||||||
map <C-l> <C-W>l
|
map <M-l> <C-W>l
|
||||||
map <C-down> <C-W>j
|
map <M-down> <C-W>j
|
||||||
map <C-up> <C-W>k
|
map <M-up> <C-W>k
|
||||||
map <C-left> <C-W>h
|
map <M-left> <C-W>h
|
||||||
map <C-right> <C-W>l
|
map <M-right> <C-W>l
|
||||||
|
|
||||||
" Move up and down on split lines
|
" Move up and down on split lines
|
||||||
map <Up> gk
|
map <Up> gk
|
||||||
|
@ -153,6 +153,7 @@ map q: :q
|
||||||
|
|
||||||
" Paste Mode
|
" Paste Mode
|
||||||
set pastetoggle=<F2>
|
set pastetoggle=<F2>
|
||||||
|
nmap p :pu<CR>
|
||||||
|
|
||||||
" ==================== File Type settings ====================
|
" ==================== File Type settings ====================
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
|
@ -308,6 +309,7 @@ let g:ctrlp_status_func = {
|
||||||
" ==================== PLUGIN: NerdTree ====================
|
" ==================== PLUGIN: NerdTree ====================
|
||||||
" For toggling
|
" For toggling
|
||||||
nmap <C-n> :NERDTreeToggle<CR>
|
nmap <C-n> :NERDTreeToggle<CR>
|
||||||
|
nmap <F7> :NERDTreeToggle<CR>
|
||||||
noremap <Leader>n :NERDTreeToggle<cr>
|
noremap <Leader>n :NERDTreeToggle<cr>
|
||||||
noremap <Leader>f :NERDTreeFind<cr>
|
noremap <Leader>f :NERDTreeFind<cr>
|
||||||
|
|
||||||
|
|
Reference in a new issue