aboutsummaryrefslogtreecommitdiffstats
path: root/init-old.vim
diff options
context:
space:
mode:
Diffstat (limited to 'init-old.vim')
-rw-r--r--init-old.vim51
1 files changed, 51 insertions, 0 deletions
diff --git a/init-old.vim b/init-old.vim
new file mode 100644
index 0000000..fcbaeab
--- /dev/null
+++ b/init-old.vim
@@ -0,0 +1,51 @@
+" Allows to have a .nvimrc per project folder
+set exrc
+
+syntax enable
+
+let mapleader = ' '
+
+inoremap <C-c> <esc>
+
+nnoremap <Leader><CR> :so ~/.config/nvim/init.vim<CR>
+
+let g:vimwiki_list = [{'path': '~/vimwiki/',
+ \ 'syntax': 'markdown', 'ext': '.md'}]
+
+let g:gitgutter_map_keys = 0
+
+" forward and backward search of current word
+
+" remove whitespaces
+autocmd BufWritePre * :%s/\s\+$//e
+
+" format json files
+autocmd BufWritePre *stubs/**/*.json :%!jq
+
+" augroup fmtphp
+" autocmd!
+" autocmd BufWritePre filetype php undojoin | lua vim.lsp.buf.formatting()
+" augroup END
+
+filetype plugin indent on
+autocmd FileType yaml setl indentkeys-=<:>
+autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
+autocmd FileType cucumber setl indentkeys-=<:>
+autocmd FileType cucumber setlocal ts=2 sts=2 sw=2 expandtab
+
+autocmd BufWritePost */alpha/**.lua lua require('plenary.reload').reload_module('alpha')
+
+" disable vim-go K binding
+let g:go_doc_keywordprg_enabled = 0
+
+lua require("alpha")
+
+" quick duplication of files
+
+let g:laravel_artisan = 'sail artisan'
+let test#php#pest#executable = 'sail debug test'
+
+let $NO_TTY = 1
+
+" Has to be the last line for the .nvimrc per project
+set secure