diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-09-23 09:57:24 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-09-23 09:57:24 +0200 |
commit | b216ea841fe847e4aeea981429ecdc89f04dd083 (patch) | |
tree | 159bb1b9bbd269ee22bab059bf915337ba37207c | |
parent | b2ba8a3a1c963efef164f2719f1019154a139963 (diff) | |
parent | 0808fe24e2a0723b67cc743171642a685dd9db68 (diff) | |
download | dotfiles-b216ea841fe847e4aeea981429ecdc89f04dd083.tar.gz |
Merge branch 'master' of github.com:kompetenzbolzen/vimconfig
-rw-r--r-- | .gitmodules | 3 | ||||
m--------- | .vim/bundle/todo.txt-vim | 0 | ||||
-rw-r--r-- | .vim/vimrc | 61 |
3 files changed, 49 insertions, 15 deletions
diff --git a/.gitmodules b/.gitmodules index 9d0a4ca..b6ec0af 100644 --- a/.gitmodules +++ b/.gitmodules @@ -22,3 +22,6 @@ [submodule "bash-it"] path = bash-it url = https://github.com/Bash-it/bash-it.git +[submodule ".vim/bundle/todo.txt-vim"] + path = .vim/bundle/todo.txt-vim + url = https://github.com/dbeniamine/todo.txt-vim.git diff --git a/.vim/bundle/todo.txt-vim b/.vim/bundle/todo.txt-vim new file mode 160000 +Subproject 109c2d298fefa92fdfeb433097466ce1606f7bd @@ -1,3 +1,8 @@ +" =========== +" VARIABLES +" =========== + + set nocompatible "Disable bell set vb @@ -13,43 +18,54 @@ let g:airline#extensions#branch#enabled = 1 let g:airline#extensions#whitespace#enabled = 1 let g:airline_powerline_fonts = 1 -"??let mapleader = "," +" Use todo#Complete as the omni complete function for todo files +au filetype todo setlocal omnifunc=todo#Complete + +" Auto complete projects +au filetype todo imap <buffer> + +<C-X><C-O> + +" Auto complete contexts +au filetype todo imap <buffer> @ @<C-X><C-O> + +" leader +let mapleader = "-" +let leader = "-" +let maplocalleader = "-" + execute pathogen#infect() syntax on filetype plugin indent on +"Line number Highlight +set nu +highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE + +" ============== +" SHORTCUTS +" ============== + "Switch windows with keys nmap <silent> <C-w-k> :wincmd k<CR> nmap <silent> <C-w-j> :wincmd j<CR> nmap <silent> <C-w-h> :wincmd h<CR> nmap <silent> <C-w-l> :wincmd l<CR> -nmap <silent> <C-m> :make<CR> +nmap <silent> <F8> :make<CR> nmap <silent> <F5> :NERDTreeToggle<CR> nmap <silent> <F6> :TlistToggle<CR> nmap <silent> <F7> :Newterm<CR> -command -bar Newterm call Create_term() - -function Create_term() - tabnew - terminal - startinsert -endfunction - "Tab mgmt nmap <silent> <F1> :tabclose<CR> nmap <silent> <F2> :tabprevious<CR> nmap <silent> <F3> :tabnext<CR> nmap <silent> <F4> :tabnew<CR> -"^] Jump to tag, ^t jump back -command! MakeTags !ctags -R . -"Line number Highlight -set nu -highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE +" =========== +" COMMANDS +" =========== command -bar InsertHeader call Fileheader() @@ -60,6 +76,21 @@ endfunction " Command HEXMODE command -bar Hexmode call ToggleHex() +"^] Jump to tag, ^t jump back +command! MakeTags !ctags -R . + +command -bar Newterm call Create_term() + +" =========== +" FUNCTIONS +" =========== + +function Create_term() + tabnew + terminal + startinsert +endfunction + " helper function to toggle hex mode function ToggleHex() " hex mode should be considered a read-only operation |