Modify how fzf is loaded; More nvim terminal mode bindings;

Modify EDITOR to equal 'nvim'
This commit is contained in:
mitchell 2020-02-24 16:55:04 -05:00
parent 3ac866096d
commit 8c2bce0ad9
3 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
set -gx EDITOR vim
set -gx EDITOR nvim
set -gx GOPATH $HOME/Documents/go
set -gx GOBIN $GOPATH/bin
set -gx DOTNET_ENVIRONMENT Development

View File

@ -2,4 +2,9 @@ set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
" Mappings for terminal mode
tnoremap <Esc> <C-\><C-n>
tnoremap <A-h> <C-\><C-N><C-w>h
tnoremap <A-j> <C-\><C-N><C-w>j
tnoremap <A-k> <C-\><C-N><C-w>k
tnoremap <A-l> <C-\><C-N><C-w>l

3
.vimrc
View File

@ -34,6 +34,7 @@ Plug 'junegunn/limelight.vim'
Plug 'vimwiki/vimwiki'
Plug 'fsharp/vim-fsharp'
Plug 'hashivim/vim-terraform'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
call plug#end()
@ -58,8 +59,6 @@ set tabstop=2
set shiftwidth=2
set expandtab
set runtimepath+=/usr/local/opt/fzf
if exists('$TMUX')
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"