diff options
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! |