aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-06-03 15:40:15 +0200
committerCharles <sircharlesaze@gmail.com>2020-06-03 15:40:15 +0200
commit800b3c5f0a8e773e3e0f18f262eb4c3c485b21b4 (patch)
treedc8b90f4a790207d8520f6efa876a733cc662236 /.vimrc
parent5260c02746f0825ee90eb56c4fe91a6bf39cc9cc (diff)
downloaddotfiles-800b3c5f0a8e773e3e0f18f262eb4c3c485b21b4.tar.gz
dotfiles-800b3c5f0a8e773e3e0f18f262eb4c3c485b21b4.tar.bz2
dotfiles-800b3c5f0a8e773e3e0f18f262eb4c3c485b21b4.zip
vim haskell formating, removed auto wrapping, zsh alias
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc5
1 files changed, 4 insertions, 1 deletions
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 <leader>cout istd::cout << << std::endl;<ESC>2F<hi
" vim fold method to marker
autocmd Filetype vim setlocal foldmethod=marker
+
+autocmd FileType haskell set formatprg=stylish-haskell
" }}}
""""""""""""