summaryrefslogtreecommitdiff
path: root/vim-core
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-12-15 21:04:44 +0100
committerJulian T <julian@jtle.dk>2020-12-15 21:04:44 +0100
commitaa9f80fca454f99f5fa24b90ffd745ca60040552 (patch)
tree055718947c0603eae0570f19268e2b9a1cf78d9f /vim-core
parent4af935c9576e237b6e8f87e6a28999d8d94d012e (diff)
Vim auto complete and stuff
Diffstat (limited to 'vim-core')
-rw-r--r--vim-core/.vim/vimrc12
1 files changed, 8 insertions, 4 deletions
diff --git a/vim-core/.vim/vimrc b/vim-core/.vim/vimrc
index 43f9910..70f3382 100644
--- a/vim-core/.vim/vimrc
+++ b/vim-core/.vim/vimrc
@@ -3,7 +3,6 @@ filetype plugin on
set shellslash
runtime extra.vim
-
filetype plugin indent on " required
" General vim settings
@@ -19,6 +18,8 @@ filetype plugin indent on " required
set expandtab
set colorcolumn=80
+ set softtabstop=4
+
set autoindent
set smartindent
@@ -53,8 +54,8 @@ filetype plugin indent on " required
" Exit insert mode on inactivity
" au CursorHoldI * stopinsert
-" Formatting
- autocmd FileType go set noet
+" Language specific
+ autocmd FileType python set et
" Latex stuff
let g:tex_flavor='latex'
@@ -83,6 +84,9 @@ filetype plugin indent on " required
let g:netrw_liststyle=2
" Keymapping
+ " Tab for cycling the completion meny, in insert mode
+ inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
+
" When moving more lines make it a jump. If couns i 2 it will run m'2j,
" thus storing it on the jumplist and then jumping
nnoremap <expr> j (v:count > 1 ? "m'" . v:count : '' ) . 'j'
@@ -108,5 +112,5 @@ filetype plugin indent on " required
" Spell check
set spelllang=en
- autocmd FileType tex,markdown,rst set spell
+ " autocmd FileType mail,tex,markdown,rst set spell