Skip to content

Commit

Permalink
undo history in vim and auto_tester
Browse files Browse the repository at this point in the history
  • Loading branch information
kostaskonkk committed Jun 19, 2019
1 parent 9cff96c commit df60679
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 21 deletions.
11 changes: 3 additions & 8 deletions .aliases
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
# vim: filetype=sh:

######################## D[A]TMO ##############################

alias datmo='cd ~/datmo_ws/src/datmo'
alias evo='cd ~/datmo_ws/src/evo'
alias vdatmo='vim -S ~/datmo_ws/src/datmo/.datmo.vim'
alias t='roslaunch datmo test.launch'
alias compile='cd ~/datmo_ws && find src/datmo/src |entr -p catkin_make'

###################### OS [S]pecifics ##########################

if [[ $OSTYPE == darwin* ]]; then
alias open='open -a Finder ./'
elif [[ $OSTYPE == linux-gnu ]]; then
alias open='gnome-open . &'
fi

###################### [P]lots ###########################

alias autoplot='cd ~/datmo_ws/src/plots/src && find plot.py |entr -p python plot.py'
###################### [E]vo ###########################
alias evo='cd ~/datmo_ws/src/evo'
alias run='find tracking_evaluation.py | entr python tracking_evaluation.py'

######################## [G]eneral ##############################

alias cp='cp -iv' # Preferred 'cp' implementation
alias mv='mv -iv' # Preferred 'mv' implementation
alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation
Expand Down Expand Up @@ -49,7 +45,6 @@ alias la='ls -A'
alias l='ls -CF'

########################## R[O]S ##############################

alias mmac='export ROS_MASTER_URI=http://localhost:11311'
alias core='roscore &'
alias rviz='rosrun rviz rviz &'
Expand Down
4 changes: 2 additions & 2 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
stty -ixon # Disable ctrl-s and ctrl-q.
shopt -s autocd #Allows you to cd into directory merely by typing the directory name.

export EDITOR=/usr/locan/bin/vim
#export EDITOR=/usr/locan/bin/vim
export EDITOR="vim"
export VISUAL=/usr/locan/bin/vim
#export VISUAL=/usr/locan/bin/vim
export PS1="kostas\$ "

export TERMINAL="st"
Expand Down
5 changes: 5 additions & 0 deletions .config/compton.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
backend = "glx";
glx-no-stencil = true;
paint-on-overlay = true;
vsync = "opengl-swc";

13 changes: 6 additions & 7 deletions .config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ bar {
mode dock
modifier None
}
new_window pixel 2
new_window pixel 4


# use Mouse+$mod to drag floating windows to their wanted position
Expand All @@ -47,17 +47,16 @@ bindsym $mod+Shift+q kill
bindsym $mod+d exec dmenu_run

exec firefox
exec i3-sensible-terminal
exec st

# Wifi Icon
exec --no-startup-id nm-applet
exec --no-startup-id dropbox start
exec --no-startup-id compton

# Keyboard
#exec "setxkbmap -model pc105 -layout us,gr -option 'grp:alt_shift_toggle'"
exec "setxkbmap -model pc105 -layout us,gr "
#exec "setxkbmap -option 'grp:alt_shift_toggle'"
exec setxkbmap -layout us,gr -option 'grp:caps_toggle' -option 'grp:switch'
# man xkeyboard-config


# change focus
Expand Down Expand Up @@ -123,7 +122,7 @@ bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+8 workspace Report
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10

Expand All @@ -135,7 +134,7 @@ bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+8 move container to workspace Report
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10

Expand Down
5 changes: 5 additions & 0 deletions .local/bin/auto_tester
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#! /bin/bash
mkdir /home/kostas/results/"$(date +%d-%m_%H:%M:%S)"


#find /home/kostas/Dropbox/experiments/7_mid_exp/*.bag
12 changes: 8 additions & 4 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ filetype plugin on "important for nerdcommenter

syntax enable
set number
set undofile "Maintain undo history between sessions
set undodir=~/.vim/undo
set relativenumber
set showcmd " show last command at the bottom bar
set cursorline " highlight current line
Expand All @@ -30,10 +32,10 @@ let g:UltiSnipsJumpBackwardTrigger="<s-tab>"
let g:UltiSnipsEditSplit="vertical" " :UltiSnipsEdit splits the window.

if has('macunix')
let g:UltiSnipsSnippetDirectories = ['/Users/kostas/.dotfiles/ultisnips', 'UltiSnips']
let g:UltiSnipsSnippetDirectories = ['/Users/kostas/ultisnips', 'UltiSnips']
" let g:vimtex_view_method='skim'
else
let g:UltiSnipsSnippetDirectories = ['/home/kostas/.dotfiles/ultisnips', 'UltiSnips']
let g:UltiSnipsSnippetDirectories = ['/home/kostas/ultisnips', 'UltiSnips']
let g:vimtex_view_method='mupdf'
endif

Expand All @@ -54,7 +56,7 @@ nnoremap <leader>b :ls<CR>:b<Space>
nnoremap <leader>u :GundoToggle<CR> " toggle gundo
nnoremap <leader>t :TagbarToggle<CR> " toggle tagbar
nnoremap <leader>w :w<CR>
nnoremap <leader>a :wa<CR>
nnoremap <leader>a a<CR>
nnoremap <leader>q :q<CR>
nnoremap <leader>x :x<CR>
" Check file in shellcheck:
Expand All @@ -78,6 +80,7 @@ au BufNewFile,BufRead *.cpp,*.h,*.hpp
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set foldmethod=syntax |
\ set shiftwidth=4 |
\ set textwidth=79 |
\ set expandtab |
Expand Down Expand Up @@ -105,7 +108,8 @@ let g:vimtex_quickfix_mode=0
let g:tex_conceal='abdmg' "concealment
set conceallevel=1 "concealment
au BufNewFile,BufRead *.tex
\ set spell spelllang=en_gb
\ set spell spelllang=en_gb |
\ set wrap linebreak nolist

""""""""" [P]lugin manager
if empty(glob('~/.vim/autoload/plug.vim'))
Expand Down
4 changes: 4 additions & 0 deletions ultisnips/python.snippets
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
snippet p "print expansion"
print(${1:pass})
endsnippet

snippet t "quick testing"
print("it works")
endsnippet
4 changes: 4 additions & 0 deletions ultisnips/tex.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ snippet item "Itemize" b
\end{itemize}
endsnippet

snippet π "insert \pi" b
\pi
endsnippet

0 comments on commit df60679

Please sign in to comment.