aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshmibs <shmibs@gmail.com>2015-07-04 03:04:00 -0700
committershmibs <shmibs@gmail.com>2015-07-04 03:04:00 -0700
commit76f47223da8af66661158439d72a5c99be145cbd (patch)
tree997d504c807b4f08d6d04cfc91c32ea4eed3f1fa
parent04ea964440221a09d9a66af52749287ddbf49315 (diff)
downloaddotfiles-76f47223da8af66661158439d72a5c99be145cbd.tar.gz
add some filtypes to .vimrc
-rw-r--r--.config/nitrogen/bg-saved.cfg2
-rw-r--r--.config/nitrogen/nitrogen.cfg2
-rw-r--r--.config/ranger/rifle.conf1
-rw-r--r--.vimrc16
4 files changed, 17 insertions, 4 deletions
diff --git a/.config/nitrogen/bg-saved.cfg b/.config/nitrogen/bg-saved.cfg
index 71190f2..5bee0dc 100644
--- a/.config/nitrogen/bg-saved.cfg
+++ b/.config/nitrogen/bg-saved.cfg
@@ -1,4 +1,4 @@
[:0.0]
-file=/home/shmibs/backdrops/shadowed/aigis-1920x1080.png
+file=/home/shmibs/backdrops/shadowed/Mononoke-colourful.jpg
mode=5
bgcolor=#000000
diff --git a/.config/nitrogen/nitrogen.cfg b/.config/nitrogen/nitrogen.cfg
index 9a87a10..48d69f4 100644
--- a/.config/nitrogen/nitrogen.cfg
+++ b/.config/nitrogen/nitrogen.cfg
@@ -7,4 +7,4 @@ sizey=1062
[nitrogen]
view=icon
icon_caps=false
-dirs=/home/shmibs/backdrops;
+dirs=/home/shmibs/backdrops/shadowed;
diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf
index aa57817..8cdb0b5 100644
--- a/.config/ranger/rifle.conf
+++ b/.config/ranger/rifle.conf
@@ -117,6 +117,7 @@ mime ^video, terminal, !X, has mpv = mplayer -- "$@"
#-------------------------------------------
# Image Viewing:
#-------------------------------------------
+ext svg, has inkscape, X, flag f = inkscape -- "$@"
mime ^image, has sxiv, X, flag f = sxiv -a "$@"
mime ^image, has gimp, X, flag f = gimp -- "$@"
ext xcf, X, flag f = gimp -- "$@"
diff --git a/.vimrc b/.vimrc
index 9fd3225..b00114c 100644
--- a/.vimrc
+++ b/.vimrc
@@ -77,8 +77,7 @@ let g:UltiSnipsJumpBackwardTrigger="<c-b>"
noremap gr gq
"insert lines below
-nnoremap ++ ==
-nnoremap = O<Esc>j
+nnoremap <silent>= :set paste<CR>m`O<Esc>``:set nopaste<CR>
"folds!
nnoremap fo zO
@@ -136,14 +135,17 @@ autocmd BufNewFile,BufRead *.tex set filetype=tex
"doing with viml), so separate lines it is.
autocmd FileType asm call Settings_asm()
autocmd FileType c call Settings_c()
+autocmd FileType coffee call Settings_coffee()
autocmd FileType cpp call Settings_c()
autocmd FileType css call Settings_c()
+autocmd FileType d call Settings_c()
autocmd FileType tex call Settings_tex()
autocmd FileType haskell call Settings_haskell()
autocmd FileType html call Settings_html()
autocmd FileType xhtml call Settings_html()
autocmd FileType make call Settings_script()
autocmd FileType matlab call Settings_matlab()
+autocmd FileType mkd call Settings_text()
autocmd FileType nim call Settings_nim()
autocmd FileType perl call Settings_script()
autocmd FileType python call Settings_script()
@@ -171,6 +173,16 @@ function! Settings_c()
nnoremap <buffer> -- O<Space>*/<Esc>hhi/*<Space>
endfunction
+function! Settings_coffee()
+ "settings
+ setlocal foldmethod=syntax
+ setlocal shiftwidth=2
+ setlocal tabstop=2
+ setlocal softtabstop=2
+ "mappings
+ nnoremap <buffer> -- O#<Space>
+endfunction
+
function! Settings_haskell()
"settings
"mappings