Files
dot_files/vimrc
Autumn Naber 036248b797 Initial commit
2022-01-24 12:32:39 -08:00

74 lines
1.9 KiB
VimL

execute pathogen#infect()
set expandtab
set tabstop=4
set shiftwidth=4
set mouse=nicr
set ttymouse=sgr "Support wide screens
set incsearch
set hlsearch
set ignorecase
set smartcase
set smartindent
set tags=./tags;
set tags+=./kernel.tags;
:nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
syntax on
filetype plugin indent on
"set omnifunc=syntaxcomplete#Complete
colorscheme apprentice
map <C-\> :tab split<CR>:exec("tag ".expand("<cword>"))<CR>
map <A-]> :vsp <CR>:exec("tag ".expand("<cword>"))<CR>
" Load all plugins now.
" Plugins need to be added to runtimepath before helptags can be generated.
" packloadall
" Load all of the helptags now, after plugins have been loaded.
" All messages and errors will be ignored.
silent! helptags ALL
"
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
nnoremap <C-l> :TlistToggle<CR>
nnoremap <C-p> :TlistShowPrototype<CR>
let Tlist_Use_Right_Window = 1 " Move window to right side
let Tlist_Exit_OnlyWindow = 1 " Close if only window left
let Tlist_Hightlight_Tag_On_BufEnter = 1 " Hightlight current tag
let Tlist_Display_Prototypte = 1 " Show full prototype at bottom
" vim-rainbow
let g:rainbow_active = 1
nnoremap <C-g> :GitGutterToggle<CR>
let OmniCpp_MayCompleteDot = 0
let OmniCpp_MayCompleteArrow = 0
let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
" Fugitive conflict resolution
nnoremap <leader>gd :Gvdiff<CR>
nnoremap gdh :diffget //2<CR>
nnoremap gdl :diffget //3<CR>
" YAML editor settings
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType yml setlocal ts=2 sts=2 sw=2 expandtab
let g:indentLine_char = '┆'
let g:indentLine_color_term = 237
" Syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
nnoremap <C-y> :SyntasticToggleMode<CR>