diff options
author | Cody Hiar <cody@hiar.ca> | 2020-03-10 10:19:34 -0600 |
---|---|---|
committer | Cody Hiar <cody@hiar.ca> | 2020-03-10 10:19:34 -0600 |
commit | 11ab367425e0bacde6bce04a4cc55bcebddb9f27 (patch) | |
tree | bcfc73b818c88538616f52c9eac6da2441ed58b8 /plugin | |
parent | 43f31bf6e4871d6849e5882762988e01443775ea (diff) |
Updates for non dockerized neovim
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/vim-options.vim | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index 3907ddd..fbeeff8 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -53,20 +53,18 @@ au BufEnter *.py let w:m1=matchadd('ColorColumn', '\%81v', 100) au BufEnter *.py let w:m2=matchadd('Error', '\%121v', 100) au BufLeave *.py call clearmatches() -let mapleader="\<Space>" " Neovim (Docker) vs Vim if has('nvim') - nnoremap <leader>y :call system('nc -w 1 172.17.0.1 41401', @0)<CR> let $EditorDir=$HOME.'/.config/nvim/' - let $SessionDir='.vimcache' - silent! execute '!mkdir -p .vimcache/backup' else - nnoremap <leader>y :call system('nc -w 1 127.0.0.1 41401', @0)<CR> let $EditorDir=$HOME.'/.vim/' - let $SessionDir='.' endif +" Set leader +let mapleader="\<Space>" +" For easier copying +nnoremap <leader>y :call system('nc -w 1 127.0.0.1 41401', @0)<CR> " type jj to get out of insert mode inoremap jj <ESC> " Ctags for python project @@ -123,11 +121,11 @@ noremap <leader>ei :!isort %<CR> noremap <leader>eb :!black %<CR> " Session saving function! SaveSession() - :mksession! $SessionDir/session.vim + :mksession! ./session.vim :echo 'Session Saved!' endfunction nnoremap <leader>ess :call SaveSession()<CR> -nnoremap <leader>esr :source $SessionDir/session.vim<CR> +nnoremap <leader>esr :source ./session.vim<CR> " Delete current file and purge buffer function! Rm() :call delete(expand('%')) | bdelete! |