82 lines
1.8 KiB
VimL
82 lines
1.8 KiB
VimL
syntax on
|
|
filetype plugin indent on
|
|
au BufNewFile,BufRead *.tpp set filetype=cpp
|
|
|
|
syntax enable
|
|
set number showmatch
|
|
set shiftwidth=4 tabstop=4 softtabstop=4 expandtab autoindent
|
|
let python_highlight_all = 1
|
|
|
|
:imap jk <Esc>
|
|
|
|
set hidden
|
|
|
|
" Write this in your vimrc file
|
|
let g:ale_lint_on_text_changed = 'never'
|
|
" " You can disable this option too
|
|
" " if you don't want linters to run on opening a file
|
|
let g:ale_lint_on_enter = 0
|
|
|
|
" put leader to space
|
|
map <space> <leader>
|
|
map <space><space> <leader><leader>
|
|
|
|
" airline settings
|
|
let g:airline_theme='badwolf'
|
|
let g:airline_powerline_fonts = 1
|
|
let g:airline#extensions#tabline#enabled = 1
|
|
let g:airline#extensions#tabline#formatter = 'unique_tail'
|
|
let g:airline#extensions#whitespace#enabled = 0
|
|
|
|
" NERDTree
|
|
let NERDTreeChDirMode = 2
|
|
|
|
" Custom key bindings
|
|
nmap <leader>n :NERDTreeToggle <CR>
|
|
map <leader>t :TagbarToggle <CR>
|
|
map <leader>u :MundoToggle <CR>
|
|
nnoremap <leader>l <C-w>l
|
|
|
|
tnoremap <Esc> <C-\><C-n>
|
|
|
|
nnoremap <F4> :call vimterm#toggle() <CR>
|
|
tnoremap <F4> <C-\><C-n>:call vimterm#toggle() <CR>
|
|
|
|
" Custom function to Toggle Tagbar and NERDTree
|
|
let s:hidden_all = 0
|
|
function! ToggleHiddenAll()
|
|
NERDTreeToggle
|
|
wincmd l
|
|
TagbarToggle
|
|
endfunction
|
|
|
|
nnoremap <silent> <leader>h :call ToggleHiddenAll()<CR>
|
|
|
|
call plug#begin()
|
|
Plug 'SirVer/ultisnips'
|
|
Plug 'honza/vim-snippets'
|
|
|
|
" general
|
|
Plug 'majutsushi/tagbar'
|
|
Plug 'bling/vim-airline'
|
|
Plug 'vim-airline/vim-airline-themes'
|
|
Plug 'bling/vim-bufferline'
|
|
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
|
|
Plug 'simnalamburt/vim-mundo', {'on': 'MundoToggle'}
|
|
Plug 'wvffle/vimterm'
|
|
Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer' }
|
|
Plug 'rdnetto/YCM-generator', { 'branch': 'stable'}
|
|
|
|
" versioning
|
|
Plug 'tpope/vim-fugitive'
|
|
|
|
" python
|
|
Plug 'bfredl/nvim-ipy'
|
|
|
|
" debugging
|
|
Plug 'sakhnik/nvim-gdb'
|
|
call plug#end()
|
|
|
|
|
|
|