Compare commits
13 commits
5fd28ca3f1
...
c100d25bae
Author | SHA1 | Date | |
---|---|---|---|
Geoffrey Frogeye | c100d25bae | ||
Geoffrey Frogeye | 2a0d5f00b2 | ||
Geoffrey Frogeye | 29478ead07 | ||
Geoffrey Frogeye | c9185e2f13 | ||
Geoffrey Frogeye | dd53e9333a | ||
Geoffrey Frogeye | 7d065a8004 | ||
Geoffrey Frogeye | 107fcc21aa | ||
Geoffrey Frogeye | fbd96948fa | ||
Geoffrey Frogeye | d3dc1565d2 | ||
Geoffrey Frogeye | a4d68db739 | ||
Geoffrey Frogeye | 95466665f0 | ||
Geoffrey Frogeye | ef42de3a2d | ||
Geoffrey Frogeye | 291597424b |
12
bashrc
12
bashrc
|
@ -23,6 +23,7 @@ fi
|
||||||
export JAVA_FONTS=/usr/share/fonts/TTF
|
export JAVA_FONTS=/usr/share/fonts/TTF
|
||||||
export ANDROID_HOME=/opt/android-sdk
|
export ANDROID_HOME=/opt/android-sdk
|
||||||
export GOPATH=$HOME/.go
|
export GOPATH=$HOME/.go
|
||||||
|
export PATH=$GOPATH/bin:$PATH
|
||||||
export XDG_CONFIG_HOME=$HOME/.config
|
export XDG_CONFIG_HOME=$HOME/.config
|
||||||
export ARDUINO=/usr/share/arduino
|
export ARDUINO=/usr/share/arduino
|
||||||
export ARDUINO_DIR=$ARDUINO
|
export ARDUINO_DIR=$ARDUINO
|
||||||
|
@ -31,7 +32,7 @@ export ARDMK_VENDOR=archlinux-arduino
|
||||||
# ALIASES
|
# ALIASES
|
||||||
|
|
||||||
# Completion for existing commands
|
# Completion for existing commands
|
||||||
export LS_OPTIONS='--group-directories-first --time-style=+"%d/%m/%Y %H:%M:%S" --color=auto --classify --human-readable'
|
export LS_OPTIONS='--group-directories-first --time-style=+"%d/%m/%Y %H:%M:%S" --color=auto --file-type --human-readable'
|
||||||
alias ls="ls $LS_OPTIONS"
|
alias ls="ls $LS_OPTIONS"
|
||||||
alias grep='grep --color=tty -d skip'
|
alias grep='grep --color=tty -d skip'
|
||||||
alias mkdir='mkdir -v'
|
alias mkdir='mkdir -v'
|
||||||
|
@ -56,6 +57,7 @@ alias s='sudo -s -E'
|
||||||
alias po='eval $(proxy off)'
|
alias po='eval $(proxy off)'
|
||||||
alias nw="sudo systemctl restart NetworkManager"
|
alias nw="sudo systemctl restart NetworkManager"
|
||||||
alias mc="machines"
|
alias mc="machines"
|
||||||
|
alias tracefiles="strace -f -t -e trace=file"
|
||||||
alias vpn="sudo systemctl start openvpn-client@$HOSTNAME"
|
alias vpn="sudo systemctl start openvpn-client@$HOSTNAME"
|
||||||
alias vpno="sudo systemctl stop openvpn-client@$HOSTNAME"
|
alias vpno="sudo systemctl stop openvpn-client@$HOSTNAME"
|
||||||
alias vpns="sudo systemctl status openvpn-client@$HOSTNAME"
|
alias vpns="sudo systemctl status openvpn-client@$HOSTNAME"
|
||||||
|
@ -104,7 +106,7 @@ export PS4="- "
|
||||||
|
|
||||||
# CUSTOM SCRIPTS
|
# CUSTOM SCRIPTS
|
||||||
|
|
||||||
export PATH="$HOME/.scripts/:$PATH"
|
export PATH="$HOME/.bin/:$HOME/.scripts/:$PATH"
|
||||||
[ -f ~/.gscripts/gprofile ] && source ~/.gscripts/gprofile
|
[ -f ~/.gscripts/gprofile ] && source ~/.gscripts/gprofile
|
||||||
|
|
||||||
# UTILITIES
|
# UTILITIES
|
||||||
|
@ -117,7 +119,7 @@ function fuck {
|
||||||
if which thefuck &> /dev/null
|
if which thefuck &> /dev/null
|
||||||
then
|
then
|
||||||
eval $(thefuck --alias)
|
eval $(thefuck --alias)
|
||||||
fuck
|
fuck $@
|
||||||
else
|
else
|
||||||
echo "thefuck is not installed on this system."
|
echo "thefuck is not installed on this system."
|
||||||
fi
|
fi
|
||||||
|
@ -126,12 +128,12 @@ alias FUCK='fuck'
|
||||||
|
|
||||||
# Node Version Manager
|
# Node Version Manager
|
||||||
function nvm {
|
function nvm {
|
||||||
|
export NVM_DIR="$HOME/.nvm"
|
||||||
if [ -s "$NVM_DIR/nvm.sh" ]
|
if [ -s "$NVM_DIR/nvm.sh" ]
|
||||||
then
|
then
|
||||||
. "$NVM_DIR/nvm.sh"
|
. "$NVM_DIR/nvm.sh"
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
||||||
export NVM_DIR="$HOME/.nvm"
|
nvm $@
|
||||||
nvm
|
|
||||||
else
|
else
|
||||||
echo "NVM is not installed on this system."
|
echo "NVM is not installed on this system."
|
||||||
fi
|
fi
|
||||||
|
|
2
bin/.gitignore
vendored
Normal file
2
bin/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
*
|
||||||
|
!.gitignore
|
|
@ -1,7 +1,7 @@
|
||||||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||||
# The parser is also very primitive, and not human-friendly.
|
# The parser is also very primitive, and not human-friendly.
|
||||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
||||||
sort_key=46
|
sort_key=47
|
||||||
sort_direction=1
|
sort_direction=1
|
||||||
hide_threads=0
|
hide_threads=0
|
||||||
hide_kernel_threads=1
|
hide_kernel_threads=1
|
||||||
|
@ -9,7 +9,7 @@ hide_userland_threads=1
|
||||||
shadow_other_users=0
|
shadow_other_users=0
|
||||||
show_thread_names=0
|
show_thread_names=0
|
||||||
show_program_path=0
|
show_program_path=0
|
||||||
highlight_base_name=0
|
highlight_base_name=1
|
||||||
highlight_megabytes=0
|
highlight_megabytes=0
|
||||||
highlight_threads=1
|
highlight_threads=1
|
||||||
tree_view=0
|
tree_view=0
|
||||||
|
|
|
@ -146,16 +146,16 @@ set $WS9 9
|
||||||
set $WS10 10
|
set $WS10 10
|
||||||
|
|
||||||
# Workspace output
|
# Workspace output
|
||||||
workspace "$WS1" output LVDS1
|
workspace "$WS1" output DP-5
|
||||||
workspace "$WS2" output VGA1
|
workspace "$WS2" output DP-3
|
||||||
workspace "$WS3" output LVDS1
|
workspace "$WS3" output VGA-0
|
||||||
workspace "$WS4" output VGA1
|
workspace "$WS4" output DP-5
|
||||||
workspace "$WS5" output LVDS1
|
workspace "$WS5" output DP-3
|
||||||
workspace "$WS6" output VGA1
|
workspace "$WS6" output VGA-0
|
||||||
workspace "$WS7" output LVDS1
|
workspace "$WS7" output DP-5
|
||||||
workspace "$WS8" output VGA1
|
workspace "$WS8" output DP-3
|
||||||
workspace "$WS9" output LVDS1
|
workspace "$WS9" output VGA-0
|
||||||
workspace "$WS10" output VGA1
|
workspace "$WS10" output DP-5
|
||||||
|
|
||||||
# switch to workspace
|
# switch to workspace
|
||||||
bindsym $mod+1 workspace $WS1
|
bindsym $mod+1 workspace $WS1
|
||||||
|
@ -353,6 +353,7 @@ set $14 #66efd5
|
||||||
set $15 #cfd0c2
|
set $15 #cfd0c2
|
||||||
|
|
||||||
# Inactivity settings
|
# Inactivity settings
|
||||||
|
exec "$screen_config"
|
||||||
exec --no-startup-id xautolock -time 10 -locker 'xset dpms force standby' -killtime 1 -killer '$locker'
|
exec --no-startup-id xautolock -time 10 -locker 'xset dpms force standby' -killtime 1 -killer '$locker'
|
||||||
bindsym $mod+F4 exec --no-startup-id xautolock -disable
|
bindsym $mod+F4 exec --no-startup-id xautolock -disable
|
||||||
bindsym $mod+F5 exec --no-startup-id xautolock -enable
|
bindsym $mod+F5 exec --no-startup-id xautolock -enable
|
||||||
|
@ -367,6 +368,7 @@ exec --no-startup-id numlockx on # Activate Num lock
|
||||||
#exec --no-startup-id compton -b # Compositing manager
|
#exec --no-startup-id compton -b # Compositing manager
|
||||||
exec --no-startup-id unclutter # Hide mouse cursor after some time
|
exec --no-startup-id unclutter # Hide mouse cursor after some time
|
||||||
exec --no-startup-id dunst # Notifications
|
exec --no-startup-id dunst # Notifications
|
||||||
|
exec --no-startup-id keynav # Keyboard cursor controller
|
||||||
#exec --no-startup-id $HOME/.config/i3/clipmenud # Clipboard manager
|
#exec --no-startup-id $HOME/.config/i3/clipmenud # Clipboard manager
|
||||||
exec --no-startup-id mpd # Music Player Daemon
|
exec --no-startup-id mpd # Music Player Daemon
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 524 B After Width: | Height: | Size: 266 B |
|
@ -112,11 +112,11 @@ tab-move +
|
||||||
gr
|
gr
|
||||||
|
|
||||||
tab-next
|
tab-next
|
||||||
J
|
L
|
||||||
<ctrl-pgdown>
|
<ctrl-pgdown>
|
||||||
|
|
||||||
tab-prev
|
tab-prev
|
||||||
K
|
H
|
||||||
<ctrl-pgup>
|
<ctrl-pgup>
|
||||||
|
|
||||||
tab-clone
|
tab-clone
|
||||||
|
@ -131,24 +131,24 @@ reload -f
|
||||||
<ctrl-f5>
|
<ctrl-f5>
|
||||||
|
|
||||||
back
|
back
|
||||||
H
|
J
|
||||||
<back>
|
<back>
|
||||||
|
|
||||||
back -t
|
back -t
|
||||||
th
|
tj
|
||||||
|
|
||||||
back -w
|
back -w
|
||||||
wh
|
wj
|
||||||
|
|
||||||
forward
|
forward
|
||||||
L
|
K
|
||||||
<forward>
|
<forward>
|
||||||
|
|
||||||
forward -t
|
forward -t
|
||||||
tl
|
tk
|
||||||
|
|
||||||
forward -w
|
forward -w
|
||||||
wl
|
wk
|
||||||
|
|
||||||
fullscreen
|
fullscreen
|
||||||
<f11>
|
<f11>
|
||||||
|
@ -454,6 +454,12 @@ run-macro
|
||||||
wq
|
wq
|
||||||
ZZ
|
ZZ
|
||||||
|
|
||||||
|
tab-focus -1
|
||||||
|
g$
|
||||||
|
|
||||||
|
tab-pin
|
||||||
|
<ctrl-p>
|
||||||
|
|
||||||
[insert]
|
[insert]
|
||||||
# Keybindings for insert mode.
|
# Keybindings for insert mode.
|
||||||
# Since normal keypresses are passed through, only special keys are
|
# Since normal keypresses are passed through, only special keys are
|
||||||
|
|
File diff suppressed because it is too large
Load diff
3
inputrc
3
inputrc
|
@ -6,7 +6,7 @@ set completion-query-items 200
|
||||||
set editing-mode vi
|
set editing-mode vi
|
||||||
set history-preserve-point on
|
set history-preserve-point on
|
||||||
set history-size 10000
|
set history-size 10000
|
||||||
set horizontal-scroll-mode on
|
set horizontal-scroll-mode off
|
||||||
set mark-directories on
|
set mark-directories on
|
||||||
set mark-modified-lines off
|
set mark-modified-lines off
|
||||||
set mark-symlinked-directories on
|
set mark-symlinked-directories on
|
||||||
|
@ -28,7 +28,6 @@ $if mode=vi
|
||||||
set keymap vi-insert
|
set keymap vi-insert
|
||||||
# these are for vi-insert mode
|
# these are for vi-insert mode
|
||||||
"jk": vi-movement-mode
|
"jk": vi-movement-mode
|
||||||
"mù": vi-movement-mode
|
|
||||||
"\e[A": history-search-backward
|
"\e[A": history-search-backward
|
||||||
"\e[B": history-search-forward
|
"\e[B": history-search-forward
|
||||||
Control-l: clear-screen
|
Control-l: clear-screen
|
||||||
|
|
11
scripts/docker-image-childs
Executable file
11
scripts/docker-image-childs
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# Find the dependent child image from an image
|
||||||
|
|
||||||
|
parent="$1"
|
||||||
|
|
||||||
|
# From https://stackoverflow.com/a/41634462
|
||||||
|
for i in $(docker images -q)
|
||||||
|
do
|
||||||
|
docker history "$i" | grep -q "$parent" && echo "$i"
|
||||||
|
done | grep -v "$parent" | sort -u
|
5
scripts/docker-rm
Executable file
5
scripts/docker-rm
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
docker unpause $(docker ps -q)
|
||||||
|
docker kill $(docker ps -q)
|
||||||
|
docker container prune -f
|
||||||
|
docker network prune -f
|
|
@ -164,6 +164,8 @@ function altInst {
|
||||||
|
|
||||||
# Common CLI
|
# Common CLI
|
||||||
|
|
||||||
|
.Xresources.d/configure
|
||||||
|
|
||||||
# Utils
|
# Utils
|
||||||
inst coreutils man openssl-tool grep sed sh tar
|
inst coreutils man openssl-tool grep sed sh tar
|
||||||
if [ $TERMUX == 1 ]; then
|
if [ $TERMUX == 1 ]; then
|
||||||
|
@ -235,14 +237,14 @@ fi
|
||||||
|
|
||||||
if [ $GUI == 1 ]; then
|
if [ $GUI == 1 ]; then
|
||||||
# Desktop manager
|
# Desktop manager
|
||||||
inst i3 i3lock i3status dunst unclutter xautolock feh numlockx scrot
|
inst i3 i3lock dunst unclutter xautolock feh numlockx scrot xterm xclip
|
||||||
if [ $ARCH == 1 ]; then
|
if [ $ARCH == 1 ]; then
|
||||||
altInst polybar-git ttf-font-awesome autorandr-git
|
altInst polybar-git ttf-font-awesome autorandr-git keynav-enhanced
|
||||||
else
|
else
|
||||||
echo "TODO compile polybar-git autorandr-git"
|
echo "TODO compile polybar-git autorandr-git"
|
||||||
fi
|
fi
|
||||||
if [ $DEBIAN == 1 ]; then
|
if [ $DEBIAN == 1 ]; then
|
||||||
inst suckless-tools
|
inst suckless-tools keynav
|
||||||
if [ $ADMIN == 0 ]; then
|
if [ $ADMIN == 0 ]; then
|
||||||
debloc altern dmenu xft
|
debloc altern dmenu xft
|
||||||
fi
|
fi
|
||||||
|
@ -263,17 +265,18 @@ if [ $GUI == 1 ]; then
|
||||||
rm -rf $TMP_DIR
|
rm -rf $TMP_DIR
|
||||||
|
|
||||||
elif [ $ARCH == 1 ]; then
|
elif [ $ARCH == 1 ]; then
|
||||||
inst qutebrowser qt5-webengine
|
inst qutebrowser qt5-webengine python-opengl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Screen filter
|
# Screen filter
|
||||||
if [ $ARCH == 1 ]; then
|
if [ $ARCH == 1 ]; then
|
||||||
altInst sct
|
altInst sct
|
||||||
elif [ $TERMUX != 1 ]; then
|
elif [ $TERMUX != 1 ]; then
|
||||||
if [ ! -f $HOME/.gscripts/sct ]; then
|
if [ ! -f $HOME/.bin/sct ]; then
|
||||||
TMP=$(mktemp)
|
TMP=$(mktemp)
|
||||||
wget http://www.tedunangst.com/flak/files/sct.c -O $TMP
|
wget http://www.tedunangst.com/flak/files/sct.c -O $TMP
|
||||||
cc -std=c99 -O2 -I /usr/X11R6/include -o $HOME/.gscripts/sct $TMP -L /usr/X11R6/lib -lm -lX11 -lXrandr
|
cc -std=c99 -O2 -I /usr/X11R6/include -o $HOME/.bin/sct $TMP -L /usr/X11R6/lib -lm -lX11 -lXrandr
|
||||||
|
rm $TMP
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -293,12 +296,13 @@ if [ $EXTRA == 1 ]; then
|
||||||
inst sl ffmpeg youtube-dl optipng
|
inst sl ffmpeg youtube-dl optipng
|
||||||
|
|
||||||
if [ $ARCH == 1 ]; then
|
if [ $ARCH == 1 ]; then
|
||||||
|
inst jq
|
||||||
altInst pdftk translate-shell git-lfs js-beautify insect visidata-git
|
altInst pdftk translate-shell git-lfs js-beautify insect visidata-git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Extra GUI
|
# Extra GUI
|
||||||
if [ $GUI == 1 ]; then
|
if [ $GUI == 1 ]; then
|
||||||
inst vlc gimp mpd vimpc
|
inst vlc gimp mpd vimpc alsa-utils
|
||||||
|
|
||||||
if [ $ARCH == 1 ]; then
|
if [ $ARCH == 1 ]; then
|
||||||
inst simplescreenrecorder
|
inst simplescreenrecorder
|
||||||
|
|
22
scripts/lorem
Executable file
22
scripts/lorem
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Generates Lorem Ipsum
|
||||||
|
|
||||||
|
original="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim. Pellentesque congue. Ut in risus volutpat libero pharetra tempor. Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent blandit odio eu enim. Pellentesque sed dui ut augue blandit sodales. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh. Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.
|
||||||
|
|
||||||
|
Ut velit mauris, egestas sed, gravida nec, ornare ut, mi. Aenean ut orci vel massa suscipit pulvinar. Nulla sollicitudin. Fusce varius, ligula non tempus aliquam, nunc turpis ullamcorper nibh, in tempus sapien eros vitae ligula. Pellentesque rhoncus nunc et augue. Integer id felis. Curabitur aliquet pellentesque diam. Integer quis metus vitae elit lobortis egestas. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi vel erat non mauris convallis vehicula. Nulla et sapien. Integer tortor tellus, aliquam faucibus, convallis id, congue eu, quam. Mauris ullamcorper felis vitae erat. Proin feugiat, augue non elementum posuere, metus purus iaculis lectus, et tristique ligula justo vitae magna.
|
||||||
|
|
||||||
|
Aliquam convallis sollicitudin purus. Praesent aliquam, enim at fermentum mollis, ligula massa adipiscing nisl, ac euismod nibh nisl eu lectus. Fusce vulputate sem at sapien. Vivamus leo. Aliquam euismod libero eu enim. Nulla nec felis sed leo placerat imperdiet. Aenean suscipit nulla in justo. Suspendisse cursus rutrum augue. Nulla tincidunt tincidunt mi. Curabitur iaculis, lorem vel rhoncus faucibus, felis magna fermentum augue, et ultricies lacus lorem varius purus. Curabitur eu amet.
|
||||||
|
"
|
||||||
|
|
||||||
|
repet=$1
|
||||||
|
|
||||||
|
if [ -z $repet ]; then
|
||||||
|
repet=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
for i in $(seq 1 $repet)
|
||||||
|
do
|
||||||
|
echo -e "$original"
|
||||||
|
done
|
||||||
|
|
|
@ -78,6 +78,7 @@ function _machines-pubFromCrt {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _machines-verifyCertificate {
|
function _machines-verifyCertificate {
|
||||||
|
return
|
||||||
if openssl verify $MACHINES_CONFIG/machines.crt | grep -v 'error 18' | grep 'error' --quiet; then
|
if openssl verify $MACHINES_CONFIG/machines.crt | grep -v 'error 18' | grep 'error' --quiet; then
|
||||||
echo "[ERROR] Invalid certificate"
|
echo "[ERROR] Invalid certificate"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -426,7 +427,7 @@ function machines_setup {
|
||||||
_machines-apiToken machine --post-data "$data"
|
_machines-apiToken machine --post-data "$data"
|
||||||
|
|
||||||
echo $name > $MACHINES_CONFIG/this.name
|
echo $name > $MACHINES_CONFIG/this.name
|
||||||
machines-update
|
machines_update
|
||||||
}
|
}
|
||||||
|
|
||||||
function machines_update {
|
function machines_update {
|
||||||
|
|
36
vimrc
36
vimrc
|
@ -19,6 +19,7 @@ Plugin 'tomasr/molokai'
|
||||||
Plugin 'tpope/vim-surround'
|
Plugin 'tpope/vim-surround'
|
||||||
Plugin 'tpope/vim-fugitive'
|
Plugin 'tpope/vim-fugitive'
|
||||||
Plugin 'tpope/vim-repeat'
|
Plugin 'tpope/vim-repeat'
|
||||||
|
Plugin 'tpope/tpope-vim-abolish'
|
||||||
Plugin 'vim-airline/vim-airline'
|
Plugin 'vim-airline/vim-airline'
|
||||||
Plugin 'vim-airline/vim-airline-themes'
|
Plugin 'vim-airline/vim-airline-themes'
|
||||||
Plugin 'airblade/vim-gitgutter'
|
Plugin 'airblade/vim-gitgutter'
|
||||||
|
@ -29,10 +30,12 @@ Plugin 'xolox/vim-easytags'
|
||||||
Plugin 'majutsushi/tagbar'
|
Plugin 'majutsushi/tagbar'
|
||||||
Plugin 'wellle/targets.vim'
|
Plugin 'wellle/targets.vim'
|
||||||
Plugin 'Chiel92/vim-autoformat'
|
Plugin 'Chiel92/vim-autoformat'
|
||||||
Plugin 'Valloric/YouCompleteMe'
|
" Plugin 'Valloric/YouCompleteMe'
|
||||||
Plugin 'artur-shaik/vim-javacomplete2'
|
Plugin 'artur-shaik/vim-javacomplete2'
|
||||||
Plugin 'tomtom/tcomment_vim'
|
Plugin 'tomtom/tcomment_vim'
|
||||||
Plugin 'Shougo/denite.nvim'
|
Plugin 'Shougo/denite.nvim'
|
||||||
|
Plugin 'tomlion/vim-solidity'
|
||||||
|
Plugin 'godlygeek/tabular'
|
||||||
|
|
||||||
call vundle#end() " required
|
call vundle#end() " required
|
||||||
filetype plugin indent on " required
|
filetype plugin indent on " required
|
||||||
|
@ -44,11 +47,15 @@ nmap <F7> :UndotreeToggle<CR>:UndotreeFocus<CR>
|
||||||
""" CTRLP """
|
""" CTRLP """
|
||||||
|
|
||||||
let g:ctrlp_custom_ignore = {
|
let g:ctrlp_custom_ignore = {
|
||||||
\ 'dir': '\v([\/]\.(git|hg|svn)|node_modules|bower_components|__pycache__|vendor|output|buildroot)$',
|
\ 'dir': '\v([\/]\.(git|hg|svn)|log|node_modules|bower_components|__pycache__|vendor|output|buildroot|doc)$',
|
||||||
\ 'file': '\v\.(exe|so|dll)$',
|
\ 'file': '\v\.(exe|so|dll|o|pyc)$',
|
||||||
\ 'link': 'SOME_BAD_SYMBOLIC_LINKS',
|
\ 'link': 'SOME_BAD_SYMBOLIC_LINKS',
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
|
let g:ctrlp_map = '<c-p>'
|
||||||
|
let g:ctrlp_cmd = 'CtrlPMixed'
|
||||||
|
map <a-p> :CtrlPMRUFiles<CR>
|
||||||
|
|
||||||
""" TAGBAR """
|
""" TAGBAR """
|
||||||
|
|
||||||
nmap <F8> :TagbarToggle<CR>
|
nmap <F8> :TagbarToggle<CR>
|
||||||
|
@ -68,7 +75,19 @@ let g:airline_theme = 'wombat'
|
||||||
|
|
||||||
""" YOUCOMPLETEME """
|
""" YOUCOMPLETEME """
|
||||||
|
|
||||||
let g:ycm_global_ycm_extra_conf = '~/.config/ycm_extra_conf.py'
|
" let g:ycm_global_ycm_extra_conf = '~/.config/ycm_extra_conf.py'
|
||||||
|
let g:ycm_global_ycm_extra_conf = '/usr/share/vim/vimfiles/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
|
||||||
|
let g:ycm_server_python_interpreter = '/usr/bin/python2'
|
||||||
|
|
||||||
|
nmap gTi :YcmCompleter GoToInclude<CR>
|
||||||
|
nmap gTc :YcmCompleter GoToDeclaration<CR>
|
||||||
|
nmap gTf :YcmCompleter GoToDefinition<CR>
|
||||||
|
nmap gt :YcmCompleter GoTo<CR>
|
||||||
|
nmap gT :YcmCompleter GoToImprecise<CR>
|
||||||
|
nmap gTr :YcmCompleter GoToReference<CR>
|
||||||
|
|
||||||
|
""" AUTOFORMAT """
|
||||||
|
nmap <F3> :Autoformat<CR>
|
||||||
|
|
||||||
""" JAVACOMPLETE """
|
""" JAVACOMPLETE """
|
||||||
|
|
||||||
|
@ -135,7 +154,16 @@ if has('persistent_undo')
|
||||||
set undofile
|
set undofile
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Allow saving of files as sudo when I forgot to start vim using sudo.
|
||||||
|
" From https://stackoverflow.com/a/7078429
|
||||||
|
cmap w!! w !sudo tee > /dev/null %
|
||||||
|
|
||||||
imap jk <Esc>
|
imap jk <Esc>
|
||||||
imap mù <Esc>
|
imap mù <Esc>
|
||||||
map <Enter> o<Esc>
|
map <Enter> o<Esc>
|
||||||
|
nmap <C-H> :bp<CR>
|
||||||
|
nmap <C-L> :bn<CR>
|
||||||
|
nmap <C-K> kkkkkkkkkkkkkkkkkkkkk
|
||||||
|
nmap <C-J> jjjjjjjjjjjjjjjjjjjjj
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue