From 800b3c5f0a8e773e3e0f18f262eb4c3c485b21b4 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 3 Jun 2020 15:40:15 +0200 Subject: vim haskell formating, removed auto wrapping, zsh alias --- .pluggins.vim | 5 +++-- .vimrc | 5 ++++- .xinitrc | 0 .zsh_aliases | 9 ++++++--- install.sh | 3 +-- redshift.conf | 4 ++-- xmonad.hs | 14 +++++++------- 7 files changed, 23 insertions(+), 17 deletions(-) mode change 100644 => 100755 .xinitrc diff --git a/.pluggins.vim b/.pluggins.vim index 20c2dab..e877ab6 100644 --- a/.pluggins.vim +++ b/.pluggins.vim @@ -9,10 +9,11 @@ call plug#begin() Plug 'itchyny/lightline.vim' " minimal status bar Plug 'HappyTramp/vim-syntax-extra' " syntax highlight of C operators Plug 'romainl/vim-cool' " disable highlight after search - Plug 'tikhomirov/vim-glsl' " glsl hightlight + Plug 'tikhomirov/vim-glsl' " glsl highlight + Plug 'cespare/vim-toml' " toml highlight " s19 at home - Plug 'HappyTramp/vim-42header' " 42 header + Plug 'HappyTramp/vim-42header' " 42 header " themes " Plug 'joshdick/onedark.vim' " onedark diff --git a/.vimrc b/.vimrc index c5634d7..6a197c3 100644 --- a/.vimrc +++ b/.vimrc @@ -24,7 +24,8 @@ set autowrite " auto write buf on certain events set hidden " keep change in buffer when quitting window set noswapfile " disable swap files set scrolloff=2 " line padding when scrolling -set textwidth=89 " when line wrap occurs +set textwidth=0 " when line wrap occurs +set wrapmargin=0 " disable auto line wrapping set encoding=utf-8 " utf-8 encoding set formatoptions-=t " do not auto break line > 89 character filetype plugin indent on " allow to add specific rules for certain type of file @@ -225,6 +226,8 @@ autocmd Filetype c setlocal noexpandtab autocmd Filetype cpp nnoremap cout istd::cout << << std::endl;2F IO () -- https://hackage.haskell.org/package/xmonad-0.15/docs/XMonad-Core.html#t:XConfig @@ -34,7 +34,7 @@ myLayouts = tiledBigMaster -- bigger master for code and smaller slave fo myStartupHook = do spawnOnce "xinput disable 'ETPS/2 Elantech Touchpad' &" -- disable touchpad - -- spawnOnce "redshift -c /home/charles/.config/redshift.conf &" -- start redshift + spawnOnce "redshift -c /home/charles/.config/redshift.conf &" -- start redshift myManageHook = insertPosition End Newer -- insert new window at the end of the current layout -- cgit