Archived
1
0
Fork 0

VIM: Change some keyboard Shortcuts

. Split mevement w/ ALT
. Paste below w/ p
. Toggle NerdTree w/ F7
This commit is contained in:
J. Elfring (i) 2023-08-21 09:00:56 +02:00
parent a1a6a1428f
commit fc7192dc6b

View file

@ -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>