mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
fix(vim): Move Vim-only keymaps to vimrc which isn't sourced by Neovim
This commit is contained in:
@@ -123,9 +123,3 @@ vnoremap <leader>y "+y
|
|||||||
|
|
||||||
" Clear search, diff update and redraw
|
" Clear search, diff update and redraw
|
||||||
nnoremap <Esc> :nohlsearch<CR>:diffupdate<CR>:normal! <C-L><CR>
|
nnoremap <Esc> :nohlsearch<CR>:diffupdate<CR>:normal! <C-L><CR>
|
||||||
|
|
||||||
" Changes the pwd to the opened file's directory
|
|
||||||
nnoremap <leader>cd :lcd %:h<CR>
|
|
||||||
|
|
||||||
" Close Tab
|
|
||||||
nnoremap <leader>xt :tabclose
|
|
||||||
|
|||||||
@@ -31,3 +31,14 @@ autocmd! bufwritepost $VIMRC source %
|
|||||||
|
|
||||||
" Save inside vim config directory
|
" Save inside vim config directory
|
||||||
set undodir=$VIMDIR/undo//
|
set undodir=$VIMDIR/undo//
|
||||||
|
|
||||||
|
" Vim-only Keybindings
|
||||||
|
"""""""""""""""""""""""""""""""""""
|
||||||
|
let $VIMCONFIG=expand($HOME)."/.vim/configs.vim"
|
||||||
|
nnoremap <C-,> :edit $VIMCONFIG<CR>
|
||||||
|
|
||||||
|
let $VIMRC=expand($HOME)."/.vim/vimrc"
|
||||||
|
nnoremap <C-CR> :source $VIMRC<CR>
|
||||||
|
|
||||||
|
" Changes the pwd to the opened file's directory
|
||||||
|
nnoremap <leader>cd :lcd %:h<CR>
|
||||||
|
|||||||
Reference in New Issue
Block a user