Moving configs up a level since I copied them wrong the first time
This commit is contained in:
38
.config/nvim/keybindings.vim
Normal file
38
.config/nvim/keybindings.vim
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
let mapleader = ","
|
||||
nmap <silent> <leader>fed :e $VIMHOME/init.vim<cr>
|
||||
|
||||
nmap <silent> <leader>ex :NERDTree<cr>
|
||||
nmap <silent> <leader>exc :NERDTreeClose<cr>
|
||||
|
||||
" ncm2 autocomplete
|
||||
"
|
||||
" CTRL-C doesn't trigger the InsertLeave autocmd . map to <ESC> instead.
|
||||
" inoremap <c-c> <ESC>
|
||||
|
||||
" " When the <Enter> key is pressed while the popup menu is visible, it only
|
||||
" " hides the menu. Use this mapping to close the menu and also start a new
|
||||
" " line.
|
||||
" inoremap <expr> <CR> (pumvisible() ? "\<c-y>\<cr>" : "\<CR>")
|
||||
|
||||
" " Use <TAB> to select the popup menu:
|
||||
" inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||
" inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||
|
||||
nnoremap <C-p> :Files<space>
|
||||
nnoremap <leader>amd :Files $CODE_DIR/auditManager<cr>
|
||||
nnoremap <leader>a :Rg<space>
|
||||
nnoremap <leader>A :exec "Rg ".expand("<cword>")<cr>
|
||||
nmap <leader>to :tabnew<cr>
|
||||
nmap <leader>tn :tabnext<cr>
|
||||
nmap <leader>tp :tabprevious<cr>
|
||||
nmap <leader>tc :tabclose<cr>
|
||||
nmap <leader>ob :OpenBookmark<space>
|
||||
|
||||
command! -bang -nargs=* Rg
|
||||
\ call fzf#vim#grep(
|
||||
\ 'rg --column --line-number --no-heading --color=always --smart-case -- '.shellescape(<q-args>), 1,
|
||||
\ fzf#vim#with_preview(), <bang>0)
|
||||
|
||||
|
||||
autocmd! bufwritepost keybindings.vim source %
|
||||
Reference in New Issue
Block a user