mirror of
https://github.com/GeorgeSG/dotfiles.git
synced 2026-09-05 00:48:45 +00:00
Add buffer management keys
This commit is contained in:
@@ -63,6 +63,10 @@ inoremap <Right> <Nop>
|
||||
inoremap <Up> <Nop>
|
||||
inoremap <Down> <Nop>
|
||||
|
||||
" Buffer Management
|
||||
nnoremap <Leader>j :bp<CR>
|
||||
nnoremap <Leader>k :bn<CR>
|
||||
|
||||
" Move lines up/down
|
||||
nnoremap <C-Down> :m .+1<CR>==
|
||||
nnoremap <C-Up> :m .-2<CR>==
|
||||
@@ -77,7 +81,6 @@ vnoremap < <gv
|
||||
nnoremap <Leader>p "+p
|
||||
vnoremap <Leader>y "+y
|
||||
|
||||
|
||||
" Automatically change current directory to that of the file in the buffer
|
||||
autocmd BufEnter * cd %:p:h
|
||||
|
||||
@@ -85,7 +88,6 @@ autocmd BufEnter * cd %:p:h
|
||||
" directory, and show all files that contain it
|
||||
map <F4> :execute "vimgrep /" . expand("<cword>") . "/j **" <Bar> cw<CR>
|
||||
|
||||
|
||||
" Disable gvim toolbars by default
|
||||
set guioptions-=T
|
||||
set guioptions-=m
|
||||
|
||||
Reference in New Issue
Block a user