summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2025-02-06 12:54:17 +0100
committerfilip <“filip.rabiega@gmail.com”>2025-02-06 12:54:17 +0100
commit43b634177ded72ed4c75e0c4544b1fc441d6e419 (patch)
tree1854f700dd44c1e29a95f62bc66ae7691c7e9453
downloaddotfiles-43b634177ded72ed4c75e0c4544b1fc441d6e419.tar.gz
dotfiles-43b634177ded72ed4c75e0c4544b1fc441d6e419.tar.bz2
dotfiles-43b634177ded72ed4c75e0c4544b1fc441d6e419.zip
added .vimrc
-rw-r--r--.vimrc45
1 files changed, 45 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
new file mode 100644
index 0000000..28ee556
--- /dev/null
+++ b/.vimrc
@@ -0,0 +1,45 @@
+set number
+set relativenumber
+set nocompatible
+
+execute pathogen#infect()
+syntax on
+filetype plugin indent on
+
+nnoremap <silent> <F7> :tabnew ~/.vimrc<CR>
+nnoremap <silent> <F8> :TlistToggle<CR>
+nnoremap <silent> <F9> :NERDTree<CR>
+
+inoremap <Space><Space> <Esc>/<++><CR>"_c4l
+
+set autoindent
+set nocindent
+set smartindent
+
+" show existing tab with 4 spaces width
+set tabstop=4
+" when indenting with '>', use 4 spaces width
+set shiftwidth=4
+" On pressing tab, insert 4 spaces
+set expandtab
+
+" Haskell
+let g:haskell_enable_quantification = 1 " to enable highlighting of `forall`
+let g:haskell_enable_recursivedo = 1 " to enable highlighting of `mdo` and `rec`
+let g:haskell_enable_arrowsyntax = 1 " to enable highlighting of `proc`
+let g:haskell_enable_pattern_synonyms = 1 " to enable highlighting of `pattern`
+let g:haskell_enable_typeroles = 1 " to enable highlighting of type roles
+let g:haskell_enable_static_pointers = 1 " to enable highlighting of `static`
+let g:haskell_backpack = 1 " to enable highlighting of backpack keywords
+let g:haskell_indent_if = 3
+let g:haskell_indent_case = 2
+let g:haskell_indent_let = 4
+let g:haskell_indent_where = 6
+let g:haskell_indent_before_where = 2
+let g:haskell_indent_after_bare_where = 2
+let g:haskell_indent_do = 2
+let g:haskell_indent_in = 1
+let g:cabal_indent_section = 2
+let g:haskell_indent_case_alternative = 1
+let g:haskell_indent_guard = 2
+let g:hindent_on_save = 1