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>cl :set cursorline!<cr>
|
||||
|
||||
" Better split switching
|
||||
map <C-j> <C-W>j
|
||||
map <C-k> <C-W>k
|
||||
map <C-h> <C-W>h
|
||||
map <C-l> <C-W>l
|
||||
map <C-down> <C-W>j
|
||||
map <C-up> <C-W>k
|
||||
map <C-left> <C-W>h
|
||||
map <C-right> <C-W>l
|
||||
" Better split switching with alt
|
||||
map <M-j> <C-W>j
|
||||
map <M-k> <C-W>k
|
||||
map <M-h> <C-W>h
|
||||
map <M-l> <C-W>l
|
||||
map <M-down> <C-W>j
|
||||
map <M-up> <C-W>k
|
||||
map <M-left> <C-W>h
|
||||
map <M-right> <C-W>l
|
||||
|
||||
" Move up and down on split lines
|
||||
map <Up> gk
|
||||
|
@ -153,6 +153,7 @@ map q: :q
|
|||
|
||||
" Paste Mode
|
||||
set pastetoggle=<F2>
|
||||
nmap p :pu<CR>
|
||||
|
||||
" ==================== File Type settings ====================
|
||||
set tabstop=4
|
||||
|
@ -308,6 +309,7 @@ let g:ctrlp_status_func = {
|
|||
" ==================== PLUGIN: NerdTree ====================
|
||||
" For toggling
|
||||
nmap <C-n> :NERDTreeToggle<CR>
|
||||
nmap <F7> :NERDTreeToggle<CR>
|
||||
noremap <Leader>n :NERDTreeToggle<cr>
|
||||
noremap <Leader>f :NERDTreeFind<cr>
|
||||
|
||||
|
|
Reference in a new issue