Fixed visual-execute for linux

This commit is contained in:
Talia 2018-03-09 14:57:04 +01:00
parent d36e470044
commit b4f29b49f9
2 changed files with 3 additions and 2 deletions

1
bashrc
View File

@ -26,6 +26,7 @@ alias tmux='tmux -2'
alias pi='ssh pi -t ''tmux a -t home \|\| tmux new-session -s home'''
alias server='ssh server -t ''tmux a -t home \|\| tmux new-session -s home'''
alias ltc='getclip | luac -l -'
alias sign='gpg --armor --no-version --detach-sign --local-user darkwiiplayer'
stty -ixon
# Enable Vi editing mode

4
vimrc
View File

@ -409,10 +409,10 @@ noremap gk k
nnoremap Y y$
" --- VISUAL EXECUTE ---
let $LUA_PATH = $LUA_PATH.";".expand("<sfile>:p:h")."/lua/?.lua"
let $LUA_PATH = expand("<sfile>:p:h")."/lua/?.lua"
let g:mooncompile = "!moonc ".expand("<sfile>:p:h")."/lua"
command! Mooncompile silent exec g:mooncompile
let g:exe_prg = "moonc -- | lua -l vim -"
let g:exe_prg = "moonc -- \| lua -l vim -"
vnoremap <CR> :<C-U>exec "'<,'>!".g:exe_prg<CR>
vnoremap <C-CR> ""y<CR>
\ :call setreg("\"", substitute(getreg("\""), "\n", "", ""), "v")<CR>