From 76f47223da8af66661158439d72a5c99be145cbd Mon Sep 17 00:00:00 2001 From: shmibs Date: Sat, 4 Jul 2015 03:04:00 -0700 Subject: add some filtypes to .vimrc --- .config/nitrogen/bg-saved.cfg | 2 +- .config/nitrogen/nitrogen.cfg | 2 +- .config/ranger/rifle.conf | 1 + .vimrc | 16 ++++++++++++++-- 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="" noremap gr gq "insert lines below -nnoremap ++ == -nnoremap = Oj +nnoremap = :set pastem`O``:set nopaste "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 -- O*/hhi/* endfunction +function! Settings_coffee() + "settings + setlocal foldmethod=syntax + setlocal shiftwidth=2 + setlocal tabstop=2 + setlocal softtabstop=2 + "mappings + nnoremap -- O# +endfunction + function! Settings_haskell() "settings "mappings -- cgit v1.2.3