Commits

Bruce Wang  committed ca79c8c

add xfce4 panel and desktop settings

  • Participants
  • Parent commits d8902f5

Comments (0)

Files changed (44)

 syntax on
 colorscheme desert
 
+set isk+=_,$,@,%,#,- " none of these should be word dividers, so make them not be
+set lz " do not redraw while running macros (much faster) 
+
 
 " Disable Generation of Backup Files
 " ----------------------------------
 
 " python support
 " --------------
-autocmd FileType python setlocal expandtab shiftwidth=4 tabstop=4 softtabstop=4 fileformats=unix
-autocmd FileType php setlocal expandtab shiftwidth=4 tabstop=4 softtabstop=4 fileformats=unix
+autocmd FileType python setlocal expandtab shiftwidth=4 tabstop=4 softtabstop=4 fileformats=unix smarttab textwidth=80 smartindent
+autocmd FileType php setlocal expandtab shiftwidth=4 tabstop=4 softtabstop=4 fileformats=unix smartindent smarttab textwidth=80
 
 
 " ruby support
 " ------------
-autocmd FileType ruby setlocal shiftwidth=2 tabstop=2 softtabstop=2
+autocmd FileType ruby setlocal shiftwidth=2 tabstop=2 softtabstop=2 smartindent smarttab
 
 " python.vim
 " ----------
 " html/xml support
 " ----------------
 
-fun! s:SelectHTML()
-  let n = 1
-  while n < 50 && n < line("$")
-    " check for jinja
-    if getline(n) =~
-'{%\s*\(extends\|block\|macro\|set\|if\|for\|include\|trans\)\>'
-      set ft=htmljinja
-      return
-    endif
-    " check for django
-    if getline(n) =~
-'{%\s*\(extends\|block\|comment\|ssi\|if\|for\|blocktrans\)\>'
-      set ft=htmldjango
-      return
-    endif
-    let n = n + 1
-  endwhile
-  set ft=html
-endfun
 
 autocmd FileType html,xhtml,xml,htmldjango,htmljinja,eruby,mako setlocal expandtab shiftwidth=2 tabstop=2 softtabstop=2
 "autocmd FileType html,xhtml,xml,htmldjango,htmljinja,eruby,mako source d:/vim/vimfiles/plugin/closetag.vim
 autocmd BufNewFile,BufRead *.rhtml setlocal ft=eruby
 autocmd BufNewFile,BufRead *.tmpl setlocal ft=htmljinja
-autocmd BufNewFile,BufRead *.html,*.htm  call s:SelectHTML()
+"autocmd BufNewFile,BufRead *.html,*.htm  call s:SelectHTML()
 autocmd BufNewFile,BufRead *.module,*.inc setlocal ft=php
+autocmd BufNewFile,BufRead *.mako setlocal ft=mako
 
 let html_no_rendering=1
 let eruby_percent_processing=1
 set incsearch
 
 
-map <C-A-right> :bnext<CR>
-map <C-A-left>  :bprevious<CR>
-map <C-r>       :call JumpToSource()<CR>
 map <C-S-d>     :bdelete<Return>
-map <F2> a<C-R>=strftime("%c")<CR><Esc>
+map <F2> a<C-R>=strftime("%d/%m/%Y %T")<CR><Esc>
 map <C-w>w <ESC>:args % <cword><CR>:n<CR>
 map <C-w>i <ESC>:args % index<CR>:n<CR>
 
 set showmatch
 
 " start in paste mode by default (cancel with [ESC]:nopaste)
-"set paste
+set nopaste
 
 " always show line and col number and the current command
 set ruler
 set showcmd
 
 
+function! CHANGE_CURR_DIR()
+let _dir = expand("%:p:h")
+exec "cd " . _dir
+unlet _dir
+endfunction
+
+autocmd BufEnter * call CHANGE_CURR_DIR() 
+
+
 
 " Minibuffer
 " ----------
 
 noremap <C-left> :bprev<CR>
 noremap <C-right> :bnext<CR> 
+
+" Disable mouse activate visual mode
+set mouse-=a
+
 set incsearch
 
 map <C-S-d>     :bdelete<Return>
-map <F2> a<C-R>=strftime("%c")<CR><Esc>
+map <F2> a<C-R>=strftime("%d/%m/%Y %T")<CR><Esc>
 map <C-w>w <ESC>:args % <cword><CR>:n<CR>
 map <C-w>i <ESC>:args % index<CR>:n<CR>
 
-
 imap ,q <Esc>
 imap ,t <Esc>:tabnew<CR>
 set showtabline=0
 " Disable mouse activate visual mode
 set mouse-=a
 
+
+" Open and close all the three plugins on the same time
+nmap <F8>   :TrinityToggleAll<CR>
+"
+" Open and close the srcexpl.vim separately
+nmap <F9>   :TrinityToggleSourceExplorer<CR>
+
+" Open and close the taglist.vim separately
+nmap <F10>  :TrinityToggleTagList<CR>
+
+" Open and close the NERD_tree.vim separately
+nmap <F11>  :TrinityToggleNERDTree<CR> 
 
 # list of completers to use
 # n:*' list-prompt '%SAt %p: Hit TAB for more, or the charac    ter to insert%s'
-zstyle ':completion:*::::' completer _expand _complete _ignored _approximate
+# zstyle ':completion:*::::' completer _expand _complete _ignored _approximate
 # match uppercase from lowercase
 zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
 
 alias x='startxfce4'
 
 export EDITOR=vi
-export PATH=~/bin:$PATH
+export PATH=~/bin:$PATH:/opt/kde/bin

File settings/panel/actions-11989108740.rc

+type=0
+orientation=1
+

File settings/panel/battmon-12069708110.rc

+display_label=false
+display_icon=true
+display_power=true
+display_percentage=false
+display_time=true
+tooltip_display_percentage=true
+tooltip_display_time=false
+low_percentage=10
+critical_percentage=5
+action_on_low=1
+action_on_critical=0
+hide_when_full=1
+command_on_low=
+command_on_critical=
+

File settings/panel/clock-12146368552.rc

+mode=1
+military=true
+ampm=false
+secs=false
+show_frame=false
+

File settings/panel/fsguard-12197259450.rc

+yellow=1000
+red=300
+lab_size_visible=false
+progress_bar_visible=true
+hide_button=true
+label=
+label_visible=false
+mnt=/home
+filemanager=pcmanfm
+

File settings/panel/fsguard-12197260051.rc

+yellow=800
+red=300
+lab_size_visible=false
+progress_bar_visible=true
+hide_button=true
+label=
+label_visible=false
+mnt=/
+filemanager=pcmanfm
+

File settings/panel/genmon-12054861601.rc

+Command=/home/bruce/bin/temp_out
+UseLabel=0
+Text=(genmon)
+UpdatePeriod=10000
+Font=(default)
+

File settings/panel/genmon-12146705081.rc

+Command=/home/bruce/bin/temp_out
+UseLabel=0
+Text=(genmon)
+UpdatePeriod=10000
+Font=(default)
+

File settings/panel/iconbox-11990845312.rc

+only_hidden=0
+all_workspaces=0
+expand=1
+

File settings/panel/launcher-11989116705.rc

+[Entry 0]
+Name=Firefox nightly
+Exec=/usr/bin/firefox-nightly
+Terminal=false
+StartupNotify=false
+Comment=my dear pal
+Icon=/usr/share/pixmaps/firefox-nightly.png
+
+[Entry 1]
+Name=Epiphany
+Exec=/usr/bin/epiphany
+Terminal=false
+StartupNotify=false
+Icon=/usr/share/icons/hicolor/scalable/apps/gnome-web-browser.svg
+
+[Entry 2]
+Name=Arora
+Exec=/usr/bin/arora
+Terminal=false
+StartupNotify=false
+Comment=webkit QT browser
+Icon=/usr/share/icons/hicolor/scalable/apps/arora.svg
+
+[Entry 3]
+Name=Midori
+Exec=/usr/bin/midori
+Terminal=false
+StartupNotify=false
+Comment=webkit gtk
+Icon=/usr/share/icons/hicolor/48x48/apps/midori.png
+

File settings/panel/launcher-11990842841.rc

+[Entry 0]
+Name=Exaile
+Exec=/usr/bin/exaile
+Terminal=false
+StartupNotify=false
+Icon=/usr/share/pixmaps/exaile.png
+
+[Entry 1]
+Name=quodlibet
+Exec=/usr/bin/quodlibet
+Terminal=false
+StartupNotify=false
+Icon=/usr/share/pixmaps/quodlibet.png
+
+[Entry 2]
+Name=Amarok
+Exec=/opt/kde/bin/amarok
+Terminal=false
+StartupNotify=false
+Icon=/opt/kde/share/icons/hicolor/128x128/apps/amarok.png
+

File settings/panel/launcher-12008106460.rc

+[Entry 0]
+Name=Gajim
+Exec=/usr/bin/gajim
+Terminal=false
+StartupNotify=false
+Icon=/usr/share/pixmaps/gajim.png
+
+[Entry 1]
+Name=Emesene
+Exec=/usr/bin/emesene
+Terminal=false
+StartupNotify=false
+Comment=MSN alternative
+Icon=/usr/share/pixmaps/emesene.png
+
+[Entry 2]
+Name=Skype
+Exec=/usr/bin/skype
+Terminal=false
+StartupNotify=false
+Icon=/usr/share/pixmaps/skype.png
+

File settings/panel/launcher-7.rc

+[Entry 0]
+Name=Terminal
+Exec=/usr/bin/Terminal
+Terminal=false
+StartupNotify=false
+Comment=xfce4-terminal
+X-XFCE-IconCategory=13
+

File settings/panel/launcher-8.rc

+[Entry 0]
+Name=gedit
+Exec=/usr/bin/gedit
+Terminal=false
+StartupNotify=false
+X-XFCE-IconCategory=1
+

File settings/panel/launcher-9.rc

+[Entry 0]
+Name=pcmanfm
+Exec=/usr/bin/pcmanfm
+Terminal=false
+StartupNotify=false
+Icon=/usr/share/pixmaps/pcmanfm.png
+

File settings/panel/orageclock-11989168960.rc

+show_frame=false
+fg_set=false
+bg_set=false
+timezone=/etc/localtime
+width_set=false
+height_set=true
+show0=true
+data0=%H:%M
+font0=DejaVu Sans Mono Bold 11
+show1=false
+show2=false
+tooltip=%A %x
+height=32
+

File settings/panel/pager-2.rc

+rows=1
+scrolling=true
+

File settings/panel/panels.xml

+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE config SYSTEM "config.dtd">
+<panels>
+	<panel>
+		<properties>
+			<property name="size" value="28"/>
+			<property name="monitor" value="0"/>
+			<property name="screen-position" value="2"/>
+			<property name="fullwidth" value="1"/>
+			<property name="xoffset" value="0"/>
+			<property name="yoffset" value="0"/>
+			<property name="handlestyle" value="0"/>
+			<property name="autohide" value="0"/>
+			<property name="transparency" value="20"/>
+			<property name="activetrans" value="0"/>
+		</properties>
+		<items>
+			<item name="showdesktop" id="1"/>
+			<item name="tasklist" id="3"/>
+			<item name="separator" id="12146368371"/>
+			<item name="battmon" id="12069708110"/>
+			<item name="fsguard" id="12197259450"/>
+			<item name="fsguard" id="12197260051"/>
+			<item name="genmon" id="12146705081"/>
+			<item name="wavelan" id="12059479460"/>
+			<item name="xfce4-mixer" id="11989114283"/>
+			<item name="systray" id="4"/>
+			<item name="clock" id="12146368552"/>
+		</items>
+	</panel>
+	<panel>
+		<properties>
+			<property name="size" value="36"/>
+			<property name="monitor" value="0"/>
+			<property name="screen-position" value="11"/>
+			<property name="fullwidth" value="0"/>
+			<property name="xoffset" value="389"/>
+			<property name="yoffset" value="1013"/>
+			<property name="handlestyle" value="0"/>
+			<property name="autohide" value="0"/>
+			<property name="transparency" value="20"/>
+			<property name="activetrans" value="0"/>
+		</properties>
+		<items>
+			<item name="xfce4-menu" id="12146362620"/>
+			<item name="launcher" id="8"/>
+			<item name="launcher" id="9"/>
+			<item name="launcher" id="7"/>
+			<item name="separator" id="11"/>
+			<item name="actions" id="11989108740"/>
+			<item name="separator" id="13"/>
+			<item name="launcher" id="11989116705"/>
+			<item name="launcher" id="11990842841"/>
+			<item name="launcher" id="12008106460"/>
+			<item name="iconbox" id="11990845312"/>
+			<item name="separator" id="12009075450"/>
+			<item name="pager" id="2"/>
+			<item name="separator" id="11990845763"/>
+			<item name="showdesktop" id="11989109171"/>
+		</items>
+	</panel>
+</panels>

File settings/panel/places-12019435680.rc

+show_button_icon=true
+show_button_label=false
+label=Places
+show_icons=true
+show_volumes=true
+mount_open_volumes=false
+show_bookmarks=true
+show_recent=true
+show_recent_clear=true
+show_recent_number=10
+search_cmd=
+

File settings/panel/separator-11.rc

+draw-separator=1
+expand=0
+

File settings/panel/separator-11990845763.rc

+draw-separator=1
+expand=0
+

File settings/panel/separator-12009075450.rc

+draw-separator=1
+expand=0
+

File settings/panel/separator-12146368371.rc

+draw-separator=1
+expand=0
+

File settings/panel/separator-13.rc

+draw-separator=1
+expand=0
+

File settings/panel/systemload-12006733137.rc

+[SL_Cpu]
+Enabled=true
+Use_Label=false
+Color=#0000C0
+Text=cpu
+
+[SL_Mem]
+Enabled=true
+Use_Label=false
+Color=#00C000
+Text=mem
+
+[SL_Swap]
+Enabled=false
+Use_Label=true
+Color=#F0F000
+Text=swap
+
+[SL_Uptime]
+Enabled=false
+

File settings/panel/systray-4.rc

+show_frame=0
+

File settings/panel/tasklist-3.rc

+grouping=1
+all_workspaces=0
+show_label=1
+expand=1
+flat_buttons=1
+width=300
+

File settings/panel/wavelan-11998748790.rc

+Interface=eth1
+Autohide=false
+AutohideMissing=false
+SquareIcon=true
+

File settings/panel/wavelan-12006721442.rc

+Interface=eth1
+Autohide=false
+AutohideMissing=false
+SquareIcon=true
+

File settings/panel/wavelan-12059479460.rc

+Interface=eth1
+Autohide=false
+AutohideMissing=false
+SquareIcon=true
+

File settings/panel/weather-11989152182.rc

+celcius=true
+loc_code=CHXX0116
+proxy_fromenv=false
+label0=289
+

File settings/panel/xfapplet-12000222270.rc

+[xfapplet]
+iid=OAFIID:SensorsApplet
+name=Hardware Sensors Monitor
+gconfkey=/apps/xfapplet/applet_1
+

File settings/panel/xfce4-cpu-freq-plugin-12146692140.rc

+cpu_number=0
+monitor_timeout=100
+show_icon=true
+show_label_freq=true
+show_label_governor=true
+

File settings/panel/xfce4-menu-12006562440.rc

+use_default_menu=true
+menu_file=/etc/xdg/menus/xfce-applications.menu
+icon_file=/usr/share/pixmaps/xfce4_xicon1.png
+show_menu_icons=true
+button_title=Xfce Menu
+show_button_title=false
+

File settings/panel/xfce4-menu-12009111031.rc

+use_default_menu=true
+menu_file=/etc/xdg/xfce4/desktop/xfce-registered-categories.xml.zh_CN
+icon_file=/usr/share/pixmaps/xfce4_xicon1.png
+show_menu_icons=true
+button_title=Xfce Menu
+show_button_title=false
+

File settings/panel/xfce4-menu-12146172060.rc

+use_default_menu=true
+menu_file=/etc/xdg/menus/xfce-applications.menu
+icon_file=/usr/share/pixmaps/xfce4_xicon1.png
+show_menu_icons=true
+button_title=Xfce Menu
+show_button_title=false
+

File settings/panel/xfce4-menu-12146362620.rc

+use_default_menu=true
+menu_file=
+icon_file=/usr/share/pixmaps/xfce4_xicon1.png
+show_menu_icons=true
+button_title=Xfce Menu
+show_button_title=false
+

File settings/panel/xfce4-menu-5.rc

+use_default_menu=true
+menu_file=
+icon_file=/usr/share/pixmaps/xfce4_xicon1.png
+show_menu_icons=true
+button_title=Xfce 菜单
+show_button_title=false
+

File settings/panel/xfce4-mixer-11989114283.rc

+[mixer-plugin]
+LauncherRunInTerminal=false
+LauncherUseStartupNotification=false
+Device=#0: Intel ICH6
+LauncherCommand=xfce4-mixer
+MasterControl=Master,0
+

File settings/panel/xfce4-mount-plugin-12004770290.rc

+on_mount_cmd=
+message_dialog=1
+include_NFSs=1
+eject_drives=1
+icon=/usr/share/icons/hicolor/scalable/apps/xfce-mount.svg
+

File settings/panel/xfce4-notes-plugin-12006731645.rc

+[Notes]
+PosX=696
+PosY=419
+Width=375
+Height=430
+Above=false
+ShowOnStartup=0
+ShowStatusbar=true
+Sticky=true
+Visible=false
+Opacity=10
+Font=DejaVu Sans Mono 12
+

File settings/panel/xfce4-sensors-plugin-12006731726.rc

+[General]
+Show_Title=false
+Show_Labels=false
+Use_Bar_UI=true
+Show_Colored_Bars=true
+Scale=0
+Font_Size=small
+Font_Size_Numerical=1
+Update_Interval=5
+Exec_Command=true
+Command_Name=xsensors
+Number_Chips=1
+
+[Chip0]
+Name=thinkpad-0
+Number=0
+
+[Chip0_Feature0]
+Id=0
+Address=0
+Name=fan1
+Color=#00B000
+Show=true
+Min=1000.00
+Max=5000.00
+
+[Chip0_Feature1]
+Id=1
+Address=1
+Name=CPU
+Color=#00B000
+Show=true
+Min=0.00
+Max=70.00
+
+[Chip0_Feature4]
+Id=4
+Address=4
+Name=GPU
+Color=#00B000
+Show=true
+Min=0.00
+Max=80.00
+