adding vim

This commit is contained in:
aj 2019-02-10 11:29:26 +00:00
parent e3518b3ef9
commit 5bb59c4b60
4 changed files with 22 additions and 2 deletions

View File

@ -167,7 +167,7 @@ bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'mate-session-save --logout'"
# resize window (you can also use the mouse for that)
mode "resize" {

View File

@ -85,7 +85,7 @@ scroll-down = i3wm-wsprev
[module/public-ip]
type = custom/script
exec = wget -qO - icanhazip.com
interval = 60
interval = 600
label = %output%
format-background = ${xrdb:color5:#222}
@ -344,6 +344,7 @@ format-padding = 2
[module/vpn]
type = custom/script
exec = pgrep openvpn >/dev/null && printf "up\n" || printf "down\n"
exec-if = pgrep -x openvpn
interval = 5
label = %output%
;format-underline = #268bd2

8
vim/.vimrc Normal file
View File

@ -0,0 +1,8 @@
set nocompatible " be iMproved, required
filetype off " required
so ~/.vim/plugins.vim
map <C-n> :NERDTreeToggle<CR>
set laststatus=2
set noshowmode

11
vim/plugins.vim Normal file
View File

@ -0,0 +1,11 @@
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'scrooloose/nerdtree'
Plugin 'itchyny/lightline.vim'
Plugin 'airblade/vim-gitgutter'
call vundle#end()
filetype plugin indent on