summaryrefslogtreecommitdiff
path: root/vim-core/.config
diff options
context:
space:
mode:
authorJulian Jørgensen Teule <jjte@trifork.com>2024-03-18 18:36:39 +0100
committerJulian T. <julian@jtle.dk>2024-03-18 18:51:26 +0100
commitaa4f850a69acd73186eb1470a2ae425c663c4f8d (patch)
tree870762c1a89cd5f6a3a33373d73268f2ef80da4d /vim-core/.config
parent11ed03d80c55e2c213118adf97fc18c55d2249a3 (diff)
Minor vim changes
Diffstat (limited to 'vim-core/.config')
-rw-r--r--vim-core/.config/nvim/init.vim12
1 files changed, 8 insertions, 4 deletions
diff --git a/vim-core/.config/nvim/init.vim b/vim-core/.config/nvim/init.vim
index 9e52109..c0f06f0 100644
--- a/vim-core/.config/nvim/init.vim
+++ b/vim-core/.config/nvim/init.vim
@@ -22,11 +22,13 @@ filetype plugin indent on " required
set nobackup
set tabstop=2
- set shiftwidth=2
+ " when zero we use tabstop
+ set shiftwidth=0
set expandtab
set colorcolumn=80
- set softtabstop=2
+ " Use the value to shiftwidth here
+ set softtabstop=-1
set autoindent
@@ -58,7 +60,7 @@ filetype plugin indent on " required
set autoread
- set cino=J1,j1,L0,:0,=0,l1,h0
+ " set cino=J1,j1,L0,:0,=0,l1,h0
" Exit insert mode on inactivity
" au CursorHoldI * stopinsert}}}
@@ -76,16 +78,18 @@ filetype plugin indent on " required
\ set shiftwidth=2 |
autocmd FileType go setlocal noet
autocmd FileType vim setlocal foldmethod=marker
+ autocmd FileType java setlocal tabstop=4
autocmd BufNewFile,BufRead *.tex
\ set nocursorline |
\ set nornu |
\ set number |
\ let g:loaded_matchparen=1 |
+
"}}}
" File management{{{
" Fuzzy like menu
- set path+=**
+ set path=.,,src/**,Dtos/**,Controllers/**,Extensions/**,Helpers/**,Migrations/**,Integrations/**,Model/**,Services/**,Properties/**,apps/**,libs/**
set wildmenu
set wildignore+=**/node_modules/**