First commit of init file
This commit is contained in:
commit
81dfc13aa0
64
init.vim
Normal file
64
init.vim
Normal file
@ -0,0 +1,64 @@
|
||||
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>
|
||||
|
||||
tnoremap <Esc> <C-\><C-n>
|
||||
|
||||
nnoremap <F4> :call vimterm#toggle() <CR>
|
||||
tnoremap <F4> <C-\><C-n>:call vimterm#toggle() <CR>
|
||||
|
||||
call plug#begin()
|
||||
Plug 'roxma/nvim-completion-manager'
|
||||
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'
|
||||
|
||||
" versioning
|
||||
Plug 'tpope/vim-fugitive'
|
||||
|
||||
" debugging
|
||||
Plug 'sakhnik/nvim-gdb'
|
||||
call plug#end()
|
||||
|
Loading…
Reference in New Issue
Block a user