vim and bash
This commit is contained in:
parent
061e43759d
commit
7a72bb1899
7 changed files with 32 additions and 30 deletions
|
@ -41,6 +41,11 @@ case $1 in
|
|||
--output VGA1 --auto --rotate normal \
|
||||
--right-of LVDS1
|
||||
;;
|
||||
"pdfpc")
|
||||
xrandr --output LVDS1 --auto --rotate normal \
|
||||
--output VGA1 --auto --rotate normal \
|
||||
--left-of LVDS1
|
||||
;;
|
||||
"clone")
|
||||
xrandr --output LVDS1 --auto \
|
||||
--output VGA1 --auto --same-as LVDS1
|
||||
|
|
7
bashrc
7
bashrc
|
@ -356,6 +356,13 @@ function calc()
|
|||
echo "scale=3;$@" | bc -l
|
||||
}
|
||||
|
||||
function xournal() {
|
||||
if [ -e "$1".xoj ]; then
|
||||
/usr/bin/xournal "$1".xoj
|
||||
else
|
||||
/usr/bin/xournal "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
# }}}
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ static const Rule rules[] = {
|
|||
{ "Gimp", NULL, NULL, 0, True, -1 },
|
||||
{ "Firefox", NULL, NULL, 1 << 0, False, -1 },
|
||||
{ "Thunderbird", NULL, NULL, 1 << 1, False, -1 },
|
||||
{ "pdfpc", "pdfpc", NULL, 0, True, -1 },
|
||||
};
|
||||
|
||||
/* layout(s) */
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
%\setcounter{section}{42}
|
||||
\section{<+SECTION+>}
|
||||
\subsection{<+SUBSECTION+>}
|
||||
<+CONTENT+>
|
||||
|
|
|
@ -16,3 +16,4 @@ encrypt
|
|||
alu
|
||||
EDF
|
||||
RDV
|
||||
subsection
|
||||
|
|
Binary file not shown.
47
vim/vimrc
47
vim/vimrc
|
@ -3,9 +3,15 @@
|
|||
execute pathogen#infect()
|
||||
|
||||
syntax on
|
||||
color desert
|
||||
|
||||
hi clear SpellBad
|
||||
hi SpellBad cterm=underline,bold ctermfg=lightblue
|
||||
|
||||
set spell
|
||||
set spelllang=en,fr
|
||||
|
||||
|
||||
"set spelllang=en,fr
|
||||
"set spell
|
||||
|
||||
"set nocompatible "fuck you !. impossible de backspace, sinon
|
||||
set backspace=indent,eol,start
|
||||
|
@ -14,8 +20,8 @@ set backspace=indent,eol,start
|
|||
set number
|
||||
set ts=8 "Un tab, huit espaces
|
||||
set noexpandtab "On veut pas remplacer tab -> espace
|
||||
"set mouse=a
|
||||
set wrap "Une grande ligne continue à la ligne
|
||||
"set mouse=a
|
||||
|
||||
set hlsearch "On souligne les mots cherchés
|
||||
set incsearch "recherche peu à peu
|
||||
|
@ -23,10 +29,8 @@ set ignorecase
|
|||
|
||||
set foldmethod=marker
|
||||
|
||||
|
||||
set cul "souligner la ligne actuelle
|
||||
|
||||
color desert
|
||||
|
||||
set cursorline
|
||||
hi CursorLine term=bold cterm=bold guibg=Grey40
|
||||
|
||||
|
@ -51,14 +55,6 @@ hi User5 guifg=#eeee40 guibg=#222222
|
|||
|
||||
"filetype plugin indent on
|
||||
|
||||
"noremap <Up> ""
|
||||
"noremap! <Up> <Esc>
|
||||
"noremap <Down> ""
|
||||
"noremap! <Down> <Esc>
|
||||
"noremap <Left> ""
|
||||
"noremap! <Left> <Esc>
|
||||
"noremap <Right> ""
|
||||
"noremap! <Right> <Esc>
|
||||
"
|
||||
noremap <S-Space> <Esc>
|
||||
|
||||
|
@ -70,26 +66,16 @@ command W w
|
|||
map <Tab> <C-w>w
|
||||
map <S-Tab> <C-w>W
|
||||
|
||||
"inoremap { {}<Left>
|
||||
"inoremap {<CR> {<CR>}<Esc>O
|
||||
"inoremap {{ {
|
||||
"inoremap /* /**/<Left><Left>
|
||||
"inoremap /*<Space> /*<Space><Space>*/<Left><Left><Left>
|
||||
"inoremap /*<CR> /*<CR> */<Esc>O
|
||||
"inoremap // //
|
||||
|
||||
|
||||
|
||||
set list
|
||||
"set listchars=tab:▸\ ,eol:¬
|
||||
"set listchars=tab:>-,trail:.,eol:¬
|
||||
"set listchars=tab:▸-,trail:.,eol:¬
|
||||
|
||||
set listchars=tab:\|\-"Cool for ifs/whiles
|
||||
set listchars+=trail:· "For eol with spaces
|
||||
set listchars+=eol:↲ "To show eol;not very useful with trail, but cool anyway :p
|
||||
set listchars+=nbsp:⍽ "For unbreakeable spaces
|
||||
|
||||
|
||||
set history=500
|
||||
set undolevels=500
|
||||
|
||||
|
@ -100,14 +86,14 @@ set smartindent
|
|||
set copyindent
|
||||
set preserveindent
|
||||
|
||||
"highlight identic words
|
||||
"highlight identical words
|
||||
autocmd CursorMoved *
|
||||
\ exe printf('match IncSearch /\V\<%s\>/', escape(expand('<cword>'), '/\'))
|
||||
|
||||
"Highlight in red lines longer than 80 chars
|
||||
"""autocmd BufWinEnter * call matchadd('ErrorMsg', '\%>80v.\+', -1)
|
||||
" lines longer than 80 chars {{{
|
||||
set cc=80
|
||||
hi ColorColumn ctermbg=lightblue guibg=lightgrey
|
||||
" }}}
|
||||
|
||||
|
||||
|
||||
|
@ -116,7 +102,7 @@ map <F5> :make
|
|||
"TIPS : :copen :cclose :cw
|
||||
|
||||
|
||||
"SKELETONS
|
||||
"SKELETONS {{{
|
||||
|
||||
" When editing a new file, load skeleton if any.
|
||||
" If we find <+FILENAME+> in skeleton, replace it by the filename.
|
||||
|
@ -138,15 +124,16 @@ autocmd BufNewFile *
|
|||
\ endif |
|
||||
\ unlet skel |
|
||||
\ goto 1
|
||||
|
||||
" skeleton template use <+KEY+>
|
||||
nnoremap § <esc>/<+.\{-1,}+><return>c/+>/e<return>
|
||||
inoremap § <esc>/<+.\{-1,}+><return>c/+>/e<return>
|
||||
" }}}
|
||||
|
||||
|
||||
"Automatic line wrap/br when writing mails in mutt
|
||||
au BufRead /dev/shm/mutt-* set tw=80 fo+=aw noautoindent
|
||||
|
||||
|
||||
"Automatic documentation
|
||||
autocmd BufNewFile,BufRead *.py set keywordprg=pydoc
|
||||
autocmd BufNewFile,BufRead *.php set keywordprg=~/.vim/scripts/doc.php.sh
|
||||
|
|
Loading…
Reference in a new issue