diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index e9f63ee..686bc99 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -100,21 +100,27 @@ map :bp map 10j map 10k -autocmd FileType cpp map :Make -autocmd FileType cpp map :Make debug -autocmd FileType cpp map :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q . +map :Bdelete autocmd FileType go let &makeprg="go run %:p:h/*.go" autocmd FileType go map :Make -autocmd FileType tex map :!arara % +autocmd FileType tex map :Dispatch arara % -if !filereadable(expand("%:p:h")."/Makefile") +autocmd FileType cpp map :Make +autocmd FileType cpp map :Make clean all + +if filereadable(expand("%:p:h")."/CMake/defualt/Makefile") let &makeprg="cd CMake/default && make" + autocmd FileType cpp map :Make debug endif +if filereadable(expand("%:p:h")."/build/cmake/Makefile") + let &makeprg="cd build/cmake && make" + autocmd FileType cpp map :Start cd build/cmake && ./run-engine.sh; echo "\nPress [enter] to close" && read + autocmd FileType cpp map :Start cd build/cmake && ./debug-engine.sh +endif + map :call ToggleQuickfixList() -map :e ./todo/todo.txt -map :e ./todo/done.txt " map :grep -F TODO -R ./src/**/*.cpp ./include/**/*.h :cw " map :grep -F NOTE -R ./src/**/*.cpp ./include/**/*.h :cw diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 96dc1f3..52322a1 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -5,6 +5,7 @@ setw -g monitor-activity on setw -g aggressive-resize on setw -g automatic-rename on set -s escape-time 0 +set-window-option -g xterm-keys on unbind C-b set -g prefix C-a